public class ReadOnlyRecordValue extends java.lang.Object implements SimpleValue, Collectible, EntityWithId, ModelInstanceAware
| Modifier | Constructor and Description |
|---|---|
|
ReadOnlyRecordValue(ComplexValue record)
Creates new instance.
|
|
ReadOnlyRecordValue(long id,
ModelInstance modelInstance,
ComplexValue record)
Creates new instance.
|
protected |
ReadOnlyRecordValue(ReadOnlyRecordValue s,
ModelInstance targetModelInstance) |
|
ReadOnlyRecordValue(SReadOnlyRecordValue s,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
void |
collect()
Removes itself from the process.
|
ReadOnlyRecordValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
void |
finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copy references.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
ComplexValue |
getRecord()
Returns wrapped read-write record value.
|
java.util.Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
java.lang.String |
getType()
Returns the type.
|
ValueRef |
getValue()
Returns the contained value.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
boolean |
isRemoved()
Returns true if value is removed
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
SReadOnlyRecordValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
public ReadOnlyRecordValue(long id,
ModelInstance modelInstance,
ComplexValue record)
id - modelInstance - record - public ReadOnlyRecordValue(ComplexValue record)
record - public ReadOnlyRecordValue(SReadOnlyRecordValue s, ModelInstance modelInstance)
s - modelInstance - protected ReadOnlyRecordValue(ReadOnlyRecordValue s, ModelInstance targetModelInstance)
public SReadOnlyRecordValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValuetoSerializable in interface SimpleValuetoSerializable in interface Valuepublic ComplexValue getRecord()
public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic java.util.Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.Throwable
Valuepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public ValueRef getValue()
SimpleValuegetValue in interface SimpleValuepublic java.lang.String getType()
Valuepublic Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface Valuepublic ReadOnlyRecordValue createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
finishCopy in interface SimpleValueCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.