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, updateLevelData
protected 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 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, Long lowestLevelValueId, Long lowerLevelValueId)
MapValue
.modelInstance
- type
- indexes
- items
- level
- baseLevelValueId
- lowestLevelValueId
- lowerLevelValueId
- 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 void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
parent
- 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)
UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public Collection<Collectible> getReferences()
Collectible
public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValue
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValue
public void rebind(ModelInstance modelInstance)
rebind
in interface ModelInstanceAware
rebind
in class ComplexValue
modelInstance
- public MapValue makeCopy(ModelInstance targetModelInstance)
Value
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.