Package org.apache.abdera.util
Interface Configuration
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
- All Known Implementing Classes:
AbderaConfiguration
public interface Configuration extends java.lang.Cloneable, java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationaddExtensionFactory(ExtensionFactory factory)Registers a new ExtensionFactory, this method doesn't override an extensionFactory if already exists.ConfigurationaddNamedParser(NamedParser parser)Registers a new NamedParser, this method doesn't override a parser if already exists.ConfigurationaddNamedWriter(NamedWriter writer)Registers a new NamedWriter, this method doesn't override a writer if already exists.ConfigurationaddStreamWriter(java.lang.Class<? extends StreamWriter> sw)Registers a new StreamWriter, this method doesn't override a streamWriter if already exists.java.lang.Objectclone()java.lang.StringgetConfigurationOption(java.lang.String id)Retrieve the value of the specified configuration optionjava.lang.StringgetConfigurationOption(java.lang.String id, java.lang.String _default)Retrieve the value of the specified configuration option or _default if the value is nulljava.util.List<ExtensionFactory>getExtensionFactories()Get the collection of ExtensionFactory implsjava.util.Map<java.lang.String,NamedParser>getNamedParsers()Get the collection of NamedParsers;java.util.Map<java.lang.String,NamedWriter>getNamedWriters()Get the collection of NamedWritersjava.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>>getStreamWriters()Get the collection of Named StreamWritersFactorynewFactoryInstance(Abdera abdera)Get a new instance of the default Factory implParserFactorynewParserFactoryInstance(Abdera abdera)Get a new instance of the default ParserFactory implParsernewParserInstance(Abdera abdera)Get a new instance of the default Parser implStreamWriternewStreamWriterInstance(Abdera abdera)Get a new instance of the default StreamWriter implWriterFactorynewWriterFactoryInstance(Abdera abdera)Get a new instance of the default WriterFactory implWriternewWriterInstance(Abdera abdera)Get a new instance of the default Writer implXPathnewXPathInstance(Abdera abdera)Get a new instance of the default XPath impl
-
-
-
Method Detail
-
getConfigurationOption
java.lang.String getConfigurationOption(java.lang.String id)
Retrieve the value of the specified configuration option- Returns:
- The configuration option value or null
-
getConfigurationOption
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- Returns:
- The configuration option value of _default
-
newFactoryInstance
Factory newFactoryInstance(Abdera abdera)
Get a new instance of the default Factory impl
-
newParserInstance
Parser newParserInstance(Abdera abdera)
Get a new instance of the default Parser impl
-
newXPathInstance
XPath newXPathInstance(Abdera abdera)
Get a new instance of the default XPath impl
-
newParserFactoryInstance
ParserFactory newParserFactoryInstance(Abdera abdera)
Get a new instance of the default ParserFactory impl
-
newWriterFactoryInstance
WriterFactory newWriterFactoryInstance(Abdera abdera)
Get a new instance of the default WriterFactory impl
-
newWriterInstance
Writer newWriterInstance(Abdera abdera)
Get a new instance of the default Writer impl
-
newStreamWriterInstance
StreamWriter newStreamWriterInstance(Abdera abdera)
Get a new instance of the default StreamWriter impl
-
getNamedParsers
java.util.Map<java.lang.String,NamedParser> getNamedParsers()
Get the collection of NamedParsers;
-
getNamedWriters
java.util.Map<java.lang.String,NamedWriter> getNamedWriters()
Get the collection of NamedWriters
-
getStreamWriters
java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> getStreamWriters()
Get the collection of Named StreamWriters
-
getExtensionFactories
java.util.List<ExtensionFactory> getExtensionFactories()
Get the collection of ExtensionFactory impls
-
clone
java.lang.Object clone()
-
addNamedParser
Configuration addNamedParser(NamedParser parser)
Registers a new NamedParser, this method doesn't override a parser if already exists.- Parameters:
parser- is the new NamedParser to add- Returns:
- the instance of the configuration class
-
addNamedWriter
Configuration addNamedWriter(NamedWriter writer)
Registers a new NamedWriter, this method doesn't override a writer if already exists.- Parameters:
writer- is the new NamedWriter to add- Returns:
- the instance of the configuration class
-
addExtensionFactory
Configuration addExtensionFactory(ExtensionFactory factory)
Registers a new ExtensionFactory, this method doesn't override an extensionFactory if already exists.- Parameters:
factory- is the new ExtensionFactory to add- Returns:
- the instance of the configuration class
-
addStreamWriter
Configuration addStreamWriter(java.lang.Class<? extends StreamWriter> sw)
Registers a new StreamWriter, this method doesn't override a streamWriter if already exists.- Parameters:
sw- is the new StreamWriter to add- Returns:
- the instance of the configuration class
-
-