public class MarkupIterator extends Object implements Iterator<MarkupElement>
Constructor and Description |
---|
MarkupIterator(IMarkupFragment markup)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
MarkupElement |
next() |
ComponentTag |
nextTag() |
WicketTag |
nextWicketTag() |
void |
remove() |
void |
setComponentTagOnly(boolean componentTagOnly)
Ignore raw markup and iterate over component and wicket tags only.
|
void |
setOpenTagOnly(boolean openTagOnly)
Ignore close tag.
|
void |
setWicketTagOnly(boolean wicketTagOnly)
Ignore raw markup and component tags, and iterate over WicketTags only
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public MarkupIterator(IMarkupFragment markup)
markup
- public boolean hasNext()
hasNext
in interface Iterator<MarkupElement>
Iterator.hasNext()
public MarkupElement next()
next
in interface Iterator<MarkupElement>
Iterator.next()
public ComponentTag nextTag()
public WicketTag nextWicketTag()
public void remove()
remove
in interface Iterator<MarkupElement>
Iterator.remove()
public final void setComponentTagOnly(boolean componentTagOnly)
componentTagOnly
- public final void setWicketTagOnly(boolean wicketTagOnly)
wicketTagOnly
- public final void setOpenTagOnly(boolean openTagOnly)
openTagOnly
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.