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

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractUndefinedValue
          extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractUndefinedCollectionValue
              extended by org.eclipse.ocl.examples.pivot.values.impl.InvalidValueImpl
All Implemented Interfaces:
java.lang.Comparable<NumericValue>, java.lang.Iterable<Value>, BagValue, BooleanValue, CollectionValue, ElementValue<Type>, IntegerValue, InvalidValue, NonOrderedCollectionValue, NonUniqueCollectionValue, NullValue, NumericValue, ObjectValue, OrderedCollectionValue, OrderedSetValue, RealValue, SequenceValue, SetValue, StringValue, TypeValue, UniqueCollectionValue, UnlimitedValue, Value
Direct Known Subclasses:
OCLConsolePage.ExceptionValue

public class InvalidValueImpl
extends AbstractUndefinedCollectionValue
implements InvalidValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
CollectionValue.Accumulator
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
valueFactory
 
Constructor Summary
InvalidValueImpl(ValueFactory valueFactory)
           
 
Method Summary
 Value asValidValue()
           
 boolean equals(java.lang.Object obj)
           
 Type getType(TypeManager typeManager, Type staticType)
           
 int hashCode()
           
 boolean isInvalid()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractUndefinedCollectionValue
append, asCollection, asList, at, count, createNew, excludes, excludesAll, excluding, first, flatten, flatten, getKind, includes, includesAll, including, indexOf, insertAt, intersection, intSize, isEmpty, iterator, last, maxMin, minus, notEmpty, prepend, product, reverse, size, sort, subOrderedSet, subSequence, sum, symmetricDifference, toOrderedCollectionValue, union
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractUndefinedValue
abs, add, add, asFalse, asObject, asTrue, bigDecimalValue, bigIntegerValue, compareTo, div, divide, divide, doubleValue, floor, getElement, getInstanceType, getObject, getType, isUndefined, max, max, min, min, mod, multiply, multiply, negate, round, signum, stringValue, subtract, subtract, toInvalidValue
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isNull, isRealValue, isTrue, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, 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.pivot.values.NullValue
negate
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.IntegerValue
add, bigIntegerValue, div, divide, max, min, mod, multiply, subtract
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.RealValue
abs, add, divide, floor, max, min, multiply, round, signum, subtract
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.StringValue
stringValue
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.NumericValue
bigDecimalValue, doubleValue, toIntegerValue
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.OrderedSetValue
subOrderedSet
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.SequenceValue
subSequence
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.OrderedCollectionValue
append, at, first, indexOf, insertAt, last, prepend, reverse
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.UniqueCollectionValue
minus, symmetricDifference
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
asCollection, asList, count, excludes, excludesAll, excluding, flatten, flatten, getKind, includes, includesAll, including, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, size, sort, sum, toOrderedCollectionValue, union
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.TypeValue
asTypeValue, getInstanceType, getType
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.ElementValue
getElement
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.ObjectValue
getObject
 

Constructor Detail

InvalidValueImpl

public InvalidValueImpl(ValueFactory valueFactory)
Method Detail

asValidValue

public Value asValidValue()
                   throws InvalidValueException
Specified by:
asValidValue in interface Value
Throws:
InvalidValueException

equals

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

getType

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

hashCode

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

isInvalid

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

toString

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