org.simantics.databoard.binding.impl
Class BooleanBindingDefault

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.BooleanBinding
          extended by org.simantics.databoard.binding.impl.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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Constructor Summary
BooleanBindingDefault(BooleanType type)
           
 
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.BooleanBinding
accept, accept, assertInstaceIsValid, createUnchecked, deepCompare, deepHashValue, readFrom, type
 
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, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BooleanBindingDefault

public BooleanBindingDefault(BooleanType type)
Method Detail

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