org.eclipse.ocl.examples.domain.values.impl
Class BooleanValueImpl
java.lang.Object
org.eclipse.ocl.examples.domain.values.impl.AbstractValue
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
|
Field Summary |
protected boolean |
value
|
| Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
| 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 |
value
protected boolean value
BooleanValueImpl
public BooleanValueImpl(ValueFactory valueFactory,
boolean value)
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