| java.lang.Object net.sf.saxon.event.SequenceReceiver net.sf.saxon.event.ProxyReceiver net.sf.saxon.event.StartTagBuffer
All known Subclasses: net.sf.saxon.event.IDFilter,
StartTagBuffer | public class StartTagBuffer extends ProxyReceiver implements NamespaceResolver(Code) | | StartTagBuffer is a ProxyReceiver that buffers attributes and namespace events within a start tag.
It maintains details of the namespace context, and a full set of attribute information, on behalf
of other filters that need access to namespace information or need to process attributes in arbitrary
order.
|
Method Summary | |
public void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) Notify an attribute. | protected void | declareAllNamespaces() | protected void | declareNamespacesForStartElement() | public void | endElement() endElement: Discard the namespaces declared on this element. | public String | getAttribute(int nameCode) | public int | getElementNameCode() | protected short | getURICode(short prefixCode) Get the URI code corresponding to a given prefix code, by searching the
in-scope namespaces. | public String | getURIForPrefix(String prefix, boolean useDefault) Get the namespace URI corresponding to a given prefix. | public boolean | hasAttributes() | public Iterator | iteratePrefixes() Get an iterator over all the prefixes declared in this namespace context. | public void | namespace(int namespaceCode, int properties) | public void | setPipelineConfiguration(PipelineConfiguration config) | public void | startContent() | public void | startElement(int nameCode, int typeCode, int locationId, int properties) | protected void | undeclareNamespacesForElement() |
elementLocationId | int elementLocationId(Code) | | |
elementNameCode | int elementNameCode(Code) | | |
elementProperties | int elementProperties(Code) | | |
elementTypeCode | int elementTypeCode(Code) | | |
attribute | public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException(Code) | | Notify an attribute. Attributes are notified after the startElement event, and before any
children. Namespaces and attributes may be intermingled.
Parameters: nameCode - The name of the attribute, as held in the name pool Parameters: typeCode - The type of the attribute, as held in the name pool Parameters: properties - Bit significant value. The following bits are defined:DISABLE_ESCAPING Disable escaping for this attributeNO_SPECIAL_CHARACTERS Attribute value contains no special characters throws: IllegalStateException - : attempt to output an attribute when there is no open elementstart tag |
declareNamespacesForStartElement | protected void declareNamespacesForStartElement() throws XPathException(Code) | | |
endElement | public void endElement() throws XPathException(Code) | | endElement: Discard the namespaces declared on this element.
|
getAttribute | public String getAttribute(int nameCode)(Code) | | Get the value of the current attribute with a given nameCode
the attribute value, or null if the attribute is not present |
getElementNameCode | public int getElementNameCode()(Code) | | Get the name of the current element
|
getURICode | protected short getURICode(short prefixCode)(Code) | | Get the URI code corresponding to a given prefix code, by searching the
in-scope namespaces. This is a service provided to subclasses.
Parameters: prefixCode - the 16-bit prefix code required the 16-bit URI code, or -1 if the prefix is not found |
getURIForPrefix | public String getURIForPrefix(String prefix, boolean useDefault)(Code) | | Get the namespace URI corresponding to a given prefix. Return null
if the prefix is not in scope.
Parameters: prefix - the namespace prefix Parameters: useDefault - true if the default namespace is to be used when theprefix is "" the uri for the namespace, or null if the prefix is not in scope |
hasAttributes | public boolean hasAttributes()(Code) | | Determine if the current element has any attributes
|
iteratePrefixes | public Iterator iteratePrefixes()(Code) | | Get an iterator over all the prefixes declared in this namespace context. This will include
the default namespace (prefix="") and the XML namespace where appropriate
|
startContent | public void startContent() throws XPathException(Code) | | startContent: Add any namespace undeclarations needed to stop
namespaces being inherited from parent elements
|
startElement | public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code) | | startElement
|
undeclareNamespacesForElement | protected void undeclareNamespacesForElement()(Code) | | |
Methods inherited from net.sf.saxon.event.ProxyReceiver | public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException(Code)(Java Doc) public void characters(CharSequence chars, int locationId, int properties) throws XPathException(Code)(Java Doc) public void close() throws XPathException(Code)(Java Doc) public void comment(CharSequence chars, int locationId, int properties) throws XPathException(Code)(Java Doc) public void endDocument() throws XPathException(Code)(Java Doc) public void endElement() throws XPathException(Code)(Java Doc) public Configuration getConfiguration()(Code)(Java Doc) public LocationProvider getDocumentLocator()(Code)(Java Doc) public NamePool getNamePool()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public Receiver getUnderlyingReceiver()(Code)(Java Doc) public void namespace(int namespaceCode, int properties) throws XPathException(Code)(Java Doc) public void open() throws XPathException(Code)(Java Doc) public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException(Code)(Java Doc) public void setPipelineConfiguration(PipelineConfiguration config)(Code)(Java Doc) public void setSystemId(String systemId)(Code)(Java Doc) public void setUnderlyingReceiver(Receiver receiver)(Code)(Java Doc) public void setUnparsedEntity(String name, String uri, String publicId) throws XPathException(Code)(Java Doc) public void startContent() throws XPathException(Code)(Java Doc) public void startDocument(int properties) throws XPathException(Code)(Java Doc) public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code)(Java Doc)
|
|
|