org.simantics.databoard.bindingscheme
Class UnboundScheme

java.lang.Object
  extended by org.simantics.databoard.bindingscheme.UnboundScheme
All Implemented Interfaces:
BindingScheme

public class UnboundScheme
extends java.lang.Object
implements BindingScheme

NoBinding is a fake binding that is used with Serializer to validate the format of the data with out instantiating Objects.

Author:
Toni Kalajainen

Nested Class Summary
static class UnboundScheme.UnboundOptionalBinding
          No value can be assigned to unbound optional binding.
 
Constructor Summary
UnboundScheme()
           
 
Method Summary
 Binding getBinding(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

UnboundScheme

public UnboundScheme()
Method Detail

getBinding

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

Specified by:
getBinding in interface BindingScheme
Parameters:
type - data type
Returns:
binding

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 with in the scheme