|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.utexas.its.eis.tools.qwicap.template.xml.DescendantEnumerator
public final class DescendantEnumerator
DescendantEnumerator
provides a convenient means of enumerating some, or all, of a body of XML markup
while maintaining an awareness of each tag's context in the tag hierarchy. The elements it enumerates are
determined by the MarkupEnumeration
object passed to its constructor.
Constructor Summary | |
---|---|
DescendantEnumerator(MarkupEnumeration Elems)
|
|
DescendantEnumerator(MarkupEnumeration Elems,
boolean ReturnEndTags)
|
Method Summary | |
---|---|
DescendantEnumerator |
clone()
Clones this enumeration. |
int |
getChildNo()
|
int |
getIndex()
Returns the index of the most recently returned markup element within the Markup object's internal
list of elements. |
Markup |
getMarkup()
Returns the Markup object that is being enumerated. |
Match |
getMatch()
Returns a Match object uniquely identifying the occurrence of the most recently returned markup
element within the the Markup object that is being enumerated. |
int |
getParentCount()
|
boolean |
hasMoreElements()
|
boolean |
hasNext()
|
Range |
next()
|
Range |
nextElement()
|
Range |
nextRange()
Returns the next Range (the parent interface of all markup elements) in the Markup that is
being enumerated. |
void |
print()
|
void |
print(boolean PrintChildNos)
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescendantEnumerator(MarkupEnumeration Elems)
public DescendantEnumerator(MarkupEnumeration Elems, boolean ReturnEndTags)
Method Detail |
---|
public Markup getMarkup()
MarkupEnumeration
Markup
object that is being enumerated.
getMarkup
in interface MarkupEnumeration
Markup
object that is being enumerated.public int getParentCount()
public int getChildNo()
public int getIndex()
MarkupEnumeration
Markup
object's internal
list of elements.
getIndex
in interface MarkupEnumeration
Markup
object's internal index number for the element most
recently returned by nextElement
or nextRange
.public Match getMatch()
MarkupEnumeration
Match
object uniquely identifying the occurrence of the most recently returned markup
element within the the Markup
object that is being enumerated.
getMatch
in interface MarkupEnumeration
Match
object identifying the element most recently returned by
nextElement
or nextRange
.public boolean hasNext()
hasNext
in interface Iterator<Range>
public Range next()
next
in interface Iterator<Range>
public void remove()
remove
in interface Iterator<Range>
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<Range>
public Range nextElement()
nextElement
in interface Enumeration<Range>
public Range nextRange()
MarkupEnumeration
Range
(the parent interface of all markup elements) in the Markup
that is
being enumerated. This is equivalent to the nextElement
method, except for its return type.
nextRange
in interface MarkupEnumeration
Range
(the parent class of all markup elements) in the
Markup
that is being enumerated.public DescendantEnumerator clone()
MarkupEnumeration
Markup
, without interfering with the ability of the code that created the enumeration to continue its
processing of the Markup
.
clone
in interface MarkupEnumeration
clone
in class Object
public void print()
public void print(boolean PrintChildNos)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |