private static class XMLFeatureSet.XMLFeatureState extends Object
Modifier and Type | Field and Description |
---|---|
private XMLFeature |
feature |
private boolean |
state |
Constructor and Description |
---|
XMLFeatureSet.XMLFeatureState(XMLFeature feature)
An XMLFeature that is turned off.
|
XMLFeatureSet.XMLFeatureState(XMLFeature feature,
boolean state)
Bind a state to an XMLFeature.
|
Modifier and Type | Method and Description |
---|---|
XMLFeature |
getFeature() |
void |
setFeature(XMLReader parser)
Set the control state on the parser.
|
void |
setState(boolean newState)
Set the new state
|
private boolean state
private XMLFeature feature
XMLFeatureSet.XMLFeatureState(XMLFeature feature, boolean state)
feature
- the XMLFeaturestate
- whether that XMLFeature is on or offXMLFeatureSet.XMLFeatureState(XMLFeature feature)
feature
- the XMLFeaturepublic XMLFeature getFeature()
public void setState(boolean newState)
newState
- whether the feature is on or offpublic void setFeature(XMLReader parser)
parser
- The parser on which to set this feature