net.sf.saxon.event
public class StartTagBuffer extends ProxyReceiver implements NamespaceResolver
Field Summary | |
---|---|
AttributeCollectionImpl | bufferedAttributes |
int | elementLocationId |
int | elementNameCode |
int | elementProperties |
int | elementTypeCode |
Method Summary | |
---|---|
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
Notify an attribute. |
protected void | declareAllNamespaces() |
protected void | declareNamespacesForStartElement() |
void | endElement()
endElement: Discard the namespaces declared on this element. |
String | getAttribute(int nameCode)
Get the value of the current attribute with a given nameCode |
int | getElementNameCode()
Get the name of the current element |
protected short | getURICode(short prefixCode)
Get the URI code corresponding to a given prefix code, by searching the
in-scope namespaces. |
String | getURIForPrefix(String prefix, boolean useDefault)
Get the namespace URI corresponding to a given prefix. |
boolean | hasAttributes()
Determine if the current element has any attributes |
Iterator | iteratePrefixes()
Get an iterator over all the prefixes declared in this namespace context. |
void | namespace(int namespaceCode, int properties) |
void | setPipelineConfiguration(PipelineConfiguration config) |
void | startContent()
startContent: Add any namespace undeclarations needed to stop
namespaces being inherited from parent elements |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
startElement |
protected void | undeclareNamespacesForElement() |
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: the attribute value, or null if the attribute is not present
Parameters: prefixCode the 16-bit prefix code required
Returns: the 16-bit URI code, or -1 if the prefix is not bound to any namespace
Parameters: prefix the namespace prefix useDefault true if the default namespace is to be used when the prefix is ""
Returns: the uri for the namespace, or null if the prefix is not in scope