public class ParserEntityFactory extends Object implements EntityFactory
Modifier and Type | Field and Description |
---|---|
static String |
OPTION_DYNAMIC_FIELD
DynamicField option constant
|
static String |
OPTION_FIELD
Field option constant
|
Constructor and Description |
---|
ParserEntityFactory()
Create a new ParserEntityFactory.
|
ParserEntityFactory(InputStream source)
Create a new ParserEntityFactory.
|
ParserEntityFactory(InputStream[] sources)
Create a new ParserEntityFactory.
|
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity(Object cue)
Get an Entity.
|
EntityNameStrategy |
getEntityNameStrategy()
Get the entityNameStrategy.
|
EntityFactory |
getParent()
Get the parent.
|
InputStream[] |
getSources()
Get the InputStream[] sources.
|
void |
setEntityNameStrategy(EntityNameStrategy entityNameStrategy)
Set the entityNameStrategy.
|
void |
setParent(EntityFactory parent)
Set the parent.
|
void |
setSource(InputStream source)
Convenience setter for a single InputStream source.
|
void |
setSources(InputStream[] sources)
Set the InputStream[] sources.
|
void |
validate()
Validate all defined entities.
|
public static final String OPTION_FIELD
public static final String OPTION_DYNAMIC_FIELD
public ParserEntityFactory()
public ParserEntityFactory(InputStream source)
source
- to readpublic ParserEntityFactory(InputStream[] sources)
sources
- to readpublic final Entity getEntity(Object cue)
getEntity
in interface EntityFactory
cue
- an Object that may provide a cue as to what type of Entity is required.public final void validate()
public EntityNameStrategy getEntityNameStrategy()
public void setEntityNameStrategy(EntityNameStrategy entityNameStrategy)
entityNameStrategy
- The EntityNameStrategy entityNameStrategy to set.public InputStream[] getSources()
public void setSources(InputStream[] sources)
sources
- InputStream[]public void setSource(InputStream source)
source
- to setpublic EntityFactory getParent()
public void setParent(EntityFactory parent)
parent
- EntityFactoryCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.