|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a configurable SAX2 parser. This interface allows the application to set or query features and property values from a SAX2 parser. It provides a standard interface feature negotiation and for extensibility. Features and properties have unique identifiers, which must be fully-qualified URIs.
Parser
,
ConfigurableParserAdapter
Method Summary | |
boolean |
getFeature(java.lang.String featureId)
Query the state of a feature. |
java.lang.Object |
getProperty(java.lang.String propertyId)
Query the value of a property. |
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of a feature. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Set the value of a property. |
Method Detail |
public void setFeature(java.lang.String featureId, boolean state) throws SAXException
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).
SAXNotRecognizedException
- If the
requested feature is not known.
SAXNotSupportedException
- If the
requested feature is known, but the requested
state is not supported.
SAXException
- If there is any other
problem fulfilling the request.public boolean getFeature(java.lang.String featureId) throws SAXException
featureId
- The unique identifier (URI) of the feature
being set.
SAXNotRecognizedException
- If the
requested feature is not known.
SAXException
- If there is any other
problem fulfilling the request.public void setProperty(java.lang.String propertyId, java.lang.Object value) throws SAXException
propertyId
- The unique identifier (URI) of the property
being set.
SAXNotRecognizedException
- If the
requested property is not known.
SAXNotSupportedException
- If the
requested property is known, but the requested
value is not supported.
SAXException
- If there is any other
problem fulfilling the request.public java.lang.Object getProperty(java.lang.String propertyId) throws SAXException
propertyId
- The unique identifier (URI) of the property
being set.
SAXNotRecognizedException
- If the
requested property is not known.
SAXException
- If there is any other
problem fulfilling the request.getProperty(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |