public final class AbderaConfiguration extends java.lang.Object implements Constants, Configuration
ACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YES| Constructor and Description |
|---|
AbderaConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AbderaConfiguration |
addExtensionFactory(ExtensionFactory factory)
Registers an ExtensionFactory implementation.
|
AbderaConfiguration |
addNamedParser(NamedParser parser)
Registers a NamedParser implementation
|
AbderaConfiguration |
addNamedWriter(NamedWriter writer)
Registers a NamedWriter implementation
|
AbderaConfiguration |
addStreamWriter(java.lang.Class<? extends StreamWriter> sw)
Registers a StreamWriter implementation
|
java.lang.Object |
clone() |
java.lang.String |
getConfigurationOption(java.lang.String id)
Retrieve the value of the specified configuration option
|
java.lang.String |
getConfigurationOption(java.lang.String id,
java.lang.String _default)
Retrieve the value of the specified configuration option or _default if the value is null
|
static Configuration |
getDefault()
Returns the default configuration.
|
java.util.List<ExtensionFactory> |
getExtensionFactories()
Returns the listing of registered ExtensionFactory implementations
|
java.util.Map<java.lang.String,NamedParser> |
getNamedParsers()
Returns the collection of Named Parsers
|
java.util.Map<java.lang.String,NamedWriter> |
getNamedWriters()
Returns the collection of NamedWriters
|
java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> |
getStreamWriters()
Returns the collection of NamedWriters
|
Factory |
newFactoryInstance(Abdera abdera)
Return a new instance of org.apache.abdera.factory.Factory
|
ParserFactory |
newParserFactoryInstance(Abdera abdera)
Return a new instance of org.apache.abdera.parser.ParserFactory
|
Parser |
newParserInstance(Abdera abdera)
Return a new instance of org.apache.abdera.parser.Parser
|
StreamWriter |
newStreamWriterInstance(Abdera abdera)
Return a new instance of the default org.apache.abdera.writer.Writer
|
WriterFactory |
newWriterFactoryInstance(Abdera abdera)
Return a new instance of org.apache.abdera.writer.WriterFactory
|
Writer |
newWriterInstance(Abdera abdera)
Return a new instance of the default org.apache.abdera.writer.Writer
|
XPath |
newXPathInstance(Abdera abdera)
Return a new instance of org.apache.abdera.xpath.XPath
|
public static Configuration getDefault()
public java.lang.String getConfigurationOption(java.lang.String id)
getConfigurationOption in interface Configurationpublic java.lang.String getConfigurationOption(java.lang.String id,
java.lang.String _default)
getConfigurationOption in interface Configurationpublic AbderaConfiguration addExtensionFactory(ExtensionFactory factory)
addExtensionFactory in interface Configurationfactory - is the new ExtensionFactory to addpublic java.util.List<ExtensionFactory> getExtensionFactories()
getExtensionFactories in interface Configurationpublic AbderaConfiguration addNamedWriter(NamedWriter writer)
addNamedWriter in interface Configurationwriter - is the new NamedWriter to addpublic java.util.Map<java.lang.String,NamedWriter> getNamedWriters()
getNamedWriters in interface Configurationpublic java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> getStreamWriters()
getStreamWriters in interface Configurationpublic AbderaConfiguration addNamedParser(NamedParser parser)
addNamedParser in interface Configurationparser - is the new NamedParser to addpublic AbderaConfiguration addStreamWriter(java.lang.Class<? extends StreamWriter> sw)
addStreamWriter in interface Configurationsw - is the new StreamWriter to addpublic java.util.Map<java.lang.String,NamedParser> getNamedParsers()
getNamedParsers in interface Configurationpublic java.lang.Object clone()
clone in interface Configurationclone in class java.lang.Objectpublic Factory newFactoryInstance(Abdera abdera)
newFactoryInstance in interface Configurationpublic Parser newParserInstance(Abdera abdera)
newParserInstance in interface Configurationpublic XPath newXPathInstance(Abdera abdera)
newXPathInstance in interface Configurationpublic ParserFactory newParserFactoryInstance(Abdera abdera)
newParserFactoryInstance in interface Configurationpublic WriterFactory newWriterFactoryInstance(Abdera abdera)
newWriterFactoryInstance in interface Configurationpublic Writer newWriterInstance(Abdera abdera)
newWriterInstance in interface Configurationpublic StreamWriter newStreamWriterInstance(Abdera abdera)
newStreamWriterInstance in interface ConfigurationCopyright © 2010 - 2023 Adobe. All Rights Reserved