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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.BooleanValueImpl
All Implemented Interfaces:
BooleanValue, Value
Direct Known Subclasses:
BooleanValueImpl.Accumulator

public class BooleanValueImpl
extends AbstractValue
implements BooleanValue


Nested Class Summary
static class BooleanValueImpl.Accumulator
           
 
Field Summary
protected  boolean value
           
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
BooleanValueImpl(ValueFactory valueFactory, boolean value)
           
 
Method Summary
 boolean asBoolean()
           
 BooleanValue asBooleanValue()
           
 java.lang.Object asObject()
           
 Value asValidValue()
           
 boolean equals(java.lang.Object obj)
           
 DomainType getType()
          Return the type of this value determined from its construction context.
 int hashCode()
           
 boolean isFalse()
           
 boolean isTrue()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isIntegerValue, isInvalid, isNull, isRealValue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isIntegerValue, isInvalid, isNull, isRealValue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 

Field Detail

value

protected boolean value
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 BooleanValue 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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getType

public DomainType getType()
Description copied from interface: Value
Return the type of this value determined from its construction context. In the case of collections this may differ from the actual type.

Specified by:
getType in interface Value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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