|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.model.ElementWrapper
org.apache.abdera.model.ExtensibleElementWrapper
org.apache.abdera.ext.rss.RssGuid
public class RssGuid
Field Summary |
---|
Fields inherited from interface org.apache.abdera.model.Link |
---|
IANA_BASE, REL_ALTERNATE, REL_ALTERNATE_IANA, REL_CURRENT, REL_CURRENT_IANA, REL_EDIT, REL_EDIT_IANA, REL_EDIT_MEDIA, REL_EDIT_MEDIA_IANA, REL_ENCLOSURE, REL_ENCLOSURE_IANA, REL_FIRST, REL_FIRST_IANA, REL_LAST, REL_LAST_IANA, REL_LICENSE, REL_LICENSE_IANA, REL_NEXT, REL_NEXT_IANA, REL_PAYMENT, REL_PAYMENT_IANA, REL_PREVIOUS, REL_PREVIOUS_IANA, REL_RELATED, REL_RELATED_IANA, REL_REPLIES, REL_REPLIES_IANA, REL_SELF, REL_SELF_IANA, REL_SERVICE, REL_SERVICE_IANA, REL_VIA, REL_VIA_IANA |
Constructor Summary | |
---|---|
RssGuid(Element internal)
|
|
RssGuid(Factory factory,
QName qname)
|
Method Summary | ||
---|---|---|
|
addExtension(Element extension)
Adds an individual extension element |
|
|
addExtension(QName qname)
Adds an individual extension element |
|
|
addExtension(String namespace,
String localPart,
String prefix)
Adds an individual extension element |
|
Element |
addSimpleExtension(QName qname,
String value)
Adds a simple extension (text content only) |
|
Element |
addSimpleExtension(String namespace,
String localPart,
String prefix,
String value)
Adds a simple extension (text content only) |
|
|
getExtension(Class<T> _class)
Find an extension by Class rather than QName |
|
|
getExtension(QName qname)
Returns the first extension element with the XML qualified name |
|
List<Element> |
getExtensions()
Returns the complete set of extension elements |
|
|
getExtensions(QName qname)
Returns the complete set of extension elements using the specified XML qualified name |
|
List<Element> |
getExtensions(String uri)
Returns the complete set of extension elements using the specified XML Namespace URI |
|
IRI |
getHref()
RFC4287: The "href" attribute contains the link's IRI. |
|
String |
getHrefLang()
RFC4287: The "hreflang" attribute's content describes the language of the resource pointed to by the href attribute. |
|
long |
getLength()
RFC4287: The "length" attribute indicates an advisory length of the linked content in octets; it is a hint about the content length of the representation returned when the URI in the href attribute is mapped to a IRI and dereferenced. |
|
javax.activation.MimeType |
getMimeType()
RFC4287: On the link element, the "type" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. |
|
String |
getRel()
RFC4287: atom:link elements MAY have a "rel" attribute that indicates the link relation type. |
|
IRI |
getResolvedHref()
Returns the value of the link's href attribute resolved against the in-scope Base IRI |
|
IRI |
getResolvedValue()
Returns the value of the element resolved against the current in-scope Base URI |
|
String |
getSimpleExtension(QName qname)
Gets the value of a simple extension |
|
String |
getSimpleExtension(String namespace,
String localPart,
String prefix)
Gets the value of a simple extension |
|
String |
getTitle()
RFC4287: The "title" attribute conveys human-readable information about the link. |
|
IRI |
getValue()
Returns the value of the element as a java.net.URI |
|
boolean |
isPermalink()
|
|
Link |
setHref(String href)
RFC4287: The "href" attribute contains the link's IRI. |
|
Link |
setHrefLang(String lang)
RFC4287: The "hreflang" attribute's content describes the language of the resource pointed to by the href attribute. |
|
Link |
setLength(long length)
RFC4287: The "length" attribute indicates an advisory length of the linked content in octets; it is a hint about the content length of the representation returned when the IRI in the href attribute is mapped to a URI and dereferenced. |
|
Link |
setMimeType(String type)
RFC4287: On the link element, the "type" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. |
|
IRIElement |
setNormalizedValue(String iri)
Set the value of this element using the normalization as specified in RFC4287 |
|
Link |
setRel(String rel)
RFC4287: atom:link elements MAY have a "rel" attribute that indicates the link relation type. |
|
Link |
setTitle(String title)
RFC4287: The "title" attribute conveys human-readable information about the link. |
|
IRIElement |
setValue(String iri)
Sets the value of the element |
Methods inherited from class org.apache.abdera.model.ExtensibleElementWrapper |
---|
addExtension, addExtension, getExtInternal, getMustPreserveWhitespace, setMustPreserveWhitespace |
Methods inherited from class org.apache.abdera.model.ElementWrapper |
---|
addComment, clone, complete, declareNS, discard, equals, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getInternal, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, hashCode, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText, toString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.abdera.model.ExtensibleElement |
---|
addExtension, addExtension |
Methods inherited from interface org.apache.abdera.model.Element |
---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
public RssGuid(Element internal)
public RssGuid(Factory factory, QName qname)
Method Detail |
---|
public IRI getResolvedValue()
IRIElement
getResolvedValue
in interface IRIElement
public IRI getValue()
IRIElement
getValue
in interface IRIElement
public IRIElement setNormalizedValue(String iri)
IRIElement
setNormalizedValue
in interface IRIElement
iri
- A non-normalized IRIpublic IRIElement setValue(String iri)
IRIElement
setValue
in interface IRIElement
iri
- The iri valuepublic boolean isPermalink()
public IRI getHref()
Link
getHref
in interface Link
public String getHrefLang()
Link
getHrefLang
in interface Link
public long getLength()
Link
getLength
in interface Link
public javax.activation.MimeType getMimeType()
Link
getMimeType
in interface Link
public String getRel()
Link
RFC4287: atom:link elements MAY have a "rel" attribute that indicates the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate"... The value of "rel" MUST be a string that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that use of a relative reference other than a simple name is not allowed. If a name is given, implementations MUST consider the link relation type equivalent to the same name registered within the IANA Registry of Link Relations (Section 7), and thus to the IRI that would be obtained by appending the value of the rel attribute to the string "http://www.iana.org/assignments/relation/". The value of "rel" describes the meaning of the link, but does not impose any behavioral requirements on Atom Processors.
getRel
in interface Link
public IRI getResolvedHref()
Link
getResolvedHref
in interface Link
public String getTitle()
Link
getTitle
in interface Link
public Link setHref(String href)
Link
setHref
in interface Link
href
- The href IRIpublic Link setHrefLang(String lang)
Link
setHrefLang
in interface Link
lang
- The hreflang valuepublic Link setLength(long length)
Link
setLength
in interface Link
length
- The length attribute valuepublic Link setMimeType(String type)
Link
setMimeType
in interface Link
type
- The link typepublic Link setRel(String rel)
Link
RFC4287: atom:link elements MAY have a "rel" attribute that indicates the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate"... The value of "rel" MUST be a string that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that use of a relative reference other than a simple name is not allowed. If a name is given, implementations MUST consider the link relation type equivalent to the same name registered within the IANA Registry of Link Relations (Section 7), and thus to the IRI that would be obtained by appending the value of the rel attribute to the string "http://www.iana.org/assignments/relation/". The value of "rel" describes the meaning of the link, but does not impose any behavioral requirements on Atom Processors.
setRel
in interface Link
rel
- The rel attribute valuepublic Link setTitle(String title)
Link
setTitle
in interface Link
title
- The title attributepublic <T extends ExtensibleElement> T addExtension(Element extension)
ExtensibleElement
addExtension
in interface ExtensibleElement
addExtension
in class ExtensibleElementWrapper
extension
- An extension element to addpublic <T extends Element> T addExtension(QName qname)
ExtensibleElement
addExtension
in interface ExtensibleElement
addExtension
in class ExtensibleElementWrapper
qname
- An extension element to create
public <T extends Element> T addExtension(String namespace, String localPart, String prefix)
ExtensibleElement
addExtension
in interface ExtensibleElement
addExtension
in class ExtensibleElementWrapper
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefix
public Element addSimpleExtension(QName qname, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
addSimpleExtension
in class ExtensibleElementWrapper
qname
- An XML QNamevalue
- The simple text value of the element
public Element addSimpleExtension(String namespace, String localPart, String prefix, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
addSimpleExtension
in class ExtensibleElementWrapper
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text value
public <T extends Element> T getExtension(QName qname)
ExtensibleElement
getExtension
in interface ExtensibleElement
getExtension
in class ExtensibleElementWrapper
qname
- An XML QName
public <T extends Element> T getExtension(Class<T> _class)
ExtensibleElement
getExtension
in interface ExtensibleElement
getExtension
in class ExtensibleElementWrapper
_class
- The implementation class of the extension
public List<Element> getExtensions()
ExtensibleElement
getExtensions
in interface ExtensibleElement
getExtensions
in class ExtensibleElementWrapper
public List<Element> getExtensions(String uri)
ExtensibleElement
getExtensions
in interface ExtensibleElement
getExtensions
in class ExtensibleElementWrapper
uri
- A namespace URI
public <T extends Element> List<T> getExtensions(QName qname)
ExtensibleElement
getExtensions
in interface ExtensibleElement
getExtensions
in class ExtensibleElementWrapper
qname
- An XML QName
public String getSimpleExtension(QName qname)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
getSimpleExtension
in class ExtensibleElementWrapper
qname
- An XML QName
public String getSimpleExtension(String namespace, String localPart, String prefix)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
getSimpleExtension
in class ExtensibleElementWrapper
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |