org.apache.abdera.model
Interface IRIElement

All Superinterfaces:
Base, java.lang.Cloneable, Element

public interface IRIElement
extends Element

The IRI interface provides a common base for a set of feed and entry elements whose content value must be a valid IRI/URI reference. These include the elements atom:icon, atom:logo, and atom:id.


Method Summary
 IRI getResolvedValue()
          Returns the value of the element resolved against the current in-scope Base URI
 IRI getValue()
          Returns the value of the element as a java.net.URI
 void setNormalizedValue(java.lang.String iri)
          Set the value of this element using the normalization as specified in RFC4287
 void setValue(java.lang.String iri)
          Sets the value of the element
 
Methods inherited from interface org.apache.abdera.model.Element
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
addComment, clone, getFactory, writeTo, writeTo
 

Method Detail

getValue

IRI getValue()
             throws IRISyntaxException
Returns the value of the element as a java.net.URI

Returns:
The IRI value of this element
Throws:
IRISyntaxException

setValue

void setValue(java.lang.String iri)
              throws IRISyntaxException
Sets the value of the element

Parameters:
iri - The iri value
Throws:
IRISyntaxException - if the value is malformed

setNormalizedValue

void setNormalizedValue(java.lang.String iri)
                        throws IRISyntaxException
Set the value of this element using the normalization as specified in RFC4287

Parameters:
iri - A non-normalized IRI
Throws:
IRISyntaxException - if the iri is malformed

getResolvedValue

IRI getResolvedValue()
                     throws IRISyntaxException
Returns the value of the element resolved against the current in-scope Base URI

Returns:
The resolved IRI value
Throws:
IRISyntaxException