net.sf.saxon.evpull
public class StartElementEvent extends Object implements PullEvent
| Field Summary | |
|---|---|
| PipelineConfiguration | pipe |
| Constructor Summary | |
|---|---|
| StartElementEvent(PipelineConfiguration pipe)
Create a Start Element Event | |
| Method Summary | |
|---|---|
| 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 |
| 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 |
Parameters: pipe the pipeline configuration
Parameters: att the attribute to be added
Throws: XPathException in the event of a dynamic error, for example a duplicate attribute in XQuery
Parameters: nscode a namespace code
Throws: XPathException
Parameters: index the index of the attributes, starting from zero
Returns: a NodeInfo representing the attribute, or null if there is no such attribute
Returns: the number of attributes that the element has
Returns: an array of namespace codes
Returns: a location identifier, to be interpreted by the locationProvider associated with the PipelineConfiguration, or -1 if none is available
Returns: the nameCode representing the element's name
Returns: the PipelineConfiguration
Returns: the name pool fingerprint of the element's type annotation
Returns: true if the element has one or more attributes
Returns: an iterator which delivers NodeInfo objects representing the attributes of this element
Parameters: nscodes integer array of namespace codes
Parameters: locationId a location identifier, to be interpreted by the locationProvider associated with the PipelineConfiguration
Parameters: nameCode the namecode of the element (its name as identified in the NamePool)
Parameters: typeCode the name pool fingerprint of the element's type annotation