public class RecordProxySetValue extends Object implements SimpleValue, Collectible, EntityWithId, ModelInstanceAware, CommonRecordValue
Constructor and Description |
---|
RecordProxySetValue(long id,
ModelInstance modelInstance,
Value parentProxySet,
Set<Value> proxies) |
RecordProxySetValue(SRecordProxySet source,
ModelInstance modelInstance) |
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
void |
addProxy(RecordValue recordValue) |
void |
collect()
Removes itself from the process.
|
void |
convertToDirectReferences() |
protected Context |
createContext(long parentContextId) |
RecordProxySetValue |
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.
|
Handle |
getHandle()
Returns handle.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
Context |
getOwnContext(long parentContextId)
Returns own context
|
RecordProxySetValue |
getParentProxySet() |
List<CommonRecordValue> |
getProxiedRecords() |
Set<Value> |
getProxies() |
RecordValue |
getProxyFor(CommonRecordValue val) |
int |
getProxyLevel() |
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
String |
getType()
Returns the type.
|
Object |
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.
|
void |
refreshDirectReferences() |
void |
removeAllDeleted() |
void |
removeProxy(RecordValue recordValue) |
SRecordProxySet |
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 RecordProxySetValue(long id, ModelInstance modelInstance, Value parentProxySet, Set<Value> proxies)
public RecordProxySetValue(SRecordProxySet source, ModelInstance modelInstance)
public boolean isPersistent()
Collectible
isPersistent
in interface Collectible
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public void collect()
Collectible
collect
in interface Collectible
public long getId()
EntityWithId
getId
in interface CommonRecordValue
getId
in interface EntityWithId
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface CommonRecordValue
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public void addProxy(RecordValue recordValue)
public int getProxyLevel()
public void removeProxy(RecordValue recordValue)
public void removeAllDeleted()
public List<CommonRecordValue> getProxiedRecords()
public RecordValue getProxyFor(CommonRecordValue val)
public RecordProxySetValue getParentProxySet()
public SRecordProxySet toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValue
toSerializable
in interface SimpleValue
toSerializable
in interface Value
public void convertToDirectReferences()
public void refreshDirectReferences()
public <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
public RecordProxySetValue createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source, CopyHelper helper)
finishCopy
in interface SimpleValue
public SimpleValue toSimpleValue()
Value
SimpleValue
this method returns this, otherwise it returns a
ValueRef
to this.toSimpleValue
in interface Value
SimpleValue
public Value toValue()
Value
ValueRef
this method returns the referenced value, otherwise it returns
this.public Type getCompiledType(ModelProvider modelProvider)
Value
getCompiledType
in interface Value
public boolean isRemoved()
Value
public Object getValue()
SimpleValue
getValue
in interface SimpleValue
public Handle getHandle()
protected Context createContext(long parentContextId)
public Context getOwnContext(long parentContextId)
getOwnContext
in interface CommonRecordValue
parentContextId
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.