org.simantics.databoard.binding.factory
Class SingleBindingScheme

java.lang.Object
  extended by org.simantics.databoard.binding.factory.SingleBindingScheme
All Implemented Interfaces:
BindingScheme

public class SingleBindingScheme
extends java.lang.Object
implements BindingScheme


Constructor Summary
SingleBindingScheme(Binding b)
           
 
Method Summary
 Binding getBinding(Datatype type)
          Get binding of a data type
 Binding getBindingUnchecked(Datatype type)
          Get binding of a data type
 boolean supportsType(Datatype type)
          Tests if the scheme supports a type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleBindingScheme

public SingleBindingScheme(Binding b)
Method Detail

getBinding

public Binding getBinding(Datatype type)
                   throws BindingConstructionException
Description copied from interface: BindingScheme
Get binding of a data type

Specified by:
getBinding in interface BindingScheme
Parameters:
type - data type
Returns:
binding
Throws:
BindingConstructionException - if data type is not supported

getBindingUnchecked

public Binding getBindingUnchecked(Datatype type)
                            throws RuntimeBindingConstructionException
Description copied from interface: BindingScheme
Get binding of a data type

Specified by:
getBindingUnchecked in interface BindingScheme
Parameters:
type - data type
Returns:
binding
Throws:
RuntimeBindingConstructionException - if data type is not supported

supportsType

public boolean supportsType(Datatype type)
Description copied from interface: BindingScheme
Tests if the scheme supports a type

Specified by:
supportsType in interface BindingScheme
Returns:
true if the type is supported by the scheme