|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.any23.extractor.ExtractorRegistry
public class ExtractorRegistry
Singleton class acting as a register for all the various
Extractor
.
Constructor Summary | |
---|---|
ExtractorRegistry()
|
Method Summary | |
---|---|
List<String> |
getAllNames()
Returns the names of all registered extractors, sorted alphabetically. |
ExtractorGroup |
getExtractorGroup()
|
ExtractorGroup |
getExtractorGroup(List<String> names)
Returns an ExtractorGroup containing the
ExtractorFactory mathing the names provided as input. |
ExtractorFactory<?> |
getFactory(String name)
Retrieves a ExtractorFactory given its name |
static ExtractorRegistry |
getInstance()
|
boolean |
isRegisteredName(String name)
|
void |
register(ExtractorFactory<?> factory)
Registers an ExtractorFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtractorRegistry()
Method Detail |
---|
public static ExtractorRegistry getInstance()
ExtractorRegistry
instance.public void register(ExtractorFactory<?> factory)
ExtractorFactory
.
factory
-
IllegalArgumentException
- if trying to register a ExtractorFactory
with a that already exists in the registry.public ExtractorFactory<?> getFactory(String name)
ExtractorFactory
given its name
name
- of the desired factory
ExtractorFactory
associated to the provided name
IllegalArgumentException
- if there is not a
ExtractorFactory
associated to the provided name.public ExtractorGroup getExtractorGroup()
ExtractorGroup
with all the registered
Extractor
.public ExtractorGroup getExtractorGroup(List<String> names)
ExtractorGroup
containing the
ExtractorFactory
mathing the names provided as input.
names
- a List
containing the names of the desired ExtractorFactory
.
public boolean isRegisteredName(String name)
name
- of the ExtractorFactory
true
if is there a ExtractorFactory
associated to the provided name.public List<String> getAllNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |