| java.lang.Object ti.chimera.registry.OrNodeContract
OrNodeContract | public class OrNodeContract implements NodeContract(Code) | | A node contract that is composed of multiple other contracts using the
or (||) 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. |
OrNodeContract | public OrNodeContract(NodeContract a, NodeContract b)(Code) | | Class Constructor, construct a node contract that is the OR of
a or b
Parameters: a - node contract Parameters: b - node contract |
OrNodeContract | public OrNodeContract(NodeContract[] ncs)(Code) | | Class Constructor, construct a node contract that is the OR 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.
|
|
|