public class MapValue extends ComplexValueWithEvalLevels
modelInstance| Modifier | Constructor and Description | 
|---|---|
|   | MapValue(long id,
        ModelInstance modelInstance,
        java.lang.String type,
        java.util.List<? extends Value> indexes,
        java.util.List<? extends Value> items)Creates new instance of  MapValue. | 
|   | MapValue(long id,
        ModelInstance modelInstance,
        java.lang.String type,
        java.util.List<? extends Value> indexes,
        java.util.List<? extends Value> items,
        java.lang.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,
        java.lang.String type,
        java.util.List<? extends Value> indexes,
        java.util.List<? extends Value> items)Creates new instance of  MapValue. | 
|   | MapValue(ModelInstance modelInstance,
        java.lang.String type,
        java.util.List<? extends Value> indexes,
        java.util.List<? extends Value> items,
        java.lang.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 java.lang.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. | 
| java.util.List<Value> | getIndexList()Returns the list of indexes. | 
| java.util.List<Value> | getItemList()Returns the list of items. | 
| java.util.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(java.util.Map<java.lang.Long,java.lang.Long> replacementMap)Replace referenced ids according to mappings in the replacement map. | 
| void | setValues(java.util.List<? extends Value> indexes,
         java.util.List<? extends Value> items)Sets the values. | 
| int | size()Returns the element count. | 
| SMapValue | toSerializable(SModelInstance smi,
              MarshallerConfig config)Creates a serializable object. | 
| java.lang.String | toString() | 
fillSerializable, getBaseLevelEntity, getBaseLevelEntityId, getEvaluationLevel, getLowerLevelEntity, getLowerLevelEntityId, replaceIdAndEvaluationLevel, setLowerLevelEntityclear, collect, findReplacementId, getCompiledType, getHandle, getId, getModelInstance, getType, isPersistent, isRemoved, toSimpleValue, toValueprotected MapValue(MapValue source, ModelInstance targetModelInstance)
source - targetModelInstance - public MapValue(SMapValue source, ModelInstance modelInstance)
source - modelInstance - public MapValue(long id,
                ModelInstance modelInstance,
                java.lang.String type,
                java.util.List<? extends Value> indexes,
                java.util.List<? extends Value> items,
                java.lang.String level,
                long baseLevelValueId,
                MapValue lowerLevelValue)
MapValue.id - modelInstance - type - indexes - items - level - baseLevelValueId - lowerLevelValue - java.lang.NullPointerException - if modelInstance or type is nullpublic MapValue(long id,
                ModelInstance modelInstance,
                java.lang.String type,
                java.util.List<? extends Value> indexes,
                java.util.List<? extends Value> items)
MapValue.id - modelInstance - type - indexes - items - java.lang.NullPointerException - if modelInstance or type is nullpublic MapValue(ModelInstance modelInstance, java.lang.String type, java.util.List<? extends Value> indexes, java.util.List<? extends Value> items, java.lang.String level, long baseLevelValueId, MapValue lowerLevelValue)
MapValue.modelInstance - type - indexes - items - level - baseLevelValueId - lowerLevelValue - java.lang.NullPointerException - if modelInstance or type is nullpublic MapValue(ModelInstance modelInstance, java.lang.String type, java.util.List<? extends Value> indexes, java.util.List<? extends Value> items)
MapValue.modelInstance - type - indexes - items - java.lang.NullPointerException - if modelInstance or type is nullpublic void setValues(java.util.List<? extends Value> indexes, java.util.List<? extends Value> items)
indexes - items - public int size()
public java.util.List<Value> getIndexList()
public java.util.List<Value> getItemList()
public <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.Throwable
ValueEE extends java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<Collectible> getReferences()
Collectiblepublic void replaceReferencedIds(java.util.Map<java.lang.Long,java.lang.Long> replacementMap)
ComplexValueWithEvalLevelsreplaceReferencedIds in interface EvaluationLevelAwarereplaceReferencedIds in class ComplexValueWithEvalLevelspublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwarerebind in class ComplexValuemodelInstance - public MapValue createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
                       CopyHelper helper)
finishCopy in class ComplexValueWithEvalLevelspublic SMapValue toSerializable(SModelInstance smi, MarshallerConfig config)
ComplexValueWithEvalLevelstoSerializable in interface ValuetoSerializable in class ComplexValueWithEvalLevelsprotected void convertToDirectReferences()
convertToDirectReferences in class ComplexValueWithEvalLevelspublic void refreshDirectReferences()
EvaluationLevelAwarerefreshDirectReferences in interface EvaluationLevelAwarerefreshDirectReferences in class ComplexValueWithEvalLevelsCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.