public abstract class PivotStandardLibrary extends AbstractStandardLibrary
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_OCL_STDLIB_URI
The URI used by default for the MDT/OCL Standard Library.
|
protected java.lang.String |
defaultStandardLibraryURI
The URI to provide the default Standard Library.
|
Constructor and Description |
---|
PivotStandardLibrary() |
Modifier and Type | Method and Description |
---|---|
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. |
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. |
VoidType |
getOclVoidType()
Obtains the single instance of the
VoidType metatype, named
OclVoid. |
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 <T extends TemplateableElement> |
resolveRequiredSimpleType(java.lang.Class<T> requiredClassType,
java.lang.String name) |
protected <T extends TemplateableElement> |
resolveRequiredTemplateableType(java.lang.Class<T> requiredClassType,
java.lang.String name,
int parameterCount) |
conformsToCollectionType, conformsToLambdaType, conformsToTupleType, getBagType, getCollectionType, getCollectionType, getEnumeration, getMetaType, getNestedPackage, getNestedType, getNsURIPackage, getOperationTemplateParameter, getOrderedSetType, getPrimitiveType, getRootPackage, getSequenceType, getSetType, isEqualToCollectionType, isEqualToTupleType, weakGet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBagType, getInheritance, getMetaclass, getOclType, getOrderedSetType, getSequenceType, getSetType
@NonNull public static final java.lang.String DEFAULT_OCL_STDLIB_URI
@NonNull protected java.lang.String defaultStandardLibraryURI
protected void defineLibraryType(Type pivotType)
public void dispose()
dispose
in class AbstractStandardLibrary
@NonNull public BagType getBagType()
DomainStandardLibrary
BagType
metatype, named
Bag(T).BagType
)@NonNull public PrimitiveType getBooleanType()
DomainStandardLibrary
PrimitiveType
metatype, named
Boolean.PrimitiveType
)@NonNull public Class getClassType()
@NonNull public CollectionType getCollectionType()
DomainStandardLibrary
CollectionType
metatype, named
Collection(T).CollectionType
)@NonNull public Class getEnumerationType()
DomainStandardLibrary
EnumerationType
metatype, named
Enumeration.Enumeration
)@NonNull public PrimitiveType getIntegerType()
DomainStandardLibrary
PrimitiveType
metatype, named
Integer.PrimitiveType
)public Type getLibraryType(@NonNull java.lang.String typeName)
@NonNull public Metaclass getMetaclassType()
DomainStandardLibrary
DomainMetaclass
metatype, named
Metaclass.Metaclass
)@NonNull public AnyType getOclAnyType()
DomainStandardLibrary
AnyType
metatype, named
OclAny.AnyType
)@NonNull public Class getOclComparableType()
DomainStandardLibrary
OclComparable
metatype, named
OclAny.Class
)@NonNull public Class getOclElementType()
DomainStandardLibrary
Class
metatype, named
OclElement.Class
)@NonNull public InvalidType getOclInvalidType()
DomainStandardLibrary
InvalidType
metatype, named
OclInvalid.InvalidType
)@NonNull public Class getOclLambdaType()
public Type getOclMessageType()
DomainStandardLibrary
MessageType
metatype, named
OclMessage.MessageType
)@NonNull public SelfType getOclSelfType()
DomainStandardLibrary
OclSelf
pseudo-metatype, named
OclSelf.SelfType
)@NonNull public Class getOclSummableType()
DomainStandardLibrary
OclSummable
metatype, named
OclAny.Class
)@NonNull public Class getOclTupleType()
DomainStandardLibrary
OclTupleType
metatype, named
OclVoid.Class
)@NonNull public VoidType getOclVoidType()
DomainStandardLibrary
VoidType
metatype, named
OclVoid.VoidType
)@NonNull public OrderedSetType getOrderedSetType()
DomainStandardLibrary
OrderedSetType
metatype, named
OrderedSet(T).OrderedSetType
)@NonNull public PrimitiveType getRealType()
DomainStandardLibrary
PrimitiveType
metatype, named
Real.PrimitiveType
)@NonNull public Type getRequiredLibraryType(@NonNull java.lang.String typeName)
@NonNull public SequenceType getSequenceType()
DomainStandardLibrary
SequenceType
metatype, named
Sequence(T).SequenceType
)@NonNull public SetType getSetType()
DomainStandardLibrary
SetType
metatype, named
Set(T).SetType
)@NonNull public PrimitiveType getStringType()
DomainStandardLibrary
PrimitiveType
metatype, named
String.PrimitiveType
)@NonNull public CollectionType getUniqueCollectionType()
DomainStandardLibrary
UniqueCollection
metatype, named
Set(T).CollectionType
)@NonNull public PrimitiveType getUnlimitedNaturalType()
DomainStandardLibrary
PrimitiveType
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)