org.simantics.databoard.binding.impl
Class UnsignedIntegerBinding

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.NumberBinding
          extended by org.simantics.databoard.binding.IntegerBinding
              extended by org.simantics.databoard.binding.impl.UnsignedIntegerBinding
All Implemented Interfaces:
java.util.Comparator<java.lang.Object>
Direct Known Subclasses:
UnsignedIntegerBinding.Immutable, UnsignedIntegerBinding.Mutable

public abstract class UnsignedIntegerBinding
extends IntegerBinding

Binding of UnsignedInteger to integer type. This is bitwise binding, i.e. negative values bound to 0x100000000 + value.

Author:
Toni Kalajainen

Nested Class Summary
static class UnsignedIntegerBinding.Immutable
           
static class UnsignedIntegerBinding.Mutable
           
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Method Summary
 int getValue_(java.lang.Object obj)
           
 java.lang.Integer getValue(java.lang.Object obj)
          Get numeric value of an object
 java.lang.String toString(java.lang.Object value)
           
 
Methods inherited from class org.simantics.databoard.binding.IntegerBinding
accept, accept, create, create, create, create, createUnchecked, createUnchecked, deepCompare, deepHashValue, isInstance, setValue, setValue, type
 
Methods inherited from class org.simantics.databoard.binding.NumberBinding
assertInstaceIsValid, createUnchecked, createUnchecked, getComponentBinding, getComponentBinding, getComponentCount, readFrom
 
Methods inherited from class org.simantics.databoard.binding.Binding
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandomUnchecked, equals, hashValue, isImmutable, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, serializer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

getValue

public java.lang.Integer getValue(java.lang.Object obj)
                           throws BindingException
Description copied from class: NumberBinding
Get numeric value of an object

Specified by:
getValue in class IntegerBinding
Parameters:
obj - object
Returns:
Number
Throws:
BindingException - thrown if obj is incorrect class

getValue_

public int getValue_(java.lang.Object obj)
              throws BindingException
Specified by:
getValue_ in class IntegerBinding
Throws:
BindingException

toString

public java.lang.String toString(java.lang.Object value)
                          throws BindingException
Overrides:
toString in class Binding
Throws:
BindingException