org.simantics.databoard.binding.impl
Class UnsignedByteBinding

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

public abstract class UnsignedByteBinding
extends ByteBinding

Binding of UnsignedByte to byte type.

Author:
Toni Kalajainen

Nested Class Summary
static class UnsignedByteBinding.Immutable
           
static class UnsignedByteBinding.Mutable
           
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Method Summary
 byte getValue_(java.lang.Object obj)
           
 java.lang.Byte 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.ByteBinding
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, 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.Byte getValue(java.lang.Object obj)
                        throws BindingException
Description copied from class: NumberBinding
Get numeric value of an object

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

getValue_

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

toString

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