public abstract class CollectionValue extends ComplexValueWithEvalLevels
modelInstance
Modifier | Constructor and Description |
---|---|
protected |
CollectionValue(CollectionValue source,
ModelInstance targetModelInstance)
Creates copy instance from source.
|
protected |
CollectionValue(long id,
ModelInstance modelInstance,
String type,
Collection<? extends Value> values)
Creates new instance of
CollectionValue . |
protected |
CollectionValue(long id,
ModelInstance modelInstance,
String type,
Collection<? extends Value> values,
String level,
long baseLevelValueId,
ComplexValue lowerLevelValue)
Creates new instance of
CollectionValue . |
protected |
CollectionValue(SCollectionValue source,
ModelInstance modelInstance) |
Modifier and Type | Method and Description |
---|---|
void |
convertToDirectReferences() |
com.whitestein.lsps.engine.state.xml.Copiable |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
protected void |
fillSerializable(SCollectionValue s,
SModelInstance smi,
MarshallerConfig config) |
void |
finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copy references.
|
Value |
get(int i)
Returns
i -th element of the collection. |
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
void |
refreshDirectReferences()
Re-set references to elements from the same model instance.
|
void |
replaceReferencedIds(Map<Long,Long> replacementMap)
Replace referenced ids according to mappings in the replacement map.
|
void |
setValues(Collection<? extends Value> values)
Sets the list values.
|
int |
size()
Returns the element count.
|
String |
toString() |
List<Value> |
values()
Returns collection of values.
|
fillSerializable, getBaseLevelEntity, getBaseLevelEntityId, getEvaluationLevel, getLowerLevelEntity, getLowerLevelEntityId, replaceIdAndEvaluationLevel, setLowerLevelEntity, toSerializable
clear, collect, findReplacementId, getCompiledType, getHandle, getId, getModelInstance, getType, isPersistent, isRemoved, toSimpleValue, toValue
protected CollectionValue(CollectionValue source, ModelInstance targetModelInstance)
source
- targetModelInstance
- protected CollectionValue(SCollectionValue source, ModelInstance modelInstance)
protected CollectionValue(long id, ModelInstance modelInstance, String type, Collection<? extends Value> values, String level, long baseLevelValueId, ComplexValue lowerLevelValue)
CollectionValue
.id
- modelInstance
- type
- values
- contained valueslevel
- baseLevelValueId
- lowerLevelValue
- NullPointerException
- if modelInstance
or type
or values
is
null or values
contains nullprotected CollectionValue(long id, ModelInstance modelInstance, String type, Collection<? extends Value> values)
CollectionValue
.id
- modelInstance
- type
- values
- contained valuesNullPointerException
- if modelInstance
or type
or values
is
null or values
contains nullprotected void fillSerializable(SCollectionValue s, SModelInstance smi, MarshallerConfig config)
public int size()
public Value get(int i)
i
-th element of the collection.i
- i
-th element of the collectionIllegalArgumentException
- if the i
is out of boundspublic void setValues(Collection<? extends Value> values)
values
- public Collection<Collectible> getReferences()
Collectible
public void rebind(ModelInstance modelInstance)
rebind
in interface ModelInstanceAware
rebind
in class ComplexValue
modelInstance
- public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValueWithEvalLevels
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValueWithEvalLevels
public void convertToDirectReferences()
convertToDirectReferences
in class ComplexValueWithEvalLevels
public void refreshDirectReferences()
EvaluationLevelAware
refreshDirectReferences
in interface EvaluationLevelAware
refreshDirectReferences
in class ComplexValueWithEvalLevels
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source, CopyHelper helper)
finishCopy
in class ComplexValueWithEvalLevels
public com.whitestein.lsps.engine.state.xml.Copiable createCopy(ModelInstance targetModelInstance)
targetModelInstance
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.