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, toSerializableclear, collect, findReplacementId, getCompiledType, getHandle, getId, getModelInstance, getType, isPersistent, isRemoved, toSimpleValue, toValueprotected 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()
Collectiblepublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwarerebind in class ComplexValuemodelInstance - public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValueWithEvalLevelsreplaceReferencedIds in interface EvaluationLevelAwarereplaceReferencedIds in class ComplexValueWithEvalLevelspublic void convertToDirectReferences()
convertToDirectReferences in class ComplexValueWithEvalLevelspublic void refreshDirectReferences()
EvaluationLevelAwarerefreshDirectReferences in interface EvaluationLevelAwarerefreshDirectReferences in class ComplexValueWithEvalLevelspublic void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
finishCopy in class ComplexValueWithEvalLevelspublic com.whitestein.lsps.engine.state.xml.Copiable createCopy(ModelInstance targetModelInstance)
targetModelInstance - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.