public class BooleanValue extends java.lang.Object implements SimpleValue
| Modifier and Type | Field and Description |
|---|---|
static BooleanValue |
FALSE
False value.
|
static BooleanValue |
TRUE
True value.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
BooleanValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
java.lang.String |
getType()
Returns the type.
|
java.lang.Boolean |
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. |
static BooleanValue |
value(boolean val)
Returns boolean value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinishCopypublic static final BooleanValue TRUE
public static final BooleanValue FALSE
public static BooleanValue value(boolean val)
val - public SSimpleValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValuetoSerializable in interface SimpleValuetoSerializable in interface Valuepublic java.lang.Boolean getValue()
SimpleValuegetValue in interface SimpleValuepublic <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getType()
Valuepublic Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface Valuepublic BooleanValue createCopy(ModelInstance targetModelInstance)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.