org.simantics.databoard.binding.factory
Class DefaultBindingFactory
java.lang.Object
org.simantics.databoard.binding.factory.BindingFactory
org.simantics.databoard.binding.factory.DefaultBindingFactory
- All Implemented Interfaces:
- BindingScheme
public class DefaultBindingFactory
- extends BindingFactory
DefaultBindingScheme is a type to binding mapping that binds any DataType to an Object.
All resulting bindings typicaly immutable java classes.
DataType | Class of the bound instance
===================|==================
BooleanType | Boolean.class
ByteType | Byte.class
FloatType | Float.class
DoubleType | Double.class
IntegerType | Int.class
LongType | Long.class
StringType | String.class
UnionType | TaggedObject.class
OptionType | ValueContainer.class
RecordType | Object[].class
MapType | TreeMap.class
VariantType | Variant.class
ArrayType(Boolean) | boolean[].class
ArrayType(Byte) | byte[].class
ArrayType(Integer) | int[].class
ArrayType(Long) | long[].class
ArrayType(Float) | float[].class
ArrayType(Double) | double[].class
ArrayType(Byte) | byte[].class
ArrayType( T ) | Object[].class
- Author:
- Toni Kalajainen
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBindingFactory
public DefaultBindingFactory()
- Construct a binding factory.
DefaultBindingFactory
public DefaultBindingFactory(java.util.Map<Datatype,Binding> repository)
- Construct a scheme factory that appends constructed bindings to the user given
repository
- Parameters:
repository
- repository where bindings are placed
supportsType
public boolean supportsType(Datatype type)
- Description copied from interface:
BindingScheme
- Tests if the scheme supports a type
- Returns:
- true if the type is supported by the scheme