|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArrayAccessor
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Method Summary | ||
---|---|---|
void |
add(Binding binding,
java.lang.Object value)
Add a new value. |
|
void |
add(int index,
Binding binding,
java.lang.Object value)
Insert a new value. |
|
void |
addAll(Binding binding,
java.lang.Object[] values)
Add an array of elements. |
|
void |
addAll(int index,
Binding binding,
java.lang.Object[] values)
Add an array of elements. |
|
java.lang.Object |
get(int index,
Binding valueBinding)
Get a value |
|
|
getAccessor(int index)
Get an accessor to an element. |
|
void |
getAll(Binding valueBinding,
java.util.Collection<java.lang.Object> values)
Get all elements |
|
void |
getAll(Binding valueBinding,
java.lang.Object[] array)
Get all elements and place them to an array . |
|
void |
remove(int index,
int count)
Remove an element at an index. |
|
void |
set(int index,
Binding binding,
java.lang.Object value)
Replace a value container with a new value. |
|
void |
setValue(Binding binding,
java.lang.Object newValue)
Set all elements from an Array Value. |
|
int |
size()
Return the number of elements in the array. |
|
ArrayType |
type()
Get structural represtentation of the accessor presented in databoard's type system. |
Methods inherited from interface org.simantics.databoard.accessor.Accessor |
---|
addListener, apply, getAccessor, getValue, removeListener |
Method Detail |
---|
void add(Binding binding, java.lang.Object value) throws AccessorException
binding
- value
- value
AccessorException
void addAll(Binding binding, java.lang.Object[] values) throws AccessorException
binding
- values
- value
AccessorException
void addAll(int index, Binding binding, java.lang.Object[] values) throws AccessorException
index
- position to insert new value tobinding
- values
-
AccessorException
void add(int index, Binding binding, java.lang.Object value) throws AccessorException
index
- position to insert new value tobinding
- value
- value
AccessorException
void setValue(Binding binding, java.lang.Object newValue) throws AccessorException
setValue
in interface Accessor
binding
- newValue
-
BindingException
- binding error
java.lang.UnsupportedOperationException
- cannot set a new value
AccessorException
void set(int index, Binding binding, java.lang.Object value) throws AccessorException
index
- binding
- value
-
AccessorException
void remove(int index, int count) throws AccessorException
index
, the
interest sets and accessor paths are updated and decreased.
If there was an accessor, it becomes invalid.
index
- count
-
AccessorException
<T extends Accessor> T getAccessor(int index) throws AccessorConstructionException
The accessor is not to the index, it is to the element. For instance, you get accessor X of [2] then a new value is inserted before 2. The accessor now points to the element at [3].
index
-
AccessorConstructionException
java.lang.Object get(int index, Binding valueBinding) throws AccessorException
index
- valueBinding
-
AccessorException
void getAll(Binding valueBinding, java.lang.Object[] array) throws AccessorException
array
.
Exception is thrown if Array length is too short.
valueBinding
- array
-
AccessorException
void getAll(Binding valueBinding, java.util.Collection<java.lang.Object> values) throws AccessorException
valueBinding
- values
-
AccessorException
int size() throws AccessorException
AccessorException
ArrayType type()
Accessor
type
in interface Accessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |