public abstract class ComplexValueWithEvalLevels extends ComplexValue
Value
. The type cannot
be null.modelInstance
Modifier | Constructor and Description |
---|---|
protected |
ComplexValueWithEvalLevels(ComplexValueWithEvalLevels source,
ModelInstance targetModelInstance)
Creates copy instance from source.
|
protected |
ComplexValueWithEvalLevels(long id,
ModelInstance modelInstance,
String type,
boolean register)
Creates new instance of
ComplexValueWithEvalLevels . |
protected |
ComplexValueWithEvalLevels(long id,
ModelInstance modelInstance,
String type,
boolean register,
String level,
long baseLevelValueId,
ComplexValue lowerLevelValue)
Creates new instance of
ComplexValueWithEvalLevels . |
protected |
ComplexValueWithEvalLevels(SComplexValue source,
ModelInstance modelInstance) |
Modifier and Type | Method and Description |
---|---|
protected void |
convertToDirectReferences() |
com.whitestein.lsps.engine.state.xml.Copiable |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
protected void |
fillSerializable(SComplexValue s,
SModelInstance smi,
MarshallerConfig config)
Fills attributes of the serializable value which is being created.
|
void |
finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copy references.
|
ComplexValue |
getBaseLevelEntity()
Returns base level value.
|
long |
getBaseLevelEntityId()
Returns id of the corresponding value in base level.
|
String |
getEvaluationLevel()
Returns evaluation level of this value.
|
ComplexValue |
getLowerLevelEntity()
Returns lower level value.
|
Long |
getLowerLevelEntityId()
Returns id of the corresponding value in previous lower level.
|
void |
refreshDirectReferences()
Re-set references to elements from the same model instance.
|
void |
replaceIdAndEvaluationLevel(long newId,
long newBaseId)
Replaces id and base level entity id.
|
void |
replaceReferencedIds(Map<Long,Long> replacementMap)
Replace referenced ids according to mappings in the replacement map.
|
void |
setLowerLevelEntity(ComplexValue lowerLevelEntity)
Sets lower level entity.
|
abstract SComplexValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
clear, collect, findReplacementId, getCompiledType, getHandle, getId, getModelInstance, getType, isPersistent, isRemoved, rebind, toSimpleValue, toValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReferences
protected ComplexValueWithEvalLevels(ComplexValueWithEvalLevels source, ModelInstance targetModelInstance)
source
- targetModelInstance
- protected ComplexValueWithEvalLevels(SComplexValue source, ModelInstance modelInstance)
protected ComplexValueWithEvalLevels(long id, ModelInstance modelInstance, String type, boolean register, String level, long baseLevelValueId, ComplexValue lowerLevelValue)
ComplexValueWithEvalLevels
.id
- modelInstance
- type
- register
- level
- baseLevelValueId
- lowerLevelValue
- NullPointerException
- if modelInstance
or type
is nullprotected ComplexValueWithEvalLevels(long id, ModelInstance modelInstance, String type, boolean register)
ComplexValueWithEvalLevels
.id
- modelInstance
- type
- register
- NullPointerException
- if modelInstance
or type
is nullpublic abstract SComplexValue toSerializable(SModelInstance smi, MarshallerConfig config)
toSerializable
in interface Value
toSerializable
in class ComplexValue
smi
- config
- protected void fillSerializable(SComplexValue s, SModelInstance smi, MarshallerConfig config)
fillSerializable
in class ComplexValue
s
- smi
- config
- public String getEvaluationLevel()
getEvaluationLevel
in interface EvaluationLevelAware
getEvaluationLevel
in class ComplexValue
public void replaceIdAndEvaluationLevel(long newId, long newBaseId)
ComplexValue
replaceIdAndEvaluationLevel
in class ComplexValue
public void replaceReferencedIds(Map<Long,Long> replacementMap)
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValue
replacementMap
- public long getBaseLevelEntityId()
getBaseLevelEntityId
in interface EvaluationLevelAware
getBaseLevelEntityId
in class ComplexValue
public ComplexValue getBaseLevelEntity()
getBaseLevelEntity
in interface EvaluationLevelAware
getBaseLevelEntity
in class ComplexValue
public Long getLowerLevelEntityId()
getLowerLevelEntityId
in interface EvaluationLevelAware
getLowerLevelEntityId
in class ComplexValue
public ComplexValue getLowerLevelEntity()
getLowerLevelEntity
in interface EvaluationLevelAware
getLowerLevelEntity
in class ComplexValue
public void setLowerLevelEntity(ComplexValue lowerLevelEntity)
setLowerLevelEntity
in class ComplexValue
lowerLevelEntity
- protected void convertToDirectReferences()
convertToDirectReferences
in class ComplexValue
public void refreshDirectReferences()
EvaluationLevelAware
refreshDirectReferences
in interface EvaluationLevelAware
refreshDirectReferences
in class ComplexValue
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source, CopyHelper helper)
finishCopy
in class ComplexValue
public com.whitestein.lsps.engine.state.xml.Copiable createCopy(ModelInstance targetModelInstance)
targetModelInstance
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.