public class ValueContent extends java.lang.Object implements ModelInstanceAware
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<java.util.List<BinaryValue>> |
TEMP_BINARY_VALS |
static java.lang.ThreadLocal<java.lang.Long> |
TEMP_ID |
Constructor and Description |
---|
ValueContent(long modelId,
java.lang.String modelName,
java.lang.String modelVersion,
java.lang.String modelHash,
java.util.LinkedHashSet<ComplexValue> values)
Creates new instance.
|
ValueContent(SValueContent source)
Creates a new instance from the serialized companion.
|
Modifier and Type | Method and Description |
---|---|
static void |
addOldBinaryValue(BinaryValue val) |
java.lang.String |
getModelHash()
Returns hash of the model.
|
long |
getModelId()
Returns id of the model.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
java.lang.String |
getModelName()
Returns name of the model.
|
java.lang.String |
getModelVersion()
Returns version of the model.
|
static long |
getNextTempId() |
static java.util.List<BinaryValue> |
getOldBinaryValues() |
java.util.Set<ComplexValue> |
getValues()
Returns all stored values.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
SValueContent |
toSerializable(MarshallerConfig config)
Creates a serializable object.
|
public static final java.lang.ThreadLocal<java.lang.Long> TEMP_ID
public static final java.lang.ThreadLocal<java.util.List<BinaryValue>> TEMP_BINARY_VALS
public ValueContent(long modelId, java.lang.String modelName, java.lang.String modelVersion, java.lang.String modelHash, java.util.LinkedHashSet<ComplexValue> values)
modelId
- modelName
- modelVersion
- modelHash
- values
- public ValueContent(SValueContent source)
source
- public SValueContent toSerializable(MarshallerConfig config)
config
- public static long getNextTempId()
public static void addOldBinaryValue(BinaryValue val)
public static java.util.List<BinaryValue> getOldBinaryValues()
public long getModelId()
public java.lang.String getModelName()
public java.lang.String getModelVersion()
public java.lang.String getModelHash()
public java.util.Set<ComplexValue> getValues()
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.