| java.lang.Object ti.chimera.registry.TypeNodeContract
All known Subclasses: ti.chimera.pref.ColorNodeContract, ti.chimera.pref.FontNodeContract,
TypeNodeContract | public class TypeNodeContract implements NodeContract(Code) | | A
NodeContract which enforces that a value is an instanceof
a specified class.
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 Class | getType() Get the type. | 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. |
TypeNodeContract | public TypeNodeContract(Class type)(Code) | | Class Constructor.
Parameters: type - the type |
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.
|
|
|