public class MapValue extends ComplexValueWithEvalLevels
modelInstance
Modifier | Constructor and Description |
---|---|
|
MapValue(long id,
ModelInstance modelInstance,
String type,
List<? extends Value> indexes,
List<? extends Value> items)
Creates new instance of
MapValue . |
|
MapValue(long id,
ModelInstance modelInstance,
String type,
List<? extends Value> indexes,
List<? extends Value> items,
String level,
long baseLevelValueId,
MapValue lowerLevelValue)
Creates new instance of
MapValue . |
protected |
MapValue(MapValue source,
ModelInstance targetModelInstance)
Creates copy instance from source.
|
|
MapValue(ModelInstance modelInstance,
String type,
List<? extends Value> indexes,
List<? extends Value> items)
Creates new instance of
MapValue . |
|
MapValue(ModelInstance modelInstance,
String type,
List<? extends Value> indexes,
List<? extends Value> items,
String level,
long baseLevelValueId,
MapValue lowerLevelValue)
Creates new instance of
MapValue . |
|
MapValue(SMapValue source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
protected void |
convertToDirectReferences() |
MapValue |
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.
|
List<Value> |
getIndexList()
Returns the list of indexes.
|
List<Value> |
getItemList()
Returns the list of items.
|
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(List<? extends Value> indexes,
List<? extends Value> items)
Sets the values.
|
int |
size()
Returns the element count.
|
SMapValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
String |
toString() |
fillSerializable, getBaseLevelEntity, getBaseLevelEntityId, getEvaluationLevel, getLowerLevelEntity, getLowerLevelEntityId, replaceIdAndEvaluationLevel, setLowerLevelEntity
clear, collect, findReplacementId, getCompiledType, getHandle, getId, getModelInstance, getType, isPersistent, isRemoved, toSimpleValue, toValue
protected MapValue(MapValue source, ModelInstance targetModelInstance)
source
- targetModelInstance
- public MapValue(SMapValue source, ModelInstance modelInstance)
source
- modelInstance
- public MapValue(long id, ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items, String level, long baseLevelValueId, MapValue lowerLevelValue)
MapValue
.id
- modelInstance
- type
- indexes
- items
- level
- baseLevelValueId
- lowerLevelValue
- NullPointerException
- if modelInstance
or type
is null
public MapValue(long id, ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items)
MapValue
.id
- modelInstance
- type
- indexes
- items
- NullPointerException
- if modelInstance
or type
is null
public MapValue(ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items, String level, long baseLevelValueId, MapValue lowerLevelValue)
MapValue
.modelInstance
- type
- indexes
- items
- level
- baseLevelValueId
- lowerLevelValue
- NullPointerException
- if modelInstance
or type
is null
public MapValue(ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items)
MapValue
.modelInstance
- type
- indexes
- items
- NullPointerException
- if modelInstance
or type
is null
public void setValues(List<? extends Value> indexes, List<? extends Value> items)
indexes
- items
- public int size()
public List<Value> getIndexList()
public <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
E
E extends Throwable
public Collection<Collectible> getReferences()
Collectible
public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValueWithEvalLevels
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValueWithEvalLevels
public void rebind(ModelInstance modelInstance)
rebind
in interface ModelInstanceAware
rebind
in class ComplexValue
modelInstance
- public MapValue createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source, CopyHelper helper)
finishCopy
in class ComplexValueWithEvalLevels
public SMapValue toSerializable(SModelInstance smi, MarshallerConfig config)
ComplexValueWithEvalLevels
toSerializable
in interface Value
toSerializable
in class ComplexValueWithEvalLevels
protected void convertToDirectReferences()
convertToDirectReferences
in class ComplexValueWithEvalLevels
public void refreshDirectReferences()
EvaluationLevelAware
refreshDirectReferences
in interface EvaluationLevelAware
refreshDirectReferences
in class ComplexValueWithEvalLevels
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.