|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectti.chimera.registry.AndNodeContract
public class AndNodeContract
A node contract that is composed of multiple other contracts using the and (&&) operator.
| Field Summary |
|---|
| Fields inherited from interface ti.chimera.registry.NodeContract |
|---|
BOOLEAN_CONTRACT, NULL_CONTRACT, NUMBER_CONTRACT, STRING_CONTRACT |
| Constructor Summary | |
|---|---|
AndNodeContract(NodeContract[] ncs)
Class Constructor, construct a node contract that is the AND of all the elements in the ncs array. |
|
AndNodeContract(NodeContract a,
NodeContract b)
Class Constructor, construct a node contract that is the AND of a and b |
|
| Method Summary | |
|---|---|
boolean |
accepts(java.lang.Object value)
Determine if the specified value meets this contract. |
java.lang.String |
toString()
The contract implementation should overload toString so
the contract can be displayed to the user in a sane format, for use
in error messages, etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AndNodeContract(NodeContract a,
NodeContract b)
a and b
a - node contractb - node contractpublic AndNodeContract(NodeContract[] ncs)
ncs array.
ncs - node contracts| Method Detail |
|---|
public boolean accepts(java.lang.Object value)
value meets this contract.
accepts in interface NodeContractvalue - the value to check
true if meets contractpublic java.lang.String toString()
toString so
the contract can be displayed to the user in a sane format, for use
in error messages, etc.
toString in interface NodeContracttoString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||