public class ValueContent extends Object implements ModelInstanceAware
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<List<BinaryValue>> |
TEMP_BINARY_VALS |
static ThreadLocal<Long> |
TEMP_ID |
Constructor and Description |
---|
ValueContent(long modelId,
String modelName,
String modelVersion,
String modelHash,
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) |
String |
getModelHash()
Returns hash of the model.
|
long |
getModelId()
Returns id of the model.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
String |
getModelName()
Returns name of the model.
|
String |
getModelVersion()
Returns version of the model.
|
static long |
getNextTempId() |
static List<BinaryValue> |
getOldBinaryValues() |
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 ThreadLocal<Long> TEMP_ID
public static final ThreadLocal<List<BinaryValue>> TEMP_BINARY_VALS
public ValueContent(long modelId, String modelName, String modelVersion, String modelHash, 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 List<BinaryValue> getOldBinaryValues()
public long getModelId()
public String getModelName()
public String getModelVersion()
public String getModelHash()
public 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.