|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.evpull.StartElementEvent
public class StartElementEvent
This is a PullEvent representing the start of an element node. It contains (or potentially contains) all the namespace declarations and attributes associated with the element.
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartElementEvent(PipelineConfiguration pipe)
pipe
- the pipeline configurationMethod Detail |
---|
public 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 code
XPathException
public int[] getLocalNamespaces()
public void addAttribute(NodeInfo att) throws XPathException
att
- the attribute to be added
XPathException
- 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 zero
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |