Examples of IRIElement


Examples of org.apache.abdera.model.IRIElement

  }

  public IRIElement setUri(String uri) throws IRISyntaxException {
    if (uri != null) {
      FOMFactory fomfactory = (FOMFactory) factory;
      IRIElement el = fomfactory.newUri(null);
      el.setValue(uri);
      _setChild(URI, (OMElement)el);
      return el;
    } else {
      _removeChildren(URI, false);
      return null;
View Full Code Here

Examples of org.apache.abdera.model.IRIElement

      return null;
    }
  }
 
  public IRI getUri() throws IRISyntaxException {
    IRIElement iri = getUriElement();
    return (iri != null) ? iri.getValue() : null;
  }
View Full Code Here

Examples of org.apache.abdera.model.IRIElement

    else
      _removeChildren(ID, false);
  }

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

Examples of org.apache.abdera.model.IRIElement

  public IRIElement setId(String value, boolean normalize) throws IRISyntaxException {
    if (value == null) {
      _removeChildren(ID, false);
      return null;
    }
    IRIElement id = getIdElement();
    if (id != null) {
      if (normalize) id.setNormalizedValue(value);
      else id.setValue(value);
      return id;
    } else {
      FOMFactory fomfactory = (FOMFactory) factory;
      IRIElement iri = fomfactory.newID(this);
      iri.setValue((normalize) ? URIHelper.normalize(value) : value);
      return iri;
    }
  }
View Full Code Here

Examples of org.apache.abdera.model.IRIElement

    else
      _removeChildren(ID, false);
  }

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

Examples of org.apache.abdera.model.IRIElement

  public IRIElement setId(String value, boolean normalize) throws IRISyntaxException {
    if (value == null) {
      _removeChildren(ID, false);
      return null;
    }
    IRIElement id = getIdElement();
    if (id != null) {
      if (normalize) id.setNormalizedValue(value);
      else id.setValue(value);
      return id;
    } else {
      FOMFactory fomfactory = (FOMFactory) factory;
      IRIElement iri = fomfactory.newID(this);
      iri.setValue((normalize) ? URIHelper.normalize(value) : value);
      return iri;
    }
  }
View Full Code Here

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

Examples of org.apache.abdera.model.IRIElement

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

Examples of org.apache.abdera.model.IRIElement

    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

Examples of org.apache.abdera.model.IRIElement

    iri.setValue(value);
    return iri;
  }
 
  public IRI getLogo() throws IRISyntaxException {
    IRIElement iri = getLogoElement();
    IRI uri = (iri != null) ? iri.getResolvedValue() : null;
    return (URIHelper.isJavascriptUri(uri) ||
        URIHelper.isMailtoUri(uri)) ? null : uri;
  }
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.