public class DefaultFilter extends java.lang.Object implements HTMLComponent
Modifier and Type | Field and Description |
---|---|
protected XMLDocumentHandler |
fDocumentHandler
Document handler.
|
protected XMLDocumentSource |
fDocumentSource
Document source.
|
Constructor and Description |
---|
DefaultFilter() |
Modifier and Type | Method and Description |
---|---|
void |
characters(XMLString text,
Augmentations augs)
Characters.
|
void |
comment(XMLString text,
Augmentations augs)
Comment.
|
void |
doctypeDecl(java.lang.String root,
java.lang.String publicId,
java.lang.String systemId,
Augmentations augs)
Doctype declaration.
|
void |
emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Empty element.
|
void |
endCDATA(Augmentations augs)
End CDATA section.
|
void |
endDocument(Augmentations augs)
End document.
|
void |
endElement(QName element,
Augmentations augs)
End element.
|
void |
endGeneralEntity(java.lang.String name,
Augmentations augs)
End general entity.
|
void |
endPrefixMapping(java.lang.String prefix,
Augmentations augs)
End prefix mapping.
|
XMLDocumentHandler |
getDocumentHandler()
Returns the document handler.
|
XMLDocumentSource |
getDocumentSource()
Returns the document source.
|
java.lang.Boolean |
getFeatureDefault(java.lang.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.
|
java.lang.Object |
getPropertyDefault(java.lang.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.
|
java.lang.String[] |
getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component.
|
java.lang.String[] |
getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component.
|
void |
ignorableWhitespace(XMLString text,
Augmentations augs)
Ignorable whitespace.
|
protected static java.lang.String[] |
merge(java.lang.String[] array1,
java.lang.String[] array2)
Utility method for merging string arrays for recognized features
and recognized properties.
|
void |
processingInstruction(java.lang.String target,
XMLString data,
Augmentations augs)
Processing instruction.
|
void |
reset(XMLComponentManager componentManager)
Resets the component.
|
void |
setDocumentHandler(XMLDocumentHandler handler)
Sets the document handler.
|
void |
setDocumentSource(XMLDocumentSource source)
Sets the document source.
|
void |
setFeature(java.lang.String featureId,
boolean state)
Sets the state of a feature.
|
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Sets the value of a property.
|
void |
startCDATA(Augmentations augs)
Start CDATA section.
|
void |
startDocument(XMLLocator locator,
java.lang.String encoding,
Augmentations augs)
Start document.
|
void |
startDocument(XMLLocator locator,
java.lang.String encoding,
NamespaceContext nscontext,
Augmentations augs)
Start document.
|
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Start element.
|
void |
startGeneralEntity(java.lang.String name,
XMLResourceIdentifier id,
java.lang.String encoding,
Augmentations augs)
Start general entity.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri,
Augmentations augs)
Start prefix mapping.
|
void |
textDecl(java.lang.String version,
java.lang.String encoding,
Augmentations augs)
Text declaration.
|
void |
xmlDecl(java.lang.String version,
java.lang.String encoding,
java.lang.String standalone,
Augmentations augs)
XML declaration.
|
protected XMLDocumentHandler fDocumentHandler
protected XMLDocumentSource fDocumentSource
public void setDocumentHandler(XMLDocumentHandler handler)
public XMLDocumentHandler getDocumentHandler()
public void setDocumentSource(XMLDocumentSource source)
public XMLDocumentSource getDocumentSource()
public void startDocument(XMLLocator locator, java.lang.String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException
XNIException
public void xmlDecl(java.lang.String version, java.lang.String encoding, java.lang.String standalone, Augmentations augs) throws XNIException
XNIException
public void doctypeDecl(java.lang.String root, java.lang.String publicId, java.lang.String systemId, Augmentations augs) throws XNIException
XNIException
public void comment(XMLString text, Augmentations augs) throws XNIException
XNIException
public void processingInstruction(java.lang.String target, XMLString data, Augmentations augs) throws XNIException
XNIException
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
XNIException
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
XNIException
public void characters(XMLString text, Augmentations augs) throws XNIException
XNIException
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException
XNIException
public void startGeneralEntity(java.lang.String name, XMLResourceIdentifier id, java.lang.String encoding, Augmentations augs) throws XNIException
XNIException
public void textDecl(java.lang.String version, java.lang.String encoding, Augmentations augs) throws XNIException
XNIException
public void endGeneralEntity(java.lang.String name, Augmentations augs) throws XNIException
XNIException
public void startCDATA(Augmentations augs) throws XNIException
XNIException
public void endCDATA(Augmentations augs) throws XNIException
XNIException
public void endElement(QName element, Augmentations augs) throws XNIException
XNIException
public void endDocument(Augmentations augs) throws XNIException
XNIException
public void startDocument(XMLLocator locator, java.lang.String encoding, Augmentations augs) throws XNIException
XNIException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri, Augmentations augs) throws XNIException
XNIException
public void endPrefixMapping(java.lang.String prefix, Augmentations augs) throws XNIException
XNIException
public java.lang.String[] getRecognizedFeatures()
public java.lang.Boolean getFeatureDefault(java.lang.String featureId)
getFeatureDefault
in interface HTMLComponent
public java.lang.String[] getRecognizedProperties()
public java.lang.Object getPropertyDefault(java.lang.String propertyId)
getPropertyDefault
in interface HTMLComponent
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException
componentManager
- The component manager.XNIException
- Thrown by component on initialization error.XMLConfigurationException
public void setFeature(java.lang.String featureId, boolean state) throws XMLConfigurationException
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.XMLConfigurationException
- Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.public void setProperty(java.lang.String propertyId, java.lang.Object value) throws XMLConfigurationException
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.XMLConfigurationException
- Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.protected static java.lang.String[] merge(java.lang.String[] array1, java.lang.String[] array2)
(C) Copyright 2002-2014, Andy Clark, Marc Guillemot. All rights reserved.