org.simantics.databoard.accessor
Interface VariantAccessor
- All Superinterfaces:
- Accessor
- All Known Subinterfaces:
- FileVariantAccessor
- All Known Implementing Classes:
- BinaryVariant, JavaVariant
public interface VariantAccessor
- extends Accessor
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