net.sf.saxon.event
public class IDFilter extends StartTagBuffer
Constructor Summary | |
---|---|
IDFilter(String id) |
Method Summary | |
---|---|
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
Notify an attribute. |
void | characters(CharSequence chars, int locationId, int properties)
Character data |
void | comment(CharSequence chars, int locationId, int properties)
Output a comment |
protected void | declareNamespacesForStartElement() |
void | endElement()
endElement: |
void | processingInstruction(String target, CharSequence data, int locationId, int properties)
Processing Instruction |
void | startContent()
startContent: Test if a matching ID attribute was found; if so, start outputting. |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
startElement |
boolean | usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events |
Parameters: nameCode The name of the attribute, as held in the name pool typeCode The type of the attribute, as held in the name pool properties Bit significant value. The following bits are defined:
Throws: IllegalStateException: attempt to output an attribute when there is no open element start tag
Returns: true if the Receiver makes any use of this information. If false, the caller may supply untyped nodes instead of supplying the type annotation