public class RangeValue extends Object implements SimpleValue
| Modifier | Constructor and Description |
|---|---|
protected |
RangeValue() |
|
RangeValue(long first,
long last)
Constructs a new range.
|
| 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.
|
long |
getFirst()
Returns the first element in this range.
|
long |
getLast()
Returns the last element in this range.
|
String |
getType()
Returns the type.
|
Object |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
RangeValue |
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. |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
protected RangeValue()
public RangeValue(long first,
long last)
first - last - public long getFirst()
public long getLast()
public <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 Type getCompiledType(ModelProviderClientService modelProviderService)
ValuegetCompiledType in interface Valuepublic RangeValue makeCopy(ModelInstance targetModelInstance)
ValuemakeCopy in interface SimpleValuemakeCopy in interface Valuepublic boolean isRemoved()
Valuepublic 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 Object getValue()
SimpleValuegetValue in interface SimpleValueCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.