|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.util.OCLStandardLibraryUtil
public final class OCLStandardLibraryUtil
Convenience utilities for working with the types defined by the OCL Standard Library.
See the Environment class for a description of the
generic type parameters of this class.
| Field Summary | |
|---|---|
static String |
PRODUCT_FIRST
The name of the tuple part carrying elements of the source collection in a product operation. |
static String |
PRODUCT_SECOND
The name of the tuple part carrying elements of the argument collection in a product operation. |
| Method Summary | ||
|---|---|---|
static
|
createAnyTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the OclAny
type of the OCL Standard library. |
|
static
|
createBagIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the pre-defined iterators of the Bag(T)
type of the OCL Standard library. |
|
static
|
createBagOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Bag(T)
type of the OCL Standard library. |
|
static
|
createBooleanOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Boolean
type of the OCL Standard library. |
|
static
|
createCollectionIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the pre-defined iterators of the Collection(T)
type of the OCL Standard library. |
|
static
|
createCollectionOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Collection(T)
type of the OCL Standard library. |
|
static
|
createIntegerOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Integer
type of the OCL Standard library. |
|
static
|
createMessageTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the OclMessage
type of the OCL Standard library. |
|
static
|
createOrderedSetIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the pre-defined iterators of the OrderedSet(T)
type of the OCL Standard library. |
|
static
|
createOrderedSetOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the OrderedSet(T)
type of the OCL Standard library. |
|
static
|
createRealOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Real
type of the OCL Standard library. |
|
static
|
createSequenceIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the pre-defined iterators of the Sequence(T)
type of the OCL Standard library. |
|
static
|
createSequenceOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Sequence(T)
type of the OCL Standard library. |
|
static
|
createSetIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the pre-defined iterators of the Set(T)
type of the OCL Standard library. |
|
static
|
createSetOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the Set(T)
type of the OCL Standard library. |
|
static
|
createStringOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the String
type of the OCL Standard library. |
|
static
|
createTypeTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the OclType
type of the OCL Standard library. |
|
static
|
createUnlimitedNaturalOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Utility method creating the operations of the UnlimitedNatural
type of the OCL Standard library. |
|
static int |
getOclAnyOperationCode(String operName)
Obtains the numeric code of the specified OclAny operaiton. |
|
static int |
getOperationCode(String operName)
Obtains the numeric code of the specified pre-defined (by OCL) operaiton. |
|
static String |
getOperationName(int opcode)
Returns the operation name corresponding to the opcode. |
|
static
|
getResultTypeOf(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env,
C sourceType,
int opcode,
List<? extends TypedElement<C>> args)
Obtains the result type of the specified operation from the OCL Standard Library. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PRODUCT_FIRST
public static final String PRODUCT_SECOND
| Method Detail |
|---|
public static int getOperationCode(String operName)
operName - the operation name
PredefinedType
interface), or 0 if the operation name is not a
pre-defined operationgetOperationName(int)public static int getOclAnyOperationCode(String operName)
operName - the operation name
PredefinedType
interface), or 0 if the operation name is not an
operation of the OclAny typepublic static String getOperationName(int opcode)
opcode - an operation code
null if
the code is not one defined by the PredefinedType interfacegetOperationCode(String)
public static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> C getResultTypeOf(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env,
C sourceType,
int opcode,
List<? extends TypedElement<C>> args)
throws SemanticException
env - an OCL environment (indicating the metamodel binding)sourceType - the type of the operation source (object on which
the operation is called)opcode - the operation's codeargs - the arguments of the operation call, as expressions or
variables
SemanticException - if any of the argument types does not correspond
to the source type and/or expected parameter types of the operationgetOperationCode(String)public static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createAnyTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
OclAny
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the OclAny.
env - an OCL environment
OclAny operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createTypeTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
OclType
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the OclType.
env - an OCL environment
OclType operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createMessageTypeOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
OclMessage
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the OclMessage.
env - an OCL environment
OclMessage operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createStringOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
String
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the String.
env - an OCL environment
String operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createRealOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Real
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Real.
env - an OCL environment
Real operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createIntegerOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Integer
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Integer.
env - an OCL environment
Integer operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createUnlimitedNaturalOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
UnlimitedNatural
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Integer.
env - an OCL environment
UnlimitedNatural operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createBooleanOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Boolean
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Boolean.
env - an OCL environment
Boolean operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createCollectionOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Collection(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Collection(T).
env - an OCL environment
Collection(T) operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createSetOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Set(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Set(T).
env - an OCL environment
Set(T) operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createOrderedSetOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
OrderedSet(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the OrderedSet(T).
env - an OCL environment
OrderedSet(T) operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createBagOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Bag(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Bag(T).
env - an OCL environment
Bag(T) operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createSequenceOperations(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Sequence(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Sequence(T).
env - an OCL environment
Sequence(T) operationspublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createCollectionIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Collection(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Collection(T).
env - an OCL environment
Collection(T) typepublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createSetIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Set(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Set(T).
env - an OCL environment
Set(T) typepublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createOrderedSetIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
OrderedSet(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the OrderedSet(T).
env - an OCL environment
OrderedSet(T) typepublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createBagIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Bag(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Bag(T).
env - an OCL environment
Bag(T) typepublic static <PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> List<O> createSequenceIterators(Environment<PK,C,O,P,EL,PM,ST,COA,SSA,CT,CLS,E> env)
Sequence(T)
type of the OCL Standard library. This is useful for implementors of
metamodel bindings (Environments) to initialize their
implementations of the Sequence(T).
env - an OCL environment
Sequence(T) type
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||