org.simantics.databoard.binding.factory
Class MutableBindingFactory
java.lang.Object
org.simantics.databoard.binding.factory.BindingFactory
org.simantics.databoard.binding.factory.MutableBindingFactory
- All Implemented Interfaces:
- BindingScheme
public class MutableBindingFactory
- extends BindingFactory
MutableBindingScheme is a type to binding mapping that binds any DataType to an Object.
All resulting bindings are completely mutable java classes.
DataType | Class of the bound instance
===================|==================
BooleanType | MutableBoolean.class
ByteType | MutableByte.class
FloatType | MutableFloat.class
DoubleType | MutableDouble.class
IntegerType | MutableInt.class
LongType | MutableLong.class
StringType | MutableString.class
UnionType | TaggedObject.class
OptionType | ValueContainer.class
RecordType | Object[].class
ArrayType | ArrayList.class
MapType | TreeMap.class
VariantType | MutableVariant.class
- Author:
- Toni Kalajainen
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableBindingFactory
public MutableBindingFactory()
- Construct a binding factory.
MutableBindingFactory
public MutableBindingFactory(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