public class Atom extends Object implements RootNamespace, Namespace
Atom is an XML-based document format that describes lists of related information known as "feeds". Feeds are composed of a number of items, known as "entries", each with an extensible set of attached metadata.
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAlternativeNames()
A namespace has a single, specific, agreed upon name.
|
String |
getName()
A namespace has a single, specific, agreed upon name.
|
static Atom |
instance() |
void |
parseFeed(PodcastParserContext ctx) |
Item |
parseItem(PodcastParserContext ctx) |
void |
process(PodcastParserContext ctx)
Process any additional information from the
XMLStreamReader, at its current position,
onto the given Feed in the PodcastParserContext according to the namespace
specification. |
void |
process(PodcastParserContext ctx,
Item item)
Process any additional information from the
XMLStreamReader, at its current position,
onto the given Item according to the namespace specification. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMatch, mustDelegateTopublic static Atom instance()
public String getName()
NamespacegetName in interface NamespaceNamespace, not null identified.Namespace.getAlternativeNames()public Set<String> getAlternativeNames()
NamespacegetAlternativeNames in interface NamespaceSet of names by which this Namespace is also identified, may be empty,
never nullNamespace.getName()public void parseFeed(PodcastParserContext ctx) throws XMLStreamException
parseFeed in interface RootNamespaceXMLStreamExceptionpublic Item parseItem(PodcastParserContext ctx) throws XMLStreamException
parseItem in interface RootNamespaceXMLStreamExceptionpublic void process(PodcastParserContext ctx) throws XMLStreamException
NamespaceXMLStreamReader, at its current position,
onto the given Feed in the PodcastParserContext according to the namespace
specification.process in interface Namespacectx - PodcastParserContext instance in the process of being builtXMLStreamException - if anypublic void process(PodcastParserContext ctx, Item item) throws XMLStreamException
NamespaceXMLStreamReader, at its current position,
onto the given Item according to the namespace specification.process in interface Namespacectx - PodcastParserContext instance in the process of being builtitem - Item instance in the process of being builtXMLStreamException - if anyCopyright © 2018. All rights reserved.