Package org.apache.abdera.model

Examples of org.apache.abdera.model.IRIElement


    if (value == null) {
      _removeChildren(ICON, false);
      return null;
    }
    FOMFactory fomfactory = (FOMFactory) factory;
    IRIElement iri = fomfactory.newIcon(this);
    iri.setValue(value);
    return iri;
  }
View Full Code Here


    iri.setValue(value);
    return iri;
  }
 
  public IRI getIcon() {
    IRIElement iri = getIconElement();
    IRI uri = (iri != null) ? iri.getResolvedValue() : null;
    return (IRIHelper.isJavascriptUri(uri) ||
        IRIHelper.isMailtoUri(uri)) ? null : uri;
  }
View Full Code Here

    if (value == null) {
      _removeChildren(LOGO, false);
      return null;
    }
    FOMFactory fomfactory = (FOMFactory) factory;
    IRIElement iri = fomfactory.newLogo(this);
    iri.setValue(value);
    return iri;
  }
View Full Code Here

    iri.setValue(value);
    return iri;
  }
 
  public IRI getLogo() {
    IRIElement iri = getLogoElement();
    IRI uri = (iri != null) ? iri.getResolvedValue() : null;
    return (IRIHelper.isJavascriptUri(uri) ||
        IRIHelper.isMailtoUri(uri)) ? null : uri;
  }
View Full Code Here

  public IRI getResolvedValue() {
    return getValue();
  }

  public IRI getValue() {
    IRIElement iri = getExtension(RssConstants.QNAME_URL);
    if (iri == null) {
      iri = getExtension(RssConstants.QNAME_RDF_URL);
    }
    if (iri == null) {
      String t = getAttributeValue(RssConstants.QNAME_RDF_ABOUT);
      if (t != null) return new IRI(t);
    }
    return (iri != null) ? iri.getValue() : null;
  }
View Full Code Here

    public Generator getGenerator() {
        return getExtension(RssConstants.QNAME_GENERATOR);
    }

    public IRI getIcon() {
        IRIElement iri = getIconElement();
        return (iri != null) ? iri.getValue() : null;
    }
View Full Code Here

    public IRIElement getIconElement() {
        return getLogoElement();
    }

    public IRI getId() {
        IRIElement id = getIdElement();
        return (id != null) ? id.getValue() : null;
    }
View Full Code Here

    public List<Link> getLinks(String... rel) {
        return FOMHelper.getLinks(getInternal(), rel);
    }

    public IRI getLogo() {
        IRIElement iri = getLogoElement();
        return (iri != null) ? iri.getValue() : null;
    }
View Full Code Here

        return (iri != null) ? iri.getValue() : null;
    }

    public IRIElement getLogoElement() {

        IRIElement iri = getExtension(RssConstants.QNAME_IMAGE);
        if (iri == null) {
            Element image = getExtension(RssConstants.QNAME_RDF_IMAGE);
            if (image != null) {
                String id = image.getAttributeValue(RssConstants.QNAME_RDF_RESOURCE);
                if (id != null) {
View Full Code Here

    public IRI getResolvedValue() {
        return getValue();
    }

    public IRI getValue() {
        IRIElement iri = getExtension(RssConstants.QNAME_URL);
        if (iri == null) {
            iri = getExtension(RssConstants.QNAME_RDF_URL);
        }
        if (iri == null) {
            String t = getAttributeValue(RssConstants.QNAME_RDF_ABOUT);
            if (t != null)
                return new IRI(t);
        }
        return (iri != null) ? iri.getValue() : null;
    }
View Full Code Here

TOP

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

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.