|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnionAccessor
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Method Summary | ||
---|---|---|
int |
count()
Get the number of tag types |
|
|
getComponentAccessor()
Get an accessor to the component value. |
|
java.lang.Object |
getComponentValue(Binding componentBinding)
Get the value |
|
int |
getTag()
Get the union tag index |
|
void |
setComponentValue(int tag,
Binding componentBinding,
java.lang.Object componentValue)
Set a new component value. |
|
void |
setValue(Binding unionBinding,
java.lang.Object newUnion)
Set a new Union value. |
|
UnionType |
type()
Get structural represtentation of the accessor presented in databoard's type system. |
Methods inherited from interface org.simantics.databoard.accessor.Accessor |
---|
addListener, apply, getComponent, getValue, getValue, removeListener |
Method Detail |
---|
int count() throws AccessorException
AccessorException
int getTag() throws AccessorException
AccessorException
<T extends Accessor> T getComponentAccessor() throws AccessorConstructionException
AccessorConstructionException
java.lang.Object getComponentValue(Binding componentBinding) throws AccessorException
componentBinding
- component binding
AccessorException
void setValue(Binding unionBinding, java.lang.Object newUnion) throws AccessorException
setValue
in interface Accessor
unionBinding
- newUnion
-
BindingException
- binding error
java.lang.UnsupportedOperationException
- cannot set a new value
AccessorException
void setComponentValue(int tag, Binding componentBinding, java.lang.Object componentValue) throws AccessorException
tag
- componentBinding
- componentValue
-
AccessorException
UnionType type()
Accessor
type
in interface Accessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |