| java.lang.Object ti.chimera.registry.AndNodeContract
AndNodeContract | public class AndNodeContract implements NodeContract(Code) | | A node contract that is composed of multiple other contracts using the
and (&&) operator.
author: ;Rob Clark;a0873619;San Diego;; version: 0.1 |
Method Summary | |
public boolean | accepts(Object value) Determine if the specified value meets this contract. | public 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. |
AndNodeContract | public AndNodeContract(NodeContract a, NodeContract b)(Code) | | Class Constructor, construct a node contract that is the AND of
a and b
Parameters: a - node contract Parameters: b - node contract |
AndNodeContract | public AndNodeContract(NodeContract[] ncs)(Code) | | Class Constructor, construct a node contract that is the AND of
all the elements in the ncs array.
Parameters: ncs - node contracts |
accepts | public boolean accepts(Object value)(Code) | | Determine if the specified value meets this contract.
Parameters: value - the value to check true if meets contract |
toString | public String toString()(Code) | | 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.
|
|
|