org.simantics.databoard.accessor.binary
Class BinaryLong
java.lang.Object
org.simantics.databoard.accessor.binary.BinaryObject
org.simantics.databoard.accessor.binary.BinaryLong
- All Implemented Interfaces:
- Accessor, CloseableAccessor, FileAccessor, FileLongAccessor, LongAccessor, ParametrisedAccessor
public class BinaryLong
- extends BinaryObject
- implements LongAccessor, FileLongAccessor
Methods inherited from class org.simantics.databoard.accessor.binary.BinaryObject |
addListener, apply, close, createAccessor, file, flush, getBinary, getEmitter, getParams, getReadLock, getSource, getWriteLock, removeListener, setValue, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BinaryLong
public BinaryLong(BinaryObject parent,
Blob blob,
LongType type,
AccessorParams params)
throws AccessorConstructionException
- Throws:
AccessorConstructionException
type
public LongType type()
- Description copied from interface:
Accessor
- Get structural represtentation of the accessor presented in databoard's
type system.
- Specified by:
type
in interface Accessor
- Specified by:
type
in interface LongAccessor
- Overrides:
type
in class BinaryObject
- Returns:
- type description
getValue
public long getValue()
throws AccessorException
- Specified by:
getValue
in interface LongAccessor
- Throws:
AccessorException
getAccessor
public <T extends Accessor> T getAccessor(AccessorReference reference)
throws AccessorConstructionException
- Description copied from interface:
Accessor
- Get an accessor to a sub-container. If one already exists, the same is
returned, otherwise a new is created.
InvalidatedEvent is thrown from the accessor if it is unlinked from the
parent hierarchy.
- Specified by:
getAccessor
in interface Accessor
- Parameters:
reference
- component reference or null
to return _this_ accessor
- Returns:
- accessor
- Throws:
AccessorConstructionException
getValue
public java.lang.Object getValue(Binding binding)
throws AccessorException
- Description copied from interface:
Accessor
- Get a snapshot of the object model as a single data value.
- Specified by:
getValue
in interface Accessor
- Overrides:
getValue
in class BinaryObject
- Returns:
- the value
- Throws:
AccessorException
setValueNoflush
public void setValueNoflush(long newValue)
throws AccessorException
- Specified by:
setValueNoflush
in interface FileLongAccessor
- Throws:
AccessorException
setValue
public void setValue(long newValue)
throws AccessorException
- Specified by:
setValue
in interface LongAccessor
- Throws:
AccessorException
setValueNoflush
public void setValueNoflush(Binding binding,
java.lang.Object newValue)
throws AccessorException
- Description copied from class:
BinaryObject
- Write a new value and don't flush the buffer
- Specified by:
setValueNoflush
in interface FileAccessor
- Specified by:
setValueNoflush
in class BinaryObject
- Throws:
AccessorException