|
|||||||||
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(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 |
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 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 code
XPathException
public NamespaceBinding[] 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 |