public enum PastEndAction extends java.lang.Enum<PastEndAction>
A PastEndAction
enumerated value specifies a possible action
when dealing with expressions that reference collection items beyond the end
of the iteration. This comes up when a MultiForEachTag
is
operating on collections of different sizes, and one collection has run out
of values before another collection.
If such an expression were written in Java code, it would result in an
IndexOutOfBoundsException
. Each enumerated value specifies a
way of handling this condition.
Enum Constant | Description |
---|---|
CLEAR_CELL |
Specifies that any
Cell containing an expression that
references a collection item beyond the end of the iteration should
result in the entire Cell being blanked out. |
REMOVE_CELL |
Specifies that any
Cell containing an expression that
references a collection item beyond the end of the iteration should
result in the entire Cell being removed, formatting and all. |
REPLACE_EXPR |
Specifies that any
Cell containing an expression that
references a collection item beyond the end of the collection should
result only in those expressions containing a reference to the collection
item being replaced, e.g. |
Modifier and Type | Method | Description |
---|---|---|
static PastEndAction |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PastEndAction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PastEndAction CLEAR_CELL
Cell
containing an expression that
references a collection item beyond the end of the iteration should
result in the entire Cell
being blanked out.public static final PastEndAction REMOVE_CELL
Cell
containing an expression that
references a collection item beyond the end of the iteration should
result in the entire Cell
being removed, formatting and all.public static final PastEndAction REPLACE_EXPR
Cell
containing an expression that
references a collection item beyond the end of the collection should
result only in those expressions containing a reference to the collection
item being replaced, e.g.
${notBeyondCollection} and ${beyondCollection}
becomes
NotBeyondValue and
, or NotBeyondValue and -
,
depending on whether a specific replacement value is given.public static PastEndAction[] values()
for (PastEndAction c : PastEndAction.values()) System.out.println(c);
public static PastEndAction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2012–2018 Jett Team. All rights reserved.