Examples of IRI


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

    return (type != null) ? new MimeType(type) : null;
  }

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

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

    String ref = getAttributeValue("ref");
    return (ref != null) ? new IRI(ref) : null;
  }

  public IRI getResolvedHref() throws IRISyntaxException {
    IRI href = getHref();
    IRI base = getBaseUri();
    return (base == null) ? href : (href != null) ? base.resolve(href) : null;
  }
View Full Code Here

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

    IRI base = getBaseUri();
    return (base == null) ? href : (href != null) ? base.resolve(href) : null;
  }

  public IRI getResolvedSource() throws IRISyntaxException {
    IRI href = getSource();
    IRI base = getBaseUri();
    return (base == null) ? href : (href != null) ? base.resolve(href) : null;
  }
View Full Code Here

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

    return (base == null) ? href : (href != null) ? base.resolve(href) : null;
  }

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

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

    super(factory, MediaConstants.PLAYER);
  }
 
  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

    super(factory, MediaConstants.COPYRIGHT);
  }
 
  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

 
  private List<Category> copyCategoriesWithScheme(
    List<Category> cats)
      throws IRISyntaxException {
    List<Category> newcats = new ArrayList<Category>();
    IRI scheme = getScheme();
    for (Category cat : cats) {
      Category newcat = (Category) cat.clone();
      if (newcat.getScheme() == null && scheme != null)
        newcat.setScheme(scheme.toString());
      newcats.add(newcat);
    }
    return newcats;
  }
View Full Code Here

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

    return copyCategoriesWithScheme(getCategories(scheme));
  }

  public IRI getScheme() throws IRISyntaxException {
    String value = getAttributeValue(SCHEME);
    return (value != null) ? new IRI(value) : null;
  }
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.