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(org.apache.abdera.parser.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,org.apache.abdera.parser.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
|
org.apache.abdera.parser.ParserFactory |
newParserFactoryInstance(Abdera abdera)
Return a new instance of org.apache.abdera.parser.ParserFactory
|
org.apache.abdera.parser.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 Configuration
public java.lang.String getConfigurationOption(java.lang.String id, java.lang.String _default)
getConfigurationOption
in interface Configuration
public AbderaConfiguration addExtensionFactory(ExtensionFactory factory)
addExtensionFactory
in interface Configuration
factory
- is the new ExtensionFactory to addpublic java.util.List<ExtensionFactory> getExtensionFactories()
getExtensionFactories
in interface Configuration
public AbderaConfiguration addNamedWriter(NamedWriter writer)
addNamedWriter
in interface Configuration
writer
- is the new NamedWriter to addpublic java.util.Map<java.lang.String,NamedWriter> getNamedWriters()
getNamedWriters
in interface Configuration
public java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> getStreamWriters()
getStreamWriters
in interface Configuration
public AbderaConfiguration addNamedParser(org.apache.abdera.parser.NamedParser parser)
addNamedParser
in interface Configuration
parser
- is the new NamedParser to addpublic AbderaConfiguration addStreamWriter(java.lang.Class<? extends StreamWriter> sw)
addStreamWriter
in interface Configuration
sw
- is the new StreamWriter to addpublic java.util.Map<java.lang.String,org.apache.abdera.parser.NamedParser> getNamedParsers()
getNamedParsers
in interface Configuration
public java.lang.Object clone()
clone
in interface Configuration
clone
in class java.lang.Object
public Factory newFactoryInstance(Abdera abdera)
newFactoryInstance
in interface Configuration
public org.apache.abdera.parser.Parser newParserInstance(Abdera abdera)
newParserInstance
in interface Configuration
public XPath newXPathInstance(Abdera abdera)
newXPathInstance
in interface Configuration
public org.apache.abdera.parser.ParserFactory newParserFactoryInstance(Abdera abdera)
newParserFactoryInstance
in interface Configuration
public WriterFactory newWriterFactoryInstance(Abdera abdera)
newWriterFactoryInstance
in interface Configuration
public Writer newWriterInstance(Abdera abdera)
newWriterInstance
in interface Configuration
public StreamWriter newStreamWriterInstance(Abdera abdera)
newStreamWriterInstance
in interface Configuration
Copyright © 2010 - 2020 Adobe. All Rights Reserved