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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.AbstractIntegerValue
All Implemented Interfaces:
java.lang.Comparable<NumericValue>, IntegerValue, NumericValue, Value
Direct Known Subclasses:
IntegerIntValueImpl, IntegerLongValueImpl, IntegerValueImpl

public abstract class AbstractIntegerValue
extends AbstractValue
implements IntegerValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.domain.values.IntegerValue
IntegerValue.Accumulator
 
Field Summary
 
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
AbstractIntegerValue(ValueFactory valueFactory)
           
 
Method Summary
 IntegerValue asIntegerValue()
           
 Value asValidValue()
           
 DomainType getType()
          Return the type of this value determined from its construction context.
 IntegerValue isIntegerValue()
           
 IntegerValue toIntegerValue()
           
 RealValue toRealValue()
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIteratorValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.IntegerValue
add, bigIntegerValue, div, divide, max, min, mod, multiply, negate, subtract
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.NumericValue
abs, bigDecimalValue, doubleValue, signum
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIteratorValue, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractIntegerValue

public AbstractIntegerValue(ValueFactory valueFactory)
Method Detail

asIntegerValue

public IntegerValue asIntegerValue()
Specified by:
asIntegerValue in interface Value
Overrides:
asIntegerValue in class AbstractValue

asValidValue

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

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

isIntegerValue

public IntegerValue isIntegerValue()
Specified by:
isIntegerValue in interface Value
Overrides:
isIntegerValue in class AbstractValue

toIntegerValue

public IntegerValue toIntegerValue()
Specified by:
toIntegerValue in interface NumericValue
Specified by:
toIntegerValue in interface Value
Overrides:
toIntegerValue in class AbstractValue

toRealValue

public RealValue toRealValue()
Specified by:
toRealValue in interface Value
Overrides:
toRealValue in class AbstractValue