org.simantics.databoard.binding.java
Class BooleanBindingDefault
java.lang.Object
org.simantics.databoard.binding.Binding
org.simantics.databoard.binding.BooleanBinding
org.simantics.databoard.binding.java.BooleanBindingDefault
- All Implemented Interfaces:
- java.util.Comparator<java.lang.Object>
public class BooleanBindingDefault
- extends BooleanBinding
Binds Boolean Type to java.lang.Boolean-class.
- Author:
- Toni Kalajainen
Method Summary |
java.lang.Object |
create(boolean value)
|
java.lang.Object |
create(java.lang.Boolean value)
|
boolean |
getValue_(java.lang.Object o)
|
java.lang.Boolean |
getValue(java.lang.Object o)
|
boolean |
isImmutable()
Return true if the value is immutable. |
boolean |
isInstance(java.lang.Object obj)
|
void |
setValue(java.lang.Object obj,
boolean newValue)
|
void |
setValue(java.lang.Object obj,
java.lang.Boolean newValue)
|
Methods inherited from class org.simantics.databoard.binding.Binding |
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandomUnchecked, equals, hashValue, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, serializer, serializer, serializerUnchecked |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
INSTANCE
public static BooleanBinding INSTANCE
BooleanBindingDefault
public BooleanBindingDefault(BooleanType type)
create
public java.lang.Object create(boolean value)
- Specified by:
create
in class BooleanBinding
create
public java.lang.Object create(java.lang.Boolean value)
- Specified by:
create
in class BooleanBinding
setValue
public void setValue(java.lang.Object obj,
java.lang.Boolean newValue)
throws BindingException
- Specified by:
setValue
in class BooleanBinding
- Throws:
BindingException
setValue
public void setValue(java.lang.Object obj,
boolean newValue)
throws BindingException
- Specified by:
setValue
in class BooleanBinding
- Throws:
BindingException
getValue
public java.lang.Boolean getValue(java.lang.Object o)
throws BindingException
- Specified by:
getValue
in class BooleanBinding
- Throws:
BindingException
getValue_
public boolean getValue_(java.lang.Object o)
throws BindingException
- Specified by:
getValue_
in class BooleanBinding
- Throws:
BindingException
isInstance
public boolean isInstance(java.lang.Object obj)
- Specified by:
isInstance
in class Binding
isImmutable
public boolean isImmutable()
- Description copied from class:
Binding
- Return true if the value is immutable.
This question excludes the immutability of the component types.
- Overrides:
isImmutable
in class Binding
- Returns:
true
value if immutable