public class MapValue extends ComplexValue
modelInstance| Modifier | Constructor and Description |
|---|---|
protected |
MapValue()
Creates new instance of
MapValue. |
|
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,
Long lowestLevelValueId,
Long lowerLevelValueId)
Creates new instance of
MapValue. |
|
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,
Long lowestLevelValueId,
Long lowerLevelValueId)
Creates new instance of
MapValue. |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
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.
|
MapValue |
makeCopy(ModelInstance targetModelInstance)
Creates copy of the value in the target model instance.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a 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.
|
String |
toString() |
clear, collect, commonAfterUnmarshal, createContext, findReplacementId, getBaseLevelEntity, getBaseLevelEntityId, getCompiledType, getEvaluationLevel, getHandle, getId, getLowerLevelEntity, getLowerLevelEntityId, getLowestLevelEntity, getLowestLevelEntityId, getModelInstance, getOwnContext, getType, internalVersionConflictMessage, isInternalyVersioned, isLocked, isLowestExistingEntity, isPersistent, isRemoved, replaceIdAndEvaluationLevel, setLowerLevelEntityId, setPersistent, toSimpleValue, toValue, updateLevelDataprotected MapValue()
MapValue.public MapValue(long id,
ModelInstance modelInstance,
String type,
List<? extends Value> indexes,
List<? extends Value> items,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId)
MapValue.id - modelInstance - type - indexes - items - level - baseLevelValueId - lowestLevelValueId - lowerLevelValueId - NullPointerException - if modelInstance or type is nullpublic 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 nullpublic MapValue(ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items, String level, Long baseLevelValueId, Long lowestLevelValueId, Long lowerLevelValueId)
MapValue.modelInstance - type - indexes - items - level - baseLevelValueId - lowestLevelValueId - lowerLevelValueId - NullPointerException - if modelInstance or type is nullpublic MapValue(ModelInstance modelInstance, String type, List<? extends Value> indexes, List<? extends Value> items)
MapValue.modelInstance - type - indexes - items - NullPointerException - if modelInstance or type is nullpublic 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
ValueEE extends Throwablepublic void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public Collection<Collectible> getReferences()
Collectiblepublic void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValuereplaceReferencedIds in interface EvaluationLevelAwarereplaceReferencedIds in class ComplexValuepublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwarerebind in class ComplexValuemodelInstance - public MapValue makeCopy(ModelInstance targetModelInstance)
ValueCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.