org.eclipse.ocl.examples.pivot.values.impl
Class BooleanValueImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.pivot.values.impl.BooleanValueImpl
All Implemented Interfaces:
BooleanValue, Value

public class BooleanValueImpl
extends AbstractValue
implements BooleanValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.Value
Value.BinaryOperation
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value
INVALID_NAME
 
Constructor Summary
BooleanValueImpl(ValueFactory valueFactory, boolean value)
           
 
Method Summary
 boolean asBoolean()
           
 BooleanValueImpl asBooleanValue()
           
 java.lang.Object asObject()
           
 Value asValidValue()
           
 Type getType(TypeManager typeManager, Type staticType)
           
 boolean isFalse()
           
 boolean isTrue()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
asBagValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isCollectionValue, isIntegerValue, isInvalid, isNull, isRealValue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.Value
asBagValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isCollectionValue, isIntegerValue, isInvalid, isNull, isRealValue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue, toString
 

Constructor Detail

BooleanValueImpl

public BooleanValueImpl(ValueFactory valueFactory,
                        boolean value)
Method Detail

asBoolean

public boolean asBoolean()
Specified by:
asBoolean in interface Value
Overrides:
asBoolean in class AbstractValue

asBooleanValue

public BooleanValueImpl asBooleanValue()
Specified by:
asBooleanValue in interface Value
Overrides:
asBooleanValue in class AbstractValue

asObject

public java.lang.Object asObject()
Specified by:
asObject in interface Value

asValidValue

public Value asValidValue()
Specified by:
asValidValue in interface Value

getType

public Type getType(TypeManager typeManager,
                    Type staticType)
Specified by:
getType in interface Value

isFalse

public boolean isFalse()
Specified by:
isFalse in interface Value
Overrides:
isFalse in class AbstractValue

isTrue

public boolean isTrue()
Specified by:
isTrue in interface Value
Overrides:
isTrue in class AbstractValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object