|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.binding.factory.TypeBindingFactory
public abstract class TypeBindingFactory
Type Factory constructs data types from reflection requests. Successfully constructed types are placed in the repository that was given at construction time.
Constructor Summary | |
---|---|
TypeBindingFactory()
Create a scheme factory. |
|
TypeBindingFactory(java.util.Map<Datatype,Binding> repository)
Create scheme factory that appends constructed bindings to the user given repository |
Method Summary | |
---|---|
Binding |
construct(Datatype request)
|
Binding |
getBinding(Datatype type)
Get binding of a data type |
Binding |
getBindingUnchecked(Datatype type)
Get binding of a data type |
java.util.Map<Datatype,Binding> |
getRepository()
Get Repository |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.simantics.databoard.binding.factory.BindingScheme |
---|
supportsType |
Constructor Detail |
---|
public TypeBindingFactory()
public TypeBindingFactory(java.util.Map<Datatype,Binding> repository)
repository
- repository where bindings are placedMethod Detail |
---|
public java.util.Map<Datatype,Binding> getRepository()
public Binding construct(Datatype request) throws BindingConstructionException
BindingConstructionException
public Binding getBinding(Datatype type) throws BindingConstructionException
BindingScheme
getBinding
in interface BindingScheme
type
- data type
BindingConstructionException
- if data type is not supportedpublic Binding getBindingUnchecked(Datatype type) throws RuntimeBindingConstructionException
BindingScheme
getBindingUnchecked
in interface BindingScheme
type
- data type
RuntimeBindingConstructionException
- if data type is not supported
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |