org.simantics.databoard.binding.mutable
Class MutableBooleanBinding

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.BooleanBinding
          extended by org.simantics.databoard.binding.mutable.MutableBooleanBinding
All Implemented Interfaces:
java.util.Comparator<java.lang.Object>

public class MutableBooleanBinding
extends BooleanBinding

Binds BooleanType to MutableBoolean

Author:
Toni Kalajainen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Constructor Summary
MutableBooleanBinding(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 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, getComponentBinding, getComponentBinding, getComponentCount, readFrom, type
 
Methods inherited from class org.simantics.databoard.binding.Binding
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandom, createRandom, createRandomUnchecked, equals, hashValue, isImmutable, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, readFromTry, readFromTryUnchecked, readFromUnchecked, serializer, toString, 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

MutableBooleanBinding

public MutableBooleanBinding(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,
                     boolean newValue)
              throws BindingException
Specified by:
setValue in class BooleanBinding
Throws:
BindingException

setValue

public void setValue(java.lang.Object obj,
                     java.lang.Boolean newValue)
              throws BindingException
Specified by:
setValue in class BooleanBinding
Throws:
BindingException

getValue

public java.lang.Boolean getValue(java.lang.Object o)
Specified by:
getValue in class BooleanBinding

getValue_

public boolean getValue_(java.lang.Object o)
Specified by:
getValue_ in class BooleanBinding

isInstance

public boolean isInstance(java.lang.Object obj)
Specified by:
isInstance in class Binding