org.simantics.databoard.accessor.java
Class JavaString
java.lang.Object
org.simantics.databoard.accessor.java.JavaObject
org.simantics.databoard.accessor.java.JavaString
- All Implemented Interfaces:
- Accessor, ParametrisedAccessor, StringAccessor
public class JavaString
- extends JavaObject
- implements StringAccessor
Methods inherited from class org.simantics.databoard.accessor.java.JavaObject |
addListener, apply, createAccessor, createSubAccessor, getEmitter, getObject, getParams, getReadLock, getValue, getValue, getWriteLock, notifyValueChanged, removeListener, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaString
public JavaString(Accessor parent,
StringBinding binding,
java.lang.Object object,
AccessorParams params)
getBinding
public StringBinding getBinding()
- Overrides:
getBinding
in class JavaObject
type
public StringType 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 StringAccessor
- Overrides:
type
in class JavaObject
- Returns:
- type description
getValue
public java.lang.String getValue()
throws AccessorException
- Specified by:
getValue
in interface StringAccessor
- Throws:
AccessorException
setValue
public void setValue(java.lang.String newValue)
throws AccessorException
- Specified by:
setValue
in interface StringAccessor
- Throws:
AccessorException
setValue
public void setValue(Binding binding,
java.lang.Object newValue)
throws AccessorException
- Description copied from interface:
Accessor
- Set a complete new value to the data container.
If the new value removes old map entries, array entries, optional value, or
changes union or variant value type, it will disengage any existing
sub-accessors and send
InvalidatedEvent
.
Writing the current value again may not emit an event. This is implementation
specific.
Write is durable, once a the method returns successfully the value has been
stored in the implmentation.
- Specified by:
setValue
in interface Accessor
- Throws:
AccessorException
getComponent
public <T extends Accessor> T getComponent(ChildReference reference)
throws AccessorConstructionException
- Description copied from interface:
Accessor
- Open an accessor to a child. If one already exists, the existing is returned,
otherwise a new is created. Child accessors are often remembered with
weak reference.
InvalidatedEvent is thrown from the accessor if it is unlinked from the
parent hierarchy.
- Specified by:
getComponent
in interface Accessor
- Parameters:
reference
- component reference path or null
to return _this_ accessor
- Returns:
- accessor
- Throws:
AccessorConstructionException