This class implements a filter that simply passes document
events to the next handler. It can be used as a base class to
simplify the development of new document filters.
characters
public void characters(XMLString text,
Augmentations augs)
throws XNIExceptionCharacters.
comment
public void comment(XMLString text,
Augmentations augs)
throws XNIExceptionComment.
doctypeDecl
public void doctypeDecl(String root,
String publicId,
String systemId,
Augmentations augs)
throws XNIExceptionDoctype declaration.
emptyElement
public void emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIExceptionEmpty element.
endCDATA
public void endCDATA(Augmentations augs)
throws XNIExceptionEnd CDATA section.
endDocument
public void endDocument(Augmentations augs)
throws XNIExceptionEnd document.
endElement
public void endElement(QName element,
Augmentations augs)
throws XNIExceptionEnd element.
endGeneralEntity
public void endGeneralEntity(String name,
Augmentations augs)
throws XNIExceptionEnd general entity.
endPrefixMapping
public void endPrefixMapping(String prefix,
Augmentations augs)
throws XNIExceptionEnd prefix mapping.
getDocumentHandler
public XMLDocumentHandler getDocumentHandler()
Returns the document handler.
getDocumentSource
public XMLDocumentSource getDocumentSource()
Returns the document source.
getFeatureDefault
public Boolean getFeatureDefault(String featureId)
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
- getFeatureDefault in interface HTMLComponent
getPropertyDefault
public Object getPropertyDefault(String propertyId)
Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
- getPropertyDefault in interface HTMLComponent
getRecognizedFeatures
public String[] getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component. This method may return null if no features
are recognized by this component.
getRecognizedProperties
public String[] getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. This method may return null if no properties
are recognized by this component.
ignorableWhitespace
public void ignorableWhitespace(XMLString text,
Augmentations augs)
throws XNIExceptionIgnorable whitespace.
merge
protected static String[] merge(String[] array1,
String[] array2) Utility method for merging string arrays for recognized features
and recognized properties.
processingInstruction
public void processingInstruction(String target,
XMLString data,
Augmentations augs)
throws XNIExceptionProcessing instruction.
reset
public void reset(XMLComponentManager componentManager)
throws XMLConfigurationException Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
componentManager - The component manager.
setDocumentHandler
public void setDocumentHandler(XMLDocumentHandler handler)
Sets the document handler.
setDocumentSource
public void setDocumentSource(XMLDocumentSource source)
Sets the document source.
setFeature
public void setFeature(String featureId,
boolean state)
throws XMLConfigurationException Sets the state of a feature. This method is called by the component
manager any time after reset when a feature changes state.
Note: Components should silently ignore features
that do not affect the operation of the component.
featureId - The feature identifier.state - The state of the feature.
setProperty
public void setProperty(String propertyId,
Object value)
throws XMLConfigurationException Sets the value of a property. This method is called by the component
manager any time after reset when a property changes value.
Note: Components should silently ignore properties
that do not affect the operation of the component.
propertyId - The property identifier.value - The value of the property.
startCDATA
public void startCDATA(Augmentations augs)
throws XNIExceptionStart CDATA section.
startDocument
public void startDocument(XMLLocator locator,
String encoding,
Augmentations augs)
throws XNIExceptionStart document.
startDocument
public void startDocument(XMLLocator locator,
String encoding,
NamespaceContext nscontext,
Augmentations augs)
throws XNIExceptionStart document.
startElement
public void startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIExceptionStart element.
startGeneralEntity
public void startGeneralEntity(String name,
XMLResourceIdentifier id,
String encoding,
Augmentations augs)
throws XNIExceptionStart general entity.
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri,
Augmentations augs)
throws XNIExceptionStart prefix mapping.
textDecl
public void textDecl(String version,
String encoding,
Augmentations augs)
throws XNIExceptionText declaration.
xmlDecl
public void xmlDecl(String version,
String encoding,
String standalone,
Augmentations augs)
throws XNIExceptionXML declaration.