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 java.lang.String |
AUGMENTATIONS
Augmentations feature identifier.
|
protected static java.lang.String |
FILTERS
Filters property identifier.
|
fDocumentHandler, fDocumentSource| Constructor and Description |
|---|
Identity() |
| Modifier and Type | Method and Description |
|---|---|
void |
emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Empty element.
|
void |
endElement(QName element,
Augmentations augs)
End element.
|
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Start element.
|
protected static boolean |
synthesized(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 java.lang.String AUGMENTATIONS
protected static final java.lang.String FILTERS
public void startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIException
startElement in class DefaultFilterXNIExceptionpublic void emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIException
emptyElement in class DefaultFilterXNIExceptionpublic void endElement(QName element,
Augmentations augs)
throws XNIException
endElement in class DefaultFilterXNIExceptionprotected static boolean synthesized(Augmentations augs)
(C) Copyright 2002-2014, Andy Clark, Marc Guillemot. All rights reserved.