org.eclipse.ocl.examples.library.oclany
Class OclAnyOclTypeOperation

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.util.ValuesUtil
      extended by org.eclipse.ocl.examples.domain.library.AbstractFeature
          extended by org.eclipse.ocl.examples.domain.library.AbstractOperation
              extended by org.eclipse.ocl.examples.domain.library.AbstractUnaryOperation
                  extended by org.eclipse.ocl.examples.domain.library.AbstractUntypedUnaryOperation
                      extended by org.eclipse.ocl.examples.library.oclany.OclAnyOclTypeOperation
All Implemented Interfaces:
LibraryFeature, LibraryOperation, LibraryUnaryOperation, LibraryUntypedOperation, LibraryUntypedUnaryOperation

public class OclAnyOclTypeOperation
extends AbstractUntypedUnaryOperation

OclAnyOclTypeOperation realises the OclAny::oclType() library operation.


Field Summary
static OclAnyOclTypeOperation INSTANCE
           
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
 
Constructor Summary
OclAnyOclTypeOperation()
           
 
Method Summary
 DomainType evaluate(DomainEvaluator evaluator, java.lang.Object sourceVal)
           
 DomainType evaluate(DomainEvaluator evaluator, TypeId returnTypeId, java.lang.Object sourceValue)
          Deprecated. 
 
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractUntypedUnaryOperation
evaluate, evaluate
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
asBagValue, asBoolean, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asNavigableObject, asObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, createTupleValue, createTypeValue, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, isBoxed, isCollectionValue, isIntegerValue, isUnboxed, isUnlimited, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, stringValueOf, throwInvalidValueException, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static final OclAnyOclTypeOperation INSTANCE
Constructor Detail

OclAnyOclTypeOperation

public OclAnyOclTypeOperation()
Method Detail

evaluate

@Deprecated
@NonNull
public DomainType evaluate(@NonNull
                                              DomainEvaluator evaluator,
                                              @NonNull
                                              TypeId returnTypeId,
                                              @Nullable
                                              java.lang.Object sourceValue)
Deprecated. 

Description copied from interface: LibraryUnaryOperation
Return the result of evaluating the operation on an argument. An invalid return may be indicated by throwing an exception returning Java null or OCL invalid.

Specified by:
evaluate in interface LibraryUnaryOperation
Overrides:
evaluate in class AbstractUntypedUnaryOperation
Returns:
the evaluated value

evaluate

@NonNull
public DomainType evaluate(@NonNull
                                   DomainEvaluator evaluator,
                                   @Nullable
                                   java.lang.Object sourceVal)
Specified by:
evaluate in interface LibraryUntypedUnaryOperation
Specified by:
evaluate in class AbstractUntypedUnaryOperation