public class Identity extends DefaultFilter
Note: This filter requires the augmentations feature to be turned on. For example:
XMLParserConfiguration parser = new HTMLConfiguration();
parser.setFeature("http://cyberneko.org/html/features/augmentations", true);
Note: This isn't exactly the identify transform because the element and attributes names may have been modified from the original document. For example, by default, NekoHTML converts element names to upper-case and attribute names to lower-case.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AUGMENTATIONS
Augmentations feature identifier.
|
protected static String |
FILTERS
Filters property identifier.
|
fDocumentHandler, fDocumentSource| Constructor and Description |
|---|
Identity() |
| Modifier and Type | Method and Description |
|---|---|
void |
emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
Empty element.
|
void |
endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs)
End element.
|
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
Start element.
|
protected static boolean |
synthesized(org.apache.xerces.xni.Augmentations augs)
Returns true if the information provided is synthesized.
|
characters, comment, doctypeDecl, endCDATA, endDocument, endGeneralEntity, endPrefixMapping, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, ignorableWhitespace, merge, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecl, xmlDeclprotected static final String AUGMENTATIONS
protected static final String FILTERS
public void startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startElement in interface org.apache.xerces.xni.XMLDocumentHandlerstartElement in class DefaultFilterorg.apache.xerces.xni.XNIExceptionpublic void emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
emptyElement in interface org.apache.xerces.xni.XMLDocumentHandleremptyElement in class DefaultFilterorg.apache.xerces.xni.XNIExceptionpublic void endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endElement in interface org.apache.xerces.xni.XMLDocumentHandlerendElement in class DefaultFilterorg.apache.xerces.xni.XNIExceptionprotected static boolean synthesized(org.apache.xerces.xni.Augmentations augs)
Copyright © 2017. All rights reserved.