com.mkdoc.sax
Class AbstractXMLReader.Feature

java.lang.Object
  |
  +--com.mkdoc.sax.AbstractXMLReader.Feature
Enclosing class:
AbstractXMLReader

protected class AbstractXMLReader.Feature
extends java.lang.Object

SAX parser feature.

Feature support and feature values are true by default.

Since:
Version 0.1 2004-10-20

Constructor Summary
protected AbstractXMLReader.Feature()
          Default constructor takes default true value.
protected AbstractXMLReader.Feature(boolean value)
          Constructor with initial value.
 
Method Summary
 boolean getValue()
          Get the feature value.
protected  void setSupported(boolean supported)
          Control the accessibility of the feature.
 void setValue(boolean value)
          Set the feature value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXMLReader.Feature

protected AbstractXMLReader.Feature(boolean value)
Constructor with initial value.

Parameters:
value - The value of this feature.
Since:
Version 0.2 2004-10-25

AbstractXMLReader.Feature

protected AbstractXMLReader.Feature()
Default constructor takes default true value.

Since:
Version 0.2 2004-10-25
Method Detail

setValue

public final void setValue(boolean value)
                    throws org.xml.sax.SAXNotSupportedException
Set the feature value.

Parameters:
value - The value of this feature.
Throws:
org.xml.sax.SAXNotSupportedException - If the feature is not supported; it is not mutable.
Since:
Version 0.1 2004-10-20

getValue

public final boolean getValue()
                       throws org.xml.sax.SAXNotSupportedException
Get the feature value.

Returns:
The value of this feature.
Throws:
org.xml.sax.SAXNotSupportedException - If the feature value is not supported; it is not accessible.
Since:
Version 0.1 2004-10-20

setSupported

protected final void setSupported(boolean supported)
Control the accessibility of the feature.

Parameters:
supported - Whether this feature is supported.
Since:
Version 0.1 2004-10-20