org.simantics.databoard.accessor
Interface VariantAccessor

All Superinterfaces:
Accessor
All Known Subinterfaces:
FileVariantAccessor
All Known Implementing Classes:
BinaryVariant, JavaVariant

public interface VariantAccessor
extends Accessor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor
Accessor.Listener
 
Method Summary
 DataType getContentType()
           
 java.lang.Object getContentValue(Binding contentBinding)
           
<T extends Accessor>
T
getValueAccessor()
          Get the value
 void setContentValue(Binding valueBinding, java.lang.Object value)
          Set the value of this variant.
 VariantType type()
          Get structural represtentation of the accessor presented in databoard's type system format.
 
Methods inherited from interface org.simantics.databoard.accessor.Accessor
addListener, apply, getAccessor, getValue, removeListener, setValue
 

Method Detail

getValueAccessor

<T extends Accessor> T getValueAccessor()
                                    throws AccessorConstructionException
Get the value

Returns:
value
Throws:
AccessorException
AccessorConstructionException

setContentValue

void setContentValue(Binding valueBinding,
                     java.lang.Object value)
                     throws AccessorException
Set the value of this variant. (Note! this methods sets the _content_ value, in contrast to Accessor.setValue(org.simantics.databoard.binding.Binding, Object) which sets the _variant_ value.

Parameters:
valueBinding -
value -
Throws:
AccessorException

getContentValue

java.lang.Object getContentValue(Binding contentBinding)
                                 throws AccessorException
Throws:
AccessorException

getContentType

DataType getContentType()
                        throws AccessorException
Throws:
AccessorException

type

VariantType type()
Description copied from interface: Accessor
Get structural represtentation of the accessor presented in databoard's type system format.

Specified by:
type in interface Accessor
Returns:
type description