| Constructor | Description |
|---|---|
StartElementEvent(PipelineConfiguration pipe) |
Create a Start Element Event
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAttribute(NodeInfo att) |
Add an attribute to the element node
|
void |
addNamespace(int nscode) |
Add a namespace code representing a locally declared namespace
|
NodeInfo |
getAttribute(int index) |
Get the n'th attribute if there is one
|
int |
getAttributeCount() |
Ask how may attributes the element has
|
int[] |
getLocalNamespaces() |
Get the namespaces locally declared on this element
|
int |
getLocationId() |
Get the location associated with the event
|
int |
getNameCode() |
Get the nameCode of this element
|
PipelineConfiguration |
getPipelineConfiguration() |
Get the PipelineConfiguration
|
int |
getTypeCode() |
Get the typeCode of this element
|
boolean |
hasAttributes() |
Ask whether the element has any attributes
|
java.util.Iterator |
iterateAttributes() |
Get an iterator over the attributes of this element
|
void |
namespaceFixup() |
Perform namespace fixup.
|
void |
setLocalNamespaces(int[] nscodes) |
Set the namespaces that are locally declared (or undeclared) on this element
|
void |
setLocationId(int locationId) |
Set the location associated with the event
|
void |
setNameCode(int nameCode) |
Set the nameCode of this element
|
void |
setTypeCode(int typeCode) |
Set the typeCode of this element
|
void |
stripTypeAnnotations() |
Strip type annotations from the element and its attributes
|
public StartElementEvent(PipelineConfiguration pipe)
pipe - the pipeline configurationpublic void setNameCode(int nameCode)
nameCode - the namecode of the element (its name as identified in the NamePool)public int getNameCode()
public void setTypeCode(int typeCode)
typeCode - the name pool fingerprint of the element's type annotationpublic int getTypeCode()
public void setLocalNamespaces(int[] nscodes)
nscodes - integer array of namespace codespublic void addNamespace(int nscode)
throws XPathException
nscode - a namespace codeXPathExceptionpublic int[] getLocalNamespaces()
public void addAttribute(NodeInfo att) throws XPathException
att - the attribute to be addedXPathException - in the event of a dynamic error, for example a duplicate attribute in XQuerypublic boolean hasAttributes()
public int getAttributeCount()
public java.util.Iterator iterateAttributes()
public NodeInfo getAttribute(int index)
index - the index of the attributes, starting from zeropublic void namespaceFixup()
public void stripTypeAnnotations()
public PipelineConfiguration getPipelineConfiguration()
public void setLocationId(int locationId)
locationId - a location identifier, to be interpreted by the locationProvider
associated with the PipelineConfigurationpublic int getLocationId()