public class PropertyValue extends Object implements SimpleValue
Modifier | Constructor and Description |
---|---|
protected |
PropertyValue()
A constructor required by JAXB.
|
|
PropertyValue(String recordType,
String property) |
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
Type |
getCompiledType(ModelProviderClientService modelProviderService)
Returns the compiled type.
|
String |
getProperty() |
String |
getRecordType() |
String |
getType()
Returns the type.
|
Object |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
PropertyValue |
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.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
String |
toString() |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
public String getRecordType()
public String getProperty()
public <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
public SimpleValue toSimpleValue()
Value
SimpleValue
this method returns this, otherwise it returns a
ValueRef
to this.toSimpleValue
in interface Value
SimpleValue
public Value toValue()
Value
ValueRef
this method returns the referenced value, otherwise it returns
this.public Type getCompiledType(ModelProviderClientService modelProviderService)
Value
getCompiledType
in interface Value
public Object getValue()
SimpleValue
getValue
in interface SimpleValue
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.public PropertyValue makeCopy(ModelInstance targetModelInstance)
Value
makeCopy
in interface SimpleValue
makeCopy
in interface Value
public boolean isRemoved()
Value
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.