|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.domain.types.AbstractStandardLibrary
org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary
public abstract class PivotStandardLibrary
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OCL_STDLIB_URI
The URI used by default for the OCL Standard Library. |
protected java.lang.String |
defaultStandardLibraryURI
The URI to provide the default Standard Library. |
| Constructor Summary | |
|---|---|
PivotStandardLibrary()
|
|
| Method Summary | ||
|---|---|---|
Operation |
basicGetOclInvalidOperation()
|
|
Property |
basicGetOclInvalidProperty()
|
|
InvalidType |
basicGetOclInvalidType()
|
|
protected void |
defineLibraryType(Type pivotType)
Names of all iterations in the libraries. |
|
void |
dispose()
|
|
BagType |
getBagType()
Obtains the generic instance of the BagType metatype, named
Bag(T). |
|
PrimitiveType |
getBooleanType()
Obtains the instance of the PrimitiveType metatype, named
Boolean. |
|
Class |
getClassType()
|
|
CollectionType |
getCollectionType()
Obtains the generic instance of the CollectionType metatype, named
Collection(T). |
|
Class |
getEnumerationType()
Obtains the single instance of the EnumerationType metatype, named
Enumeration. |
|
PrimitiveType |
getIntegerType()
Obtains the instance of the PrimitiveType metatype, named
Integer. |
|
Type |
getLibraryType(java.lang.String typeName)
|
|
Metaclass<?> |
getMetaclassType()
Obtains the single instance of the DomainMetaclass metatype, named
Metaclass. |
|
AnyType |
getOclAnyType()
Obtains the single instance of the AnyType metatype, named
OclAny. |
|
Class |
getOclComparableType()
Obtains the single instance of the OclComparable metatype, named
OclAny. |
|
Class |
getOclElementType()
Obtains the single instance of the Class metatype, named
OclElement. |
|
Operation |
getOclInvalidOperation()
|
|
Property |
getOclInvalidProperty()
|
|
InvalidType |
getOclInvalidType()
Obtains the single instance of the InvalidType metatype, named
OclInvalid. |
|
Class |
getOclLambdaType()
|
|
Type |
getOclMessageType()
Obtains the generic instance of the MessageType metatype, named
OclMessage. |
|
SelfType |
getOclSelfType()
Obtains the single instance of the OclSelf pseudo-metatype, named
OclSelf. |
|
Class |
getOclSummableType()
Obtains the single instance of the OclSummable metatype, named
OclAny. |
|
Class |
getOclTupleType()
Obtains the single instance of the OclTupleType metatype, named
OclVoid. |
|
Class |
getOclTypeType()
|
|
VoidType |
getOclVoidType()
Obtains the single instance of the VoidType metatype, named
OclVoid. |
|
CollectionType |
getOrderedCollectionType()
Obtains the generic instance of the OrderedCollection metatype, named
OrderedCollection(T). |
|
OrderedSetType |
getOrderedSetType()
Obtains the generic instance of the OrderedSetType metatype, named
OrderedSet(T). |
|
PrimitiveType |
getRealType()
Obtains the instance of the PrimitiveType metatype, named
Real. |
|
Type |
getRequiredLibraryType(java.lang.String typeName)
|
|
SequenceType |
getSequenceType()
Obtains the generic instance of the SequenceType metatype, named
Sequence(T). |
|
SetType |
getSetType()
Obtains the generic instance of the SetType metatype, named
Set(T). |
|
PrimitiveType |
getStringType()
Obtains the instance of the PrimitiveType metatype, named
String. |
|
CollectionType |
getUniqueCollectionType()
Obtains the generic instance of the UniqueCollection metatype, named
Set(T). |
|
PrimitiveType |
getUnlimitedNaturalType()
Obtains the instance of the PrimitiveType metatype,
named UnlimitedNatural. |
|
boolean |
isOrdered(Type sourceType)
|
|
boolean |
isUnique(Type sourceType)
|
|
protected abstract org.eclipse.emf.ecore.resource.Resource |
loadDefaultLibrary(java.lang.String uri)
|
|
void |
resetLibrary()
|
|
protected
|
resolveRequiredSimpleType(java.lang.Class<T> requiredClassType,
java.lang.String name)
|
|
protected
|
resolveRequiredTemplateableType(java.lang.Class<T> requiredClassType,
java.lang.String name,
int parameterCount)
|
|
| Methods inherited from class org.eclipse.ocl.examples.domain.types.AbstractStandardLibrary |
|---|
conformsToCollectionType, conformsToLambdaType, conformsToTupleType, getAllPackages, getBagType, getCollectionType, getCollectionType, getEnumeration, getMetaType, getNestedPackage, getNestedType, getNsURIPackage, getOperationTemplateParameter, getOrderedSetType, getPrimitiveType, getRootPackage, getSequenceType, getSetType, isEqualToCollectionType, isEqualToTupleType, weakGet |
| 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.elements.DomainStandardLibrary |
|---|
getBagType, getInheritance, getMetaclass, getOclType, getOrderedSetType, getSequenceType, getSetType |
| Field Detail |
|---|
@NonNull public static final java.lang.String DEFAULT_OCL_STDLIB_URI
@NonNull protected java.lang.String defaultStandardLibraryURI
| Constructor Detail |
|---|
public PivotStandardLibrary()
| Method Detail |
|---|
protected void defineLibraryType(@NonNull
Type pivotType)
@Nullable public Operation basicGetOclInvalidOperation()
@Nullable public Property basicGetOclInvalidProperty()
@Nullable public InvalidType basicGetOclInvalidType()
public void dispose()
dispose in class AbstractStandardLibrary@NonNull public BagType getBagType()
DomainStandardLibraryBagType metatype, named
Bag(T).
BagType)@NonNull public PrimitiveType getBooleanType()
DomainStandardLibraryPrimitiveType metatype, named
Boolean.
PrimitiveType)@NonNull public Class getClassType()
@NonNull public CollectionType getCollectionType()
DomainStandardLibraryCollectionType metatype, named
Collection(T).
CollectionType)@NonNull public Class getEnumerationType()
DomainStandardLibraryEnumerationType metatype, named
Enumeration.
Enumeration)@NonNull public PrimitiveType getIntegerType()
DomainStandardLibraryPrimitiveType metatype, named
Integer.
PrimitiveType)
public Type getLibraryType(@NonNull
java.lang.String typeName)
@NonNull public Metaclass<?> getMetaclassType()
DomainStandardLibraryDomainMetaclass metatype, named
Metaclass.
Metaclass)@NonNull public AnyType getOclAnyType()
DomainStandardLibraryAnyType metatype, named
OclAny.
AnyType)@NonNull public Class getOclComparableType()
DomainStandardLibraryOclComparable metatype, named
OclAny.
Class)@NonNull public Class getOclElementType()
DomainStandardLibraryClass metatype, named
OclElement.
Class)@NonNull public Operation getOclInvalidOperation()
@NonNull public Property getOclInvalidProperty()
@NonNull public InvalidType getOclInvalidType()
DomainStandardLibraryInvalidType metatype, named
OclInvalid.
InvalidType)@NonNull public Class getOclLambdaType()
public Type getOclMessageType()
DomainStandardLibraryMessageType metatype, named
OclMessage.
MessageType)@NonNull public SelfType getOclSelfType()
DomainStandardLibraryOclSelf pseudo-metatype, named
OclSelf.
SelfType)@NonNull public Class getOclSummableType()
DomainStandardLibraryOclSummable metatype, named
OclAny.
Class)@NonNull public Class getOclTupleType()
DomainStandardLibraryOclTupleType metatype, named
OclVoid.
Class)@NonNull public Class getOclTypeType()
@NonNull public VoidType getOclVoidType()
DomainStandardLibraryVoidType metatype, named
OclVoid.
VoidType)@NonNull public CollectionType getOrderedCollectionType()
DomainStandardLibraryOrderedCollection metatype, named
OrderedCollection(T).
CollectionType)@NonNull public OrderedSetType getOrderedSetType()
DomainStandardLibraryOrderedSetType metatype, named
OrderedSet(T).
OrderedSetType)@NonNull public PrimitiveType getRealType()
DomainStandardLibraryPrimitiveType metatype, named
Real.
PrimitiveType)
@NonNull
public Type getRequiredLibraryType(@NonNull
java.lang.String typeName)
@NonNull public SequenceType getSequenceType()
DomainStandardLibrarySequenceType metatype, named
Sequence(T).
SequenceType)@NonNull public SetType getSetType()
DomainStandardLibrarySetType metatype, named
Set(T).
SetType)@NonNull public PrimitiveType getStringType()
DomainStandardLibraryPrimitiveType metatype, named
String.
PrimitiveType)@NonNull public CollectionType getUniqueCollectionType()
DomainStandardLibraryUniqueCollection metatype, named
Set(T).
CollectionType)@NonNull public PrimitiveType getUnlimitedNaturalType()
DomainStandardLibraryPrimitiveType metatype,
named UnlimitedNatural.
PrimitiveType)public boolean isOrdered(Type sourceType)
public boolean isUnique(Type sourceType)
protected abstract org.eclipse.emf.ecore.resource.Resource loadDefaultLibrary(java.lang.String uri)
public void resetLibrary()
@NonNull
protected <T extends TemplateableElement> T resolveRequiredSimpleType(@NonNull
java.lang.Class<T> requiredClassType,
@NonNull
java.lang.String name)
@NonNull
protected <T extends TemplateableElement> T resolveRequiredTemplateableType(@NonNull
java.lang.Class<T> requiredClassType,
@NonNull
java.lang.String name,
int parameterCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||