public final class XMLFeatureSet extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Class and Description |
---|---|
private static class |
XMLFeatureSet.XMLFeatureState
A holder of the boolean state for a feature.
|
Modifier and Type | Field and Description |
---|---|
private Map<String,XMLFeatureSet.XMLFeatureState> |
features |
private Map<XMLFeature,String> |
states |
Constructor and Description |
---|
XMLFeatureSet()
An XMLFeatureSet with default settings.
|
Modifier and Type | Method and Description |
---|---|
void |
printUsage()
Prints the usage.
|
void |
setFeatures(XMLReader parser)
Set this XMLFeatureSets state onto an XMLReader.
|
void |
setFeatureState(XMLFeature feature,
boolean state)
Set the state of an XMLFeture in this set.
|
void |
setFeatureStates(String[] argv)
Allow for XMLFeatures to be set from command line.
|
String |
toString() |
private Map<String,XMLFeatureSet.XMLFeatureState> features
private Map<XMLFeature,String> states
public void setFeatureState(XMLFeature feature, boolean state)
feature
- the XMLFeature to setstate
- whether the feature is on or offpublic void setFeatureStates(String[] argv)
argv
- the specification of XMLFeatures to turn on or offSee printUsage for details
public void printUsage()
public void setFeatures(XMLReader parser)
parser
- the XMLReader