| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DefaultAtomContentHandler
Extension of the AtomContentHandler interface that provides convenience methods to more easily generate ATOM events.
The atomXXX
methods generate complete ATOM tags, consisting of
the start tag, an optional body and an end tag.
The startXXX
methods are provided for convenience for those cases
when no extra attributes are required for a starting element.
The dateTime
methods write a date string in RFC3339 date format into
a text() element.
The uri
methods serialize URIs into a text() element.
The text
methods serialize text() elements.
Method Summary | |
---|---|
void | atomAuthor(java.lang.String rText)
Writes the start and the end tag for "atom:author". |
void | atomCategory(java.lang.String rTerm,
java.lang.String oScheme,
java.lang.String oLabel)
Writes the start and the end tag for "atom:category". |
void | atomContent(java.lang.String rText)
Writes the start and the end tag for "atom:content". |
void | atomContributor(java.lang.String rText)
Writes the start and the end tag for "atom:contributor". |
void | atomEMail(java.lang.String rText)
Writes the start and the end tag for "atom:email". |
void | atomGenerator(java.lang.String oUri,
java.lang.String oVersion,
java.lang.String rText)
Writes the start and the end tag for "atom:generator". |
void | atomIcon(java.lang.String rUri)
Writes the start and the end tag for "atom:icon". |
void | atomIcon(java.net.URI rUri)
Writes the start and the end tag for "atom:icon". |
void | atomIcon(java.net.URL rUri)
Writes the start and the end tag for "atom:icon". |
void | atomId(java.lang.String rID)
Writes the start and the end tag for "atom:id". |
void | atomId(java.net.URI rID)
Writes the start and the end tag for "atom:id". |
void | atomLink(java.lang.String rHref,
java.lang.String oRel,
java.lang.String oType,
java.lang.String oHrefLang,
java.lang.String oTitle,
java.lang.String oLength)
Writes the start and the end tag for "atom:link". |
void | atomLogo(java.lang.String rUri)
Writes the start and the end tag for "atom:logo". |
void | atomLogo(java.net.URI rUri)
Writes the start and the end tag for "atom:logo". |
void | atomLogo(java.net.URL rUri)
Writes the start and the end tag for "atom:logo". |
void | atomName(java.lang.String rText)
Writes the start and the end tag for "atom:name". |
void | atomPublished(java.util.Date rDate)
Writes the start and the end tag for "atom:published". |
void | atomPublished(long rDate)
Writes the start and the end tag for "atom:published". |
void | atomRights(java.lang.String rText)
Writes the start and the end tag for "atom:rights". |
void | atomSubtitle(java.lang.String rText)
Writes the start and the end tag for "atom:subtitle". |
void | atomSummary(java.lang.String rText)
Writes the start and the end tag for "atom:summary". |
void | atomTitle(java.lang.String rText)
Writes the start and the end tag for "atom:title". |
void | atomUpdated(java.util.Date rDate)
Writes the start and the end tag for "atom:updated". |
void | atomUpdated(long rDate)
Writes the start and the end tag for "atom:updated". |
void | atomURI(java.lang.String rUri)
Writes the start and the end tag for "atom:uri". |
void | atomURI(java.net.URI rUri)
Writes the start and the end tag for "atom:uri". |
void | atomURI(java.net.URL rUrl)
Writes the start and the end tag for "atom:uri". |
void | startAuthor()
Indicates the start of an atom:author entry.
|
void | startCategory(java.lang.String rTerm,
java.lang.String oScheme,
java.lang.String oLabel)
Indicates the start of an atom:category entry.
|
void | startContent(java.lang.String oType,
java.lang.String oSrc)
Indicates the start of an atom:content entry.
|
void | startContributor()
Indicates the start of an atom:contributor entry.
|
void | startEMail()
Indicates the start of an atom:email entry.
|
void | startEntry()
Indicates the start of an atom:entry entry.
|
void | startFeed()
Indicates the start of an atom:feed entry.
|
void | startGenerator(java.lang.String oUri,
java.lang.String oVersion)
Indicates the start of an atom:generator entry.
|
void | startIcon()
Indicates the start of an atom:icon entry.
|
void | startId()
Indicates the start of an atom:id entry.
|
void | startLink(java.lang.String rHref,
java.lang.String oRel,
java.lang.String oType,
java.lang.String oHrefLang,
java.lang.String oTitle,
java.lang.String oLength)
Indicates the start of an atom:link entry.
|
void | startLogo()
Indicates the start of an atom:logo entry.
|
void | startName()
Indicates the start of an atom:name entry.
|
void | startPublished()
Indicates the start of an atom:published entry.
|
void | startRights()
Indicates the start of an atom:rights entry.
|
void | startSource()
Indicates the start of an atom:source entry.
|
void | startSubtitle(java.lang.String oType)
Indicates the start of an atom:subtitle entry.
|
void | startSummary(java.lang.String oType)
Indicates the start of an atom:summary entry.
|
void | startTitle(java.lang.String oType)
Indicates the start of an atom:title entry.
|
void | startUpdated()
Indicates the start of an atom:updated entry.
|
void | startURI()
Indicates the start of an atom:uri entry.
|
Methods inherited from interface com.ibm.portal.resolver.atom.ResettableAtomContentHandler |
---|
getAtomContentHandler, setAtomContentHandler |
Methods inherited from interface com.ibm.portal.resolver.atom.AtomContentHandler |
---|
endAuthor, endCategory, endContent, endContributor, endEMail, endEntry, endFeed, endGenerator, endIcon, endId, endLink, endLogo, endName, endPublished, endRights, endSource, endSubtitle, endSummary, endTitle, endUpdated, endURI, startAuthor, startCategory, startContent, startContributor, startEMail, startEntry, startFeed, startGenerator, startIcon, startId, startLink, startLogo, startName, startPublished, startRights, startSource, startSubtitle, startSummary, startTitle, startUpdated, startURI |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface com.ibm.portal.resolver.xml.DefaultContentHandler |
---|
dateTime, dateTime, getInnerContentHandler, getWriter, number, number, text, text, uri, uri, uri, uri |
Method Detail |
---|
void atomAuthor(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomCategory(java.lang.String rTerm, java.lang.String oScheme, java.lang.String oLabel) throws org.xml.sax.SAXException
The "atom:category" element conveys information about a category associated with an entry or feed. This specification assigns no meaning to the content (if any) of this element.
null
.
The "term" attribute is a string that identifies the category to which the entry or feed belongs. Category elements MUST have a "term" attribute.
null
.
The "scheme" attribute is an IRI that identifies a categorization scheme. Category elements MAY have a "scheme" attribute.
null
.
The "label" attribute provides a human-readable label for display in end-user applications. The content of the "label" attribute is Language-Sensitive. Entities such as "&" and <" represent their corresponding characters ("&" and "<", respectively), not markup. Category elements MAY have a "label" attribute.
void atomContributor(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomContent(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomEMail(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomGenerator(java.lang.String oUri, java.lang.String oVersion, java.lang.String rText) throws org.xml.sax.SAXException
null
.
The atom:generator element MAY have a "uri" attribute whose value MUST be an IRI reference [RFC3987]. When dereferenced, the resulting URI (mapped from an IRI, if necessary) SHOULD produce a representation that is relevant to that agent.
null
.
The atom:generator element MAY have a "version" attribute that indicates the version of the generating agent.
null
.
void atomIcon(java.lang.String rUri) throws org.xml.sax.SAXException
null
void atomIcon(java.net.URI rUri) throws org.xml.sax.SAXException
null
void atomIcon(java.net.URL rUri) throws org.xml.sax.SAXException
null
void atomId(java.lang.String rID) throws org.xml.sax.SAXException
null
void atomId(java.net.URI rID) throws org.xml.sax.SAXException
null
void atomLink(java.lang.String rHref, java.lang.String oRel, java.lang.String oType, java.lang.String oHrefLang, java.lang.String oTitle, java.lang.String oLength) throws org.xml.sax.SAXException
The "atom:link" element defines a reference from an entry or feed to a Web resource. This specification assigns no meaning to the content (if any) of this element.
null
.
The "href" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference [RFC3987].
null
.
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
null
.
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. Note that the type attribute does not override the actual media type returned with the representation. Link elements MAY have a type attribute, whose value MUST conform to the syntax of a MIME media type [MIMEREG].
null
.
The "hreflang" attribute's content describes the language of the resource pointed to by the href attribute. When used together with the rel="alternate", it implies a translated version of the entry. Link elements MAY have an hreflang attribute, whose value MUST be a language tag [RFC3066].
null
.
The "title" attribute conveys human-readable information about the link. The content of the "title" attribute is Language-Sensitive. Entities such as "&" and "<" represent their corresponding characters ("&" and "<", respectively), not markup. Link elements MAY have a title attribute.
null
.
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. Note that the length attribute does not override the actual content length of the representation as reported by the underlying protocol. Link elements MAY have a length attribute.
void atomLogo(java.lang.String rUri) throws org.xml.sax.SAXException
null
.
void atomLogo(java.net.URI rUri) throws org.xml.sax.SAXException
null
.
void atomLogo(java.net.URL rUri) throws org.xml.sax.SAXException
null
.
void atomName(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomPublished(java.util.Date rDate) throws org.xml.sax.SAXException
null
.
void atomPublished(long rDate) throws org.xml.sax.SAXException
void atomRights(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomSubtitle(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomSummary(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomTitle(java.lang.String rText) throws org.xml.sax.SAXException
null
.
void atomUpdated(java.util.Date rDate) throws org.xml.sax.SAXException
null
.
void atomUpdated(long rDate) throws org.xml.sax.SAXException
void atomURI(java.lang.String rUri) throws org.xml.sax.SAXException
null
.
void atomURI(java.net.URI rUri) throws org.xml.sax.SAXException
null
.
void atomURI(java.net.URL rUrl) throws org.xml.sax.SAXException
null
.
void startAuthor() throws org.xml.sax.SAXException
Indicates the start of an atom:author
entry.
The "atom:author" element is a Person construct that indicates the author of the entry or feed
void startCategory(java.lang.String rTerm, java.lang.String oScheme, java.lang.String oLabel) throws org.xml.sax.SAXException
Indicates the start of an atom:category
entry.
The "atom:category" element conveys information about a category associated with an entry or feed. This specification assigns no meaning to the content (if any) of this element.
null
.
The "term" attribute is a string that identifies the category to which the entry or feed belongs. Category elements MUST have a "term" attribute.
null
.
The "scheme" attribute is an IRI that identifies a categorization scheme. Category elements MAY have a "scheme" attribute.
null
.
The "label" attribute provides a human-readable label for display in end-user applications. The content of the "label" attribute is Language-Sensitive. Entities such as "&" and <" represent their corresponding characters ("&" and "<", respectively), not markup. Category elements MAY have a "label" attribute.
void startContent(java.lang.String oType, java.lang.String oSrc) throws org.xml.sax.SAXException
Indicates the start of an atom:content
entry.
The "atom:content" element either contains or links to the content of the entry. The content of atom:content is Language-Sensitive.
null
.
On the atom:content element, the value of the "type" attribute MAY be one of "text", "html", or "xhtml". Failing that, it MUST conform to the syntax of a MIME media type, but MUST NOT be a composite type (see Section 4.2.6 of [MIMEREG]). If neither the type attribute nor the src attribute is provided, Atom Processors MUST behave as though the type attribute were present with a value of "text".
null
.
atom:content MAY have a "src" attribute, whose value MUST be an IRI reference [RFC3987]. If the "src" attribute is present, atom:content MUST be empty. Atom Processors MAY use the IRI to retrieve the content and MAY choose to ignore remote content or to present it in a different manner than local content.
If the "src" attribute is present, the "type" attribute SHOULD be provided and MUST be a MIME media type [MIMEREG], rather than "text", "html", or "xhtml". The value is advisory; that is to say, when the corresponding URI (mapped from an IRI, if necessary) is dereferenced, if the server providing that content also provides a media type, the server-provided media type is authoritative.
void startContributor() throws org.xml.sax.SAXException
Indicates the start of an atom:contributor
entry.
The "atom:contributor" element is a Person construct that indicates a person or other entity who contributed to the entry or feed.
void startEMail() throws org.xml.sax.SAXException
Indicates the start of an atom:email
entry.
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].
void startEntry() throws org.xml.sax.SAXException
Indicates the start of an atom:entry
entry.
The "atom:entry" element represents an individual entry, acting as a container for metadata and data associated with the entry. This element can appear as a child of the atom:feed element, or it can appear as the document (i.e., top-level) element of a stand-alone Atom Entry Document.
void startFeed() throws org.xml.sax.SAXException
Indicates the start of an atom:feed
entry.
The "atom:feed" element is the document (i.e., top-level) element of an Atom Feed Document, acting as a container for metadata and data associated with the feed. Its element children consist of metadata elements followed by zero or more atom:entry child elements.
void startGenerator(java.lang.String oUri, java.lang.String oVersion) throws org.xml.sax.SAXException
Indicates the start of an atom:generator
entry.
The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.
null
.
The atom:generator element MAY have a "uri" attribute whose value MUST be an IRI reference [RFC3987]. When dereferenced, the resulting URI (mapped from an IRI, if necessary) SHOULD produce a representation that is relevant to that agent.
null
.
The atom:generator element MAY have a "version" attribute that indicates the version of the generating agent.
void startIcon() throws org.xml.sax.SAXException
Indicates the start of an atom:icon
entry.
The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed.
void startId() throws org.xml.sax.SAXException
Indicates the start of an atom:id
entry.
The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed. Its content MUST be an IRI, as defined by [RFC3987]. Note that the definition of "IRI" excludes relative references. Though the IRI might use a dereferencable scheme, Atom Processors MUST NOT assume it can be dereferenced.
void startLink(java.lang.String rHref, java.lang.String oRel, java.lang.String oType, java.lang.String oHrefLang, java.lang.String oTitle, java.lang.String oLength) throws org.xml.sax.SAXException
Indicates the start of an atom:link
entry.
The "atom:link" element defines a reference from an entry or feed to a Web resource. This specification assigns no meaning to the content (if any) of this element.
null
.
The "href" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference [RFC3987].
null
.
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
null
.
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. Note that the type attribute does not override the actual media type returned with the representation. Link elements MAY have a type attribute, whose value MUST conform to the syntax of a MIME media type [MIMEREG].
null
.
The "hreflang" attribute's content describes the language of the resource pointed to by the href attribute. When used together with the rel="alternate", it implies a translated version of the entry. Link elements MAY have an hreflang attribute, whose value MUST be a language tag [RFC3066].
null
.
The "title" attribute conveys human-readable information about the link. The content of the "title" attribute is Language-Sensitive. Entities such as "&" and "<" represent their corresponding characters ("&" and "<", respectively), not markup. Link elements MAY have a title attribute.
null
.
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. Note that the length attribute does not override the actual content length of the representation as reported by the underlying protocol. Link elements MAY have a length attribute.
void startLogo() throws org.xml.sax.SAXException
Indicates the start of an atom:logo
entry.
The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed.
void startName() throws org.xml.sax.SAXException
Indicates the start of an atom:name
entry.
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.
void startPublished() throws org.xml.sax.SAXException
Indicates the start of an atom:published
entry.
The "atom:published" element is a Date construct indicating an instant in time associated with an event early in the life cycle of the entry.
void startRights() throws org.xml.sax.SAXException
Indicates the start of an atom:rights
entry.
The "atom:rights" element is a Text construct that conveys information about rights held in and over an entry or feed.
void startSource() throws org.xml.sax.SAXException
Indicates the start of an atom:source
entry.
If an atom:entry is copied from one feed into another feed, then the source atom:feed's metadata (all child elements of atom:feed other than the atom:entry elements) MAY be preserved within the copied entry by adding an atom:source child element, if it is not already present in the entry, and including some or all of the source feed's Metadata elements as the atom:source element's children. Such metadata SHOULD be preserved if the source atom:feed contains any of the child elements atom:author, atom:contributor, atom:rights, or atom:category and those child elements are not present in the source atom:entry.
void startSubtitle(java.lang.String oType) throws org.xml.sax.SAXException
Indicates the start of an atom:subtitle
entry.
The "atom:subtitle" element is a Text construct that conveys a human- readable description or subtitle for a feed.
null
.
void startSummary(java.lang.String oType) throws org.xml.sax.SAXException
Indicates the start of an atom:summary
entry.
The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry.
null
.
void startTitle(java.lang.String oType) throws org.xml.sax.SAXException
Indicates the start of an atom:title
entry.
The "atom:title" element is a Text construct that conveys a human- readable title for an entry or feed.
null
.
void startUpdated() throws org.xml.sax.SAXException
Indicates the start of an atom:updated
entry.
The "atom:updated" element is a Date construct indicating the most recent instant in time when an entry or feed was modified in a way the publisher considers significant. Therefore, not all modifications necessarily result in a changed atom:updated value.
void startURI() throws org.xml.sax.SAXException
Indicates the start of an atom:uri
entry.
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |