public class ModelInstanceProperty extends Object implements XmlEntity, ModelInstanceAware
Constructor and Description |
---|
ModelInstanceProperty()
Creates new empty instance of
ModelInstanceProperty . |
ModelInstanceProperty(ModelInstance modelInstance,
String name,
String value)
Creates new instance of
ModelInstanceProperty . |
Modifier and Type | Method and Description |
---|---|
ModelInstance |
getModelInstance()
Returns the model instance.
|
String |
getName()
Returns name of the metadata.
|
String |
getValue()
Returns value of the metadata.
|
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.
|
String |
toString() |
public ModelInstanceProperty()
ModelInstanceProperty
.public ModelInstanceProperty(ModelInstance modelInstance, String name, String value)
ModelInstanceProperty
.modelInstance
- name
- value
- public String getName()
public String getValue()
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.