Examples of IRI


Examples of org.apache.abdera.util.iri.IRI

      removeAttribute(FIXED);
  }

  public void setScheme(String scheme) throws IRISyntaxException {
    if (scheme != null)
      setAttributeValue(SCHEME, new IRI(scheme).toString());
    else
      removeAttribute(SCHEME);
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    return _resolve(getResolvedBaseUri(), getHref());
  }
 
  public void setHref(String href) throws IRISyntaxException {
    if (href != null)
      setAttributeValue(HREF, (new IRI(href)).toString());
    else
      removeAttribute(HREF);
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

  public boolean contains(
    String term,
    String scheme)
      throws IRISyntaxException {
    List<Category> categories = getCategories();
    IRI catscheme = getScheme();
    IRI uri = (scheme != null) ?
      new IRI(scheme) : catscheme;
    for (Category category : categories) {
      String t = category.getTerm();
      IRI s = (category.getScheme() != null) ?
        category.getScheme() : catscheme;
      if (t.equals(term) &&
          ((uri!=null)? uri.equals(s) : s == null))
            return true;
    }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    super(factory, MediaConstants.CONTENT);
  }
 
  public IRI getUrl() throws IRISyntaxException {
    String url = getAttributeValue("url");
    return (url != null) ? new IRI(url) : null;
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    return (url != null) ? new IRI(url) : null;
  }
 
  public void setUrl(String url) throws IRISyntaxException {
    if (url != null)
      setAttributeValue("url", (new IRI(url)).toString());
    else
      removeAttribute(new QName("url"));
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    return _resolve(getResolvedBaseUri(), getHref());
  }
 
  public void setHref(String href) throws IRISyntaxException {
    if (href != null)
      setAttributeValue(HREF, (new IRI(href)).toString());
    else
      removeAttribute(HREF);
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    super(factory, MediaConstants.RATING);
  }
 
  public IRI getScheme() throws IRISyntaxException {
    String scheme = getAttributeValue("scheme");
    return (scheme != null) ? new IRI(scheme) : null;
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    String scheme = getAttributeValue("scheme");
    return (scheme != null) ? new IRI(scheme) : null;
  }
 
  public void setScheme(String scheme) throws IRISyntaxException {
    setAttributeValue("scheme",(new IRI(scheme)).toString());
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    super(factory, MediaConstants.CATEGORY);
  }

  public IRI getScheme() throws IRISyntaxException {
    String scheme = getAttributeValue("scheme");
    return (scheme != null) ? new IRI(scheme) : null;
  }
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI

    return (scheme != null) ? new IRI(scheme) : null;
  }
 
  public void setScheme(String scheme) throws IRISyntaxException {
    if (scheme != null)
      setAttributeValue("scheme",(new IRI(scheme)).toString());
    else
      removeAttribute(new QName("scheme"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.