public class ReadOnlyRecordValue extends Object implements SimpleValue, Collectible, EntityWithId, ModelInstanceAware
| Constructor and Description |
|---|
ReadOnlyRecordValue()
Default constructor.
|
ReadOnlyRecordValue(ComplexValue record)
Creates new instance.
|
ReadOnlyRecordValue(long id,
ModelInstance modelInstance,
ComplexValue record)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
void |
collect()
Removes itself from the process.
|
Type |
getCompiledType(ModelProviderClientService modelProviderService)
Returns the compiled type.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
ComplexValue |
getRecord()
Returns wrapped read-write record value.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
String |
getType()
Returns the type.
|
ValueRef |
getValue()
Returns the contained value.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
boolean |
isRemoved()
Returns true if value is removed
|
ReadOnlyRecordValue |
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.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
public ReadOnlyRecordValue()
public ReadOnlyRecordValue(long id,
ModelInstance modelInstance,
ComplexValue record)
id - modelInstance - record - public ReadOnlyRecordValue(ComplexValue record)
record - public ComplexValue getRecord()
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - 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)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Valuepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public ValueRef getValue()
SimpleValuegetValue in interface SimpleValuepublic Type getCompiledType(ModelProviderClientService modelProviderService)
ValuegetCompiledType in interface Valuepublic ReadOnlyRecordValue makeCopy(ModelInstance targetModelInstance)
ValuemakeCopy in interface SimpleValuemakeCopy in interface ValueCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.