Package org.apache.abdera.model

Examples of org.apache.abdera.model.Link


    return addLink(href, null);
  }
 
  public Link addLink(String href, String rel) throws IRISyntaxException {
    FOMFactory fomfactory = (FOMFactory) factory;
    Link link = fomfactory.newLink(this);
    link.setHref(href);
    if (rel != null) link.setRel(rel);
    return link;   
  }
View Full Code Here


    String title,
    String hreflang,
    long length)
      throws IRISyntaxException, MimeTypeParseException {
    FOMFactory fomfactory = (FOMFactory) factory;
    Link link = fomfactory.newLink(this);
    link.setHref(href);
    link.setRel(rel);
    link.setMimeType(type);
    link.setTitle(title);
    link.setHrefLang(hreflang);
    link.setLength(length);
    return link;
  }
View Full Code Here

      _removeChildren(CONTROL, false);
  }

  public Link getLink(String rel) {
    List<Link> links = getLinks(rel);
    Link link = null;
    if (links.size() > 0) link = links.get(0);
    return link;
  }
View Full Code Here

  public Link getEditMediaLink() {
    return getLink(Link.REL_EDIT_MEDIA);
  }
 
  public IRI getLinkResolvedHref(String rel) throws IRISyntaxException {
    Link link = getLink(rel);
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getLinkResolvedHref(String rel) throws IRISyntaxException {
    Link link = getLink(rel);
    return (link != null) ? link.getResolvedHref() : null;
  }
  public IRI getAlternateLinkResolvedHref() throws IRISyntaxException {
    Link link = getAlternateLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getAlternateLinkResolvedHref() throws IRISyntaxException {
    Link link = getAlternateLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
  public IRI getEnclosureLinkResolvedHref() throws IRISyntaxException {
    Link link = getEnclosureLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getEnclosureLinkResolvedHref() throws IRISyntaxException {
    Link link = getEnclosureLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
  public IRI getEditLinkResolvedHref() throws IRISyntaxException {
    Link link = getEditLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getEditLinkResolvedHref() throws IRISyntaxException {
    Link link = getEditLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
  public IRI getEditMediaLinkResolvedHref() throws IRISyntaxException {
    Link link = getEditMediaLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getEditMediaLinkResolvedHref() throws IRISyntaxException {
    Link link = getEditMediaLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
  public IRI getSelfLinkResolvedHref() throws IRISyntaxException {
    Link link = getSelfLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

  public IRI getAlternateLinkResolvedHref(
    String type,
    String hreflang)
      throws IRISyntaxException,
             MimeTypeParseException {
    Link link = getAlternateLink(type, hreflang);
    return (link != null) ? link.getResolvedHref() : null;
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.model.Link

Copyright © 2018 www.massapicom. 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.