org.eclipse.ocl.examples.library.iterator
Class SortedByIteration.SortingValue

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.library.iterator.SortedByIteration.SortingValue
All Implemented Interfaces:
java.util.Comparator<Value>, Value
Enclosing class:
SortedByIteration

protected static class SortedByIteration.SortingValue
extends AbstractValue
implements java.util.Comparator<Value>


Field Summary
protected  DomainType type
           
 
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
SortedByIteration.SortingValue(DomainEvaluator evaluator, DomainType returnType, LibraryBinaryOperation implementation)
           
 
Method Summary
 java.lang.Object asObject()
           
 Value asValidValue()
           
 int compare(Value o1, Value o2)
           
 Value createSortedValue()
           
 DomainType getType()
          Return the type of this value determined from its construction context.
 void put(Value iterVal, Value comparable)
           
 java.lang.String toString()
           
 
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, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

type

protected final DomainType type
Constructor Detail

SortedByIteration.SortingValue

public SortedByIteration.SortingValue(DomainEvaluator evaluator,
                                      DomainType returnType,
                                      LibraryBinaryOperation implementation)
Method Detail

asObject

public java.lang.Object asObject()
Specified by:
asObject in interface Value

asValidValue

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

compare

public int compare(Value o1,
                   Value o2)
Specified by:
compare in interface java.util.Comparator<Value>

createSortedValue

public Value createSortedValue()

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

put

public void put(Value iterVal,
                Value comparable)

toString

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