org.eclipse.ocl.examples.domain.values.impl
Class AbstractUndefinedValue
java.lang.Object
org.eclipse.ocl.examples.domain.values.impl.AbstractValue
org.eclipse.ocl.examples.domain.values.impl.AbstractUndefinedValue
- All Implemented Interfaces:
- java.lang.Comparable<NumericValue>, java.lang.Iterable<Value>, BagValue, BooleanValue, CollectionValue, ElementValue, IntegerValue, NullValue, NumericValue, ObjectValue, OrderedSetValue, RealValue, SequenceValue, SetValue, StringValue, TypeValue, UniqueCollectionValue, UnlimitedValue, Value
- Direct Known Subclasses:
- AbstractUndefinedCollectionValue
public abstract class AbstractUndefinedValue
- extends AbstractValue
- implements NullValue
| Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue |
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, 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.CollectionValue |
asCollection, asList, count, excludes, excludesAll, excluding, flatten, flatten, getCollectionType, getKind, includes, includesAll, including, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, selectByKind, selectByType, size, sort, sum, toSequenceValue, union |
AbstractUndefinedValue
protected AbstractUndefinedValue(ValueFactory valueFactory)
abs
public NullValue abs()
throws InvalidValueException
- Specified by:
abs in interface NumericValue- Specified by:
abs in interface RealValue
- Throws:
InvalidValueException
add
public NullValue add(IntegerValue right)
throws InvalidValueException
- Specified by:
add in interface IntegerValue
- Throws:
InvalidValueException
add
public NullValue add(RealValue right)
throws InvalidValueException
- Specified by:
add in interface RealValue
- Throws:
InvalidValueException
asFalse
public BooleanValue asFalse()
asObject
public java.lang.Object asObject()
- Specified by:
asObject in interface Value
asTrue
public BooleanValue asTrue()
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValue in interface NumericValue
bigIntegerValue
public java.math.BigInteger bigIntegerValue()
- Specified by:
bigIntegerValue in interface IntegerValue
compareTo
public int compareTo(NumericValue o)
- Specified by:
compareTo in interface java.lang.Comparable<NumericValue>
div
public NullValue div(IntegerValue right)
throws InvalidValueException
- Specified by:
div in interface IntegerValue
- Throws:
InvalidValueException
divide
public NullValue divide(IntegerValue right)
throws InvalidValueException
- Specified by:
divide in interface IntegerValue
- Throws:
InvalidValueException
divide
public NullValue divide(RealValue right)
throws InvalidValueException
- Specified by:
divide in interface RealValue
- Throws:
InvalidValueException
doubleValue
public double doubleValue()
- Specified by:
doubleValue in interface NumericValue
floor
public NullValue floor()
throws InvalidValueException
- Specified by:
floor in interface RealValue
- Throws:
InvalidValueException
getElement
public DomainType getElement()
- Specified by:
getElement in interface ElementValue
getInstanceType
public DomainType getInstanceType()
- Specified by:
getInstanceType in interface TypeValue
getObject
public java.lang.Object getObject()
- Specified by:
getObject in interface ObjectValue
isUndefined
public boolean isUndefined()
- Specified by:
isUndefined in interface Value- Overrides:
isUndefined in class AbstractValue
max
public NullValue max(IntegerValue right)
throws InvalidValueException
- Specified by:
max in interface IntegerValue
- Throws:
InvalidValueException
max
public NullValue max(RealValue right)
throws InvalidValueException
- Specified by:
max in interface RealValue
- Throws:
InvalidValueException
min
public NullValue min(IntegerValue right)
throws InvalidValueException
- Specified by:
min in interface IntegerValue
- Throws:
InvalidValueException
min
public NullValue min(RealValue right)
throws InvalidValueException
- Specified by:
min in interface RealValue
- Throws:
InvalidValueException
mod
public NullValue mod(IntegerValue right)
throws InvalidValueException
- Specified by:
mod in interface IntegerValue
- Throws:
InvalidValueException
multiply
public NullValue multiply(IntegerValue right)
throws InvalidValueException
- Specified by:
multiply in interface IntegerValue
- Throws:
InvalidValueException
multiply
public NullValue multiply(RealValue right)
throws InvalidValueException
- Specified by:
multiply in interface RealValue
- Throws:
InvalidValueException
negate
public NullValue negate()
throws InvalidValueException
- Specified by:
negate in interface IntegerValue- Specified by:
negate in interface NullValue- Specified by:
negate in interface NumericValue- Specified by:
negate in interface RealValue
- Throws:
InvalidValueException
round
public NullValue round()
throws InvalidValueException
- Specified by:
round in interface RealValue
- Throws:
InvalidValueException
signum
public int signum()
- Specified by:
signum in interface NumericValue- Specified by:
signum in interface RealValue
stringValue
public java.lang.String stringValue()
- Specified by:
stringValue in interface StringValue
subtract
public NullValue subtract(IntegerValue right)
throws InvalidValueException
- Specified by:
subtract in interface IntegerValue
- Throws:
InvalidValueException
subtract
public NullValue subtract(RealValue right)
throws InvalidValueException
- Specified by:
subtract in interface RealValue
- Throws:
InvalidValueException
toInvalidValue
protected NullValue toInvalidValue()
throws InvalidValueException
- Throws:
InvalidValueException