|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.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 nodes and attribute nodes associated with the element.
| Constructor Summary | |
|---|---|
StartElementEvent(Configuration config)
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 |
int[] |
getLocalNamespaces()
Get the namespaces locally declared on this element |
int |
getNameCode()
Get the nameCode of this element |
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 |
setNameCode(int nameCode)
Set the nameCode of this element |
void |
setTypeCode(int typeCode)
Set the typeCode of this element |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartElementEvent(Configuration config)
config - the configuration| Method 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 codes
public void addNamespace(int nscode)
throws XPathException
nscode - a namespace code
XPathExceptionpublic 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 Iterator iterateAttributes()
public void namespaceFixup()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||