public interface Namespace
Implements logic specific to a specific XML namespace used in podcasting RSS feeds.
Implementations should be threadsafe.
| Modifier and Type | Method and Description |
|---|---|
default Set<String> |
getAlternativeNames()
A namespace has a single, specific, agreed upon name.
|
String |
getName()
A namespace has a single, specific, agreed upon name.
|
default boolean |
isMatch(String namespaceURI)
Check if the given namespaceURI is for
this Namespace |
default boolean |
mustDelegateTo(Namespace namespace) |
default 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. |
default 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. |
String getName()
Namespace, not null identified.getAlternativeNames()default Set<String> getAlternativeNames()
default boolean isMatch(String namespaceURI)
this Namespacedefault void process(PodcastParserContext ctx) throws XMLStreamException
XMLStreamReader, at its current position,
onto the given Feed in the PodcastParserContext according to the namespace
specification.ctx - PodcastParserContext instance in the process of being builtXMLStreamException - if anydefault void process(PodcastParserContext ctx, Item item) throws XMLStreamException
XMLStreamReader, at its current position,
onto the given Item according to the namespace specification.ctx - PodcastParserContext instance in the process of being builtitem - Item instance in the process of being builtXMLStreamException - if anyCopyright © 2018. All rights reserved.