Package | Description |
---|---|
org.apache.velocity.tools.generic |
Contains a collection of reusable, general-purpose "tools" for Velocity.
|
Modifier and Type | Method and Description |
---|---|
LoopTool.ManagedIterator |
LoopTool.ManagedIterator.condition(LoopTool.ActionCondition condition)
Adds a new
LoopTool.ActionCondition for this instance to check
against the elements in the iterator being managed. |
LoopTool.ManagedIterator |
LoopTool.ManagedIterator.exclude(Object compare)
Directs this instance to completely exclude
any elements equal to the specified Object.
|
protected LoopTool.ManagedIterator |
LoopTool.findIterator(String name)
Finds the
LoopTool.ManagedIterator with the specified name
if it is in this instance's iterator stack. |
LoopTool.ManagedIterator |
LoopTool.getThis()
Returns the most recent
LoopTool.ManagedIterator for this instance. |
protected LoopTool.ManagedIterator |
LoopTool.manage(Iterator iterator,
String name) |
protected LoopTool.ManagedIterator |
LoopTool.pop()
Don't let templates call this, but allow subclasses
and ManagedIterator to have access.
|
LoopTool.ManagedIterator |
LoopTool.ManagedIterator.stop(Object compare)
Directs this instance to stop iterating immediately prior to
any element equal to the specified Object.
|
LoopTool.ManagedIterator |
LoopTool.ManagedIterator.sync(Object iterable)
Adds another iterator to be kept in sync with the one
being managed by this instance.
|
LoopTool.ManagedIterator |
LoopTool.sync(Object main,
Object synced) |
LoopTool.ManagedIterator |
LoopTool.ManagedIterator.sync(Object iterable,
String name)
Adds another iterator to be kept in sync with the one
being managed by this instance.
|
LoopTool.ManagedIterator |
LoopTool.watch(Object obj)
Tells the LoopTool to watch the specified Array, Collection, Map,
Iterator, Iterable, Enumeration or POJO with an iterator() method
while the template iterates over the values within it.
|
LoopTool.ManagedIterator |
LoopTool.watch(Object obj,
String name)
This is just like
LoopTool.watch(Object) except that it also takes
a name which is given to the LoopTool.ManagedIterator that is returned. |
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.