Constructor and Description |
---|
StartElementEvent(PipelineConfiguration pipe)
Create a Start Element Event
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(NodeInfo att)
Add an attribute to the element node
|
void |
addNamespace(NamespaceBinding 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
|
NodeName |
getElementName()
Get the nameCode of this element
|
NamespaceBinding[] |
getLocalNamespaces()
Get the namespaces locally declared on this element
|
int |
getLocationId()
Get the location associated with the event
|
PipelineConfiguration |
getPipelineConfiguration()
Get the PipelineConfiguration
|
SchemaType |
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 |
setElementName(NodeName elementName)
Set the nameCode of this element
|
void |
setLocalNamespaces(NamespaceBinding[] 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 |
setTypeCode(SchemaType 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 setElementName(NodeName elementName)
elementName
- the namecode of the element (its name as identified in the NamePool)public NodeName getElementName()
public void setTypeCode(SchemaType typeCode)
typeCode
- the element's type annotationpublic SchemaType getTypeCode()
public void setLocalNamespaces(NamespaceBinding[] nscodes)
nscodes
- integer array of namespace codespublic void addNamespace(NamespaceBinding nscode) throws XPathException
nscode
- a namespace codeXPathException
public NamespaceBinding[] 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 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()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.