net.sf.saxon.event
Class AnnotationRemover
java.lang.Object
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.AnnotationRemover
- All Implemented Interfaces:
- Result, Receiver
public class AnnotationRemover
- extends ProxyReceiver
This class is a filter that passes all Receiver events through unchanged,
except that it removes all type annotations from element and attribute nodes
- Author:
- Michael Kay (michael.h.kay@ntlworld.com)
Method Summary |
void |
attribute(int nameCode,
int typeCode,
CharSequence value,
int properties)
Handle an attribute |
void |
startElement(int nameCode,
int typeCode,
int properties)
Output element start tag |
Methods inherited from class net.sf.saxon.event.ProxyReceiver |
characters, comment, endDocument, endElement, getNamePool, getSystemId, getUnderlyingReceiver, namespace, processingInstruction, setDocumentLocator, setNamePool, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationRemover
public AnnotationRemover()
startElement
public void startElement(int nameCode,
int typeCode,
int properties)
throws TransformerException
- Output element start tag
- Specified by:
startElement
in interface Receiver
- Overrides:
startElement
in class ProxyReceiver
- Parameters:
nameCode
- integer code identifying the name of the element within the name pool.typeCode
- integer code identifying the element's type within the name pool.
- Throws:
TransformerException
attribute
public void attribute(int nameCode,
int typeCode,
CharSequence value,
int properties)
throws TransformerException
- Handle an attribute
- Specified by:
attribute
in interface Receiver
- Overrides:
attribute
in class ProxyReceiver
- Parameters:
nameCode
- integer identifying the name of the attributetypeCode
- integer identifying the type annotation of the
attributevalue
- the value of the attributeproperties
- bit-significant flags indicating special action to
be taken
- Throws:
TransformerException
- On any failure to write the attribute