public class PropertyPathValue extends java.lang.Object implements SimpleValue
Constructor and Description |
---|
PropertyPathValue(java.lang.String recordType,
java.util.List<java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
PropertyPathValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
java.util.List<java.lang.String> |
getProperties() |
java.lang.String |
getRecordType() |
java.lang.String |
getType()
Returns the type.
|
java.lang.Object |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
SSimpleValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
java.lang.String |
toString() |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finishCopy
public PropertyPathValue(java.lang.String recordType, java.util.List<java.lang.String> properties)
recordType
- a full name of the record typeproperties
- a list of propertiespublic SSimpleValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValue
toSerializable
in interface SimpleValue
toSerializable
in interface Value
public java.lang.String getRecordType()
public java.util.List<java.lang.String> getProperties()
public <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.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 java.lang.String getType()
Value
public Type getCompiledType(ModelProvider modelProvider)
Value
getCompiledType
in interface Value
public java.lang.Object getValue()
SimpleValue
getValue
in interface SimpleValue
public PropertyPathValue createCopy(ModelInstance targetModelInstance)
public boolean isRemoved()
Value
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.