public class AccessorArrayWrapper extends java.lang.Object implements Accessor
BaseDataType
. It is similar to AccessorWrapper
, but for extent
variables. This provides a means of delegating the access to an object,
such that it can be invoked at an appropriate time by code that does not have
direct access or knowledge of the original BaseDataType
instance.Modifier and Type | Field and Description |
---|---|
private BaseDataType[] |
wrappee
The wrappered data.
|
Constructor and Description |
---|
AccessorArrayWrapper(BaseDataType[] wrappee)
Construct an instance that references the given wrappee.
|
Modifier and Type | Method and Description |
---|---|
BaseDataType |
get()
Get a copy of the referenced object's current runtime value (this does
not return the original instance itself).
|
void |
set(BaseDataType val)
Set the referenced object's current runtime value to the given value.
|
private BaseDataType[] wrappee
public AccessorArrayWrapper(BaseDataType[] wrappee)
wrappee
- The object to wrapper. Must NOT be null
.public BaseDataType get()
In case of handles, an integer
value is returned, which holds
the handle's numeric representation.
public void set(BaseDataType val)
In case of handles, the val
must be its numeric
representation, which is used to create the handle back using the
handle.fromString(String)
call.