|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
Element, as presented to the application by the parser. Adds operators
for getting XML attributes and other properties to the
superinterface
.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Define Element equality as identity of instances. |
Attribute |
getAttribute(QName qName)
Get a single attribute. |
Attribute[] |
getAttributes()
Get element attributes |
int |
getChildCount()
Get the number of Element s entered as children of this
Element . |
Element |
getParent()
Get parent element. |
QName |
getQName()
Get QName . |
int |
getRepeatCount()
Get the number of previous occurrences of this Element at
the same level, when this Element is one of a repeating
sequence with the same name. |
int |
getSiblingCount()
Get the number of previous siblings at the same level as this Element . |
boolean |
hasAncestor(QName name)
Indicate whether the element has a named element as ancestor. |
int |
hashCode()
Returns Object.hashCode . |
boolean |
hasParent(QName name)
Indicate whether the element has a named element as parent. |
Method Detail |
---|
QName getQName()
Get QName
.
This identifies the Attribute
by namespace and local name.
Element getParent()
Get parent element.
Attribute[] getAttributes()
Get element attributes
Attribute getAttribute(QName qName)
Get a single attribute.
boolean hasParent(QName name)
Indicate whether the element has a named element as parent.
boolean hasAncestor(QName name)
Indicate whether the element has a named element as ancestor.
int getChildCount()
Get the number of Element
s entered as children of this
Element
.
Includes the most recent child when invoked while in a descendent of the
Element
.
Element
, the number of
children at the end of an Element
, or an
intermediate value when invoked while in a descendant of the
Element
.int getSiblingCount()
Get the number of previous siblings at the same level as this
Element
.
The current Element
is not included in the count.
int getRepeatCount()
Get the number of previous occurrences of this Element
at
the same level, when this Element
is one of a repeating
sequence with the same name.
The current Element
is not included in the count.
The count begins again after each change of name, unless the implementation documentation specifies otherwise.
boolean equals(Object obj)
Define Element
equality as identity of instances.
equals
in class Object
int hashCode()
Returns Object.hashCode
.
hashCode
in class Object
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |