net.groboclown.xml.xdstates.v1.modules
Class PropertyTestUtil
java.lang.Object
|
+--net.groboclown.xml.xdstates.v1.modules.PropertyTestUtil
- public class PropertyTestUtil
- extends Object
This module returns the first element only if the given expression is true,
and if not true then it returns the remaining elements (which may be empty).
The attribute's format is "name:value", where
the separator character is a colon (':'). If the value starts with the
character '!', then the set is executed only if the property does not equal
the given value. To specify that the property must not be set, use
"prop:"
, and to specify that the property must be set to
something, use "prop:!"
.
- Version:
- Alpha 0.9.0 - JDK 1.0+
- Author:
- Matt Albrecht
Method Summary |
static boolean |
isTestTrue(String value,
IDataList list)
Perform the specific permutation of the given data list. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
PropertyTestUtil
private PropertyTestUtil()
isTestTrue
public static boolean isTestTrue(String value,
IDataList list)
- Perform the specific permutation of the given data list. The
implementation must store the state of the next
#hasAnotherState()
at the end of this method.
- Returns:
- the new list after the attribute performs its modifications.
Written under the LGPL