public class ValueContent extends Object implements XmlEntity, ModelInstanceAware
Constructor and Description |
---|
ValueContent()
Creates new instance.
|
ValueContent(long modelId,
String modelName,
String modelVersion,
String modelHash,
LinkedHashSet<ComplexValue> values)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
LinkedHashSet<ComplexValue> |
getValues()
Returns all stored values.
|
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-bind to the provided model instance.
|
public ValueContent()
public ValueContent(long modelId, String modelName, String modelVersion, String modelHash, LinkedHashSet<ComplexValue> values)
modelId
- modelName
- modelVersion
- modelHash
- values
- public long getModelId()
public String getModelName()
public String getModelVersion()
public String getModelHash()
public LinkedHashSet<ComplexValue> getValues()
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
preUnmarshal
in interface 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
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.