public class StandardLibraryImpl extends ElementImpl implements StandardLibrary, StandardLibraryInternal
The following features are implemented:
Type | Property and Description |
---|---|
Property |
basicGetOclInvalid |
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
StandardLibrary.StandardLibraryExtension
Modifier and Type | Field and Description |
---|---|
protected CompleteModelInternal |
completeModel |
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.
|
protected EnvironmentFactoryInternal |
environmentFactory |
protected boolean |
explicitDefaultStandardLibraryURI |
annotatingComments, ownedAnnotations, ownedComments, ownedExtensions
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
Modifier | Constructor and Description |
---|---|
protected |
StandardLibraryImpl() |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(Visitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
|
Operation |
basicGetOclInvalidOperation() |
Property |
basicGetOclInvalidProperty() |
InvalidType |
basicGetOclInvalidType() |
org.eclipse.emf.common.notify.NotificationChain |
basicSetOwningCompleteEnvironment(CompleteEnvironment newOwningCompleteEnvironment,
org.eclipse.emf.common.notify.NotificationChain msgs) |
void |
defineLibraryType(Class pivotType) |
void |
dispose() |
org.eclipse.emf.common.notify.NotificationChain |
eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
void |
eUnset(int featureID) |
java.lang.Iterable<? extends CompletePackage> |
getAllCompletePackages() |
Class |
getASClass(java.lang.String className)
Return the pivot model class for className with the Pivot Model.
|
BagType |
getBagType()
Obtains the generic instance of the BagType metatype, named
Bag(T).
|
PrimitiveType |
getBehavioralClass(java.lang.Class<?> instanceClass) |
PrimitiveType |
getBooleanType()
Obtains the instance of the PrimitiveType metatype, named
Boolean.
|
Class |
getClassType()
Obtains the single instance of the org.eclipse.ocl.pivot.Class metatype, named
Class.
|
CollectionType |
getCollectionType()
Obtains the generic instance of the CollectionType metatype, named
Collection(T).
|
CollectionType |
getCollectionType(Class containerType,
Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper) |
CollectionType |
getCollectionType(Class containerType,
Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
CompleteModelInternal |
getCompleteModel() |
java.lang.String |
getDefaultStandardLibraryURI() |
Class |
getEnumerationType()
Obtains the single instance of the EnumerationType metatype, named
Enumeration.
|
CompleteInheritance |
getInheritance(Class type)
Return the Inheritance dispatch table for a given type.
|
PrimitiveType |
getIntegerType()
Obtains the instance of the PrimitiveType metatype, named
Integer.
|
Class |
getLibraryType(java.lang.String typeName) |
MapType |
getMapType() |
MapType |
getMapType(Class containerType,
Type keyType,
Type valueType) |
Class |
getMetaclass(Type classType)
Return the instance of the Metaclass metatype whose class is classType.
|
Type |
getMetaType(Type instanceType)
Returns the meta-type of a given type.
|
Package |
getNsURIPackage(java.lang.String nsURI) |
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.
|
Class |
getOclEnumerationType()
Obtains the single instance of the Class metatype, named
OclEnumeration.
|
Operation |
getOclInvalidOperation() |
Property |
getOclInvalidProperty() |
InvalidType |
getOclInvalidType()
Obtains the single instance of the InvalidType metatype, named
OclInvalid.
|
Class |
getOclLambdaType() |
Class |
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 |
getOclStereotypeType()
Obtains the single instance of the OclStereotype metatype, named
OclStereotype.
|
Class |
getOclSummableType()
Obtains the single instance of the OclSummable metatype, named
OclAny.
|
Class |
getOclTupleType()
Obtains the single instance of the OclTupleType metatype, named
OclVoid.
|
Type |
getOclType(java.lang.String typeName) |
Class |
getOclTypeType() |
VoidType |
getOclVoidType()
Obtains the single instance of the VoidType metatype, named
OclVoid.
|
Element |
getOperationTemplateParameter(Operation anOperation,
int index) |
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).
|
CompleteEnvironment |
getOwningCompleteEnvironment() |
Package |
getPackage()
Obtains the package containing the library types
|
Type |
getPrimitiveType(PrimitiveTypeId typeId) |
PrimitiveType |
getRealType()
Obtains the instance of the PrimitiveType metatype, named
Real.
|
Class |
getRequiredLibraryType(java.lang.String typeName) |
Package |
getRootPackage(java.lang.String completeURIorName) |
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.
|
StandardLibraryInternal |
init(CompleteModelInternal completeModel) |
boolean |
isExplicitDefaultStandardLibraryURI() |
boolean |
isOrdered(Type sourceType) |
boolean |
isUnique(Type sourceType) |
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) |
void |
setDefaultStandardLibraryURI(java.lang.String defaultStandardLibraryURI) |
void |
setOwningCompleteEnvironment(CompleteEnvironment newOwningCompleteEnvironment) |
allOwnedElements, eInvoke, getAnnotatingComments, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue, toString
eBasicSetContainer, getESObject, getETarget, getImage, getTarget, getText, setESObject, setTarget, unloaded
eAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allOwnedElements, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
@Nullable public Property basicGetOclInvalidProperty
basicGetOclInvalidProperty
in interface StandardLibraryInternal
@NonNull public static final java.lang.String DEFAULT_OCL_STDLIB_URI
@NonNull protected java.lang.String defaultStandardLibraryURI
protected boolean explicitDefaultStandardLibraryURI
protected CompleteModelInternal completeModel
protected EnvironmentFactoryInternal environmentFactory
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ElementImpl
public CompleteEnvironment getOwningCompleteEnvironment()
getOwningCompleteEnvironment
in interface StandardLibrary
StandardLibrary.setOwningCompleteEnvironment(CompleteEnvironment)
,
PivotPackage.getStandardLibrary_OwningCompleteEnvironment()
,
CompleteEnvironment.getOwnedStandardLibrary()
public org.eclipse.emf.common.notify.NotificationChain basicSetOwningCompleteEnvironment(CompleteEnvironment newOwningCompleteEnvironment, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setOwningCompleteEnvironment(CompleteEnvironment newOwningCompleteEnvironment)
setOwningCompleteEnvironment
in interface StandardLibrary
newOwningCompleteEnvironment
- the new value of the 'Owning Complete Environment' container reference.StandardLibrary.getOwningCompleteEnvironment()
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd
in class ElementImpl
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class ElementImpl
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
eBasicRemoveFromContainerFeature
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class ElementImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class ElementImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class ElementImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class ElementImpl
public <R> R accept(@NonNull Visitor<R> visitor)
@Nullable public Operation basicGetOclInvalidOperation()
basicGetOclInvalidOperation
in interface StandardLibraryInternal
@Nullable public Property basicGetOclInvalidProperty()
basicGetOclInvalidProperty
in interface StandardLibraryInternal
@Nullable public InvalidType basicGetOclInvalidType()
basicGetOclInvalidType
in interface StandardLibraryInternal
public void defineLibraryType(Class pivotType)
defineLibraryType
in interface StandardLibraryInternal
public void dispose()
dispose
in interface StandardLibraryInternal
public Class getASClass(@NonNull java.lang.String className)
getASClass
in interface StandardLibraryInternal
@NonNull public java.lang.Iterable<? extends CompletePackage> getAllCompletePackages()
getAllCompletePackages
in interface StandardLibrary
@NonNull public BagType getBagType()
StandardLibrary
getBagType
in interface StandardLibraryInternal
getBagType
in interface StandardLibrary
@Nullable public PrimitiveType getBehavioralClass(@NonNull java.lang.Class<?> instanceClass)
getBehavioralClass
in interface StandardLibraryInternal
@NonNull public PrimitiveType getBooleanType()
StandardLibrary
getBooleanType
in interface StandardLibraryInternal
getBooleanType
in interface StandardLibrary
public Class getClassType()
StandardLibrary
getClassType
in interface StandardLibrary
@NonNull public CollectionType getCollectionType()
StandardLibrary
getCollectionType
in interface StandardLibraryInternal
getCollectionType
in interface StandardLibrary
@NonNull public CollectionType getCollectionType(Class containerType, @NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getCollectionType
in interface StandardLibrary
@NonNull public CollectionType getCollectionType(Class containerType, @NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getCollectionType
in interface StandardLibrary
@NonNull public CompleteModelInternal getCompleteModel()
getCompleteModel
in interface StandardLibraryInternal
@NonNull public java.lang.String getDefaultStandardLibraryURI()
getDefaultStandardLibraryURI
in interface StandardLibraryInternal
public Class getEnumerationType()
StandardLibrary
getEnumerationType
in interface StandardLibrary
@NonNull public CompleteInheritance getInheritance(Class type)
StandardLibrary
getInheritance
in interface StandardLibrary
@NonNull public PrimitiveType getIntegerType()
StandardLibrary
getIntegerType
in interface StandardLibraryInternal
getIntegerType
in interface StandardLibrary
public Class getLibraryType(@NonNull java.lang.String typeName)
getLibraryType
in interface StandardLibraryInternal
@NonNull public MapType getMapType()
getMapType
in interface StandardLibrary
@NonNull public MapType getMapType(Class containerType, @NonNull Type keyType, @NonNull Type valueType)
getMapType
in interface StandardLibrary
public Class getMetaclass(@NonNull Type classType)
StandardLibrary
getMetaclass
in interface StandardLibrary
public Type getMetaType(@NonNull Type instanceType)
StandardLibrary
getMetaType
in interface StandardLibrary
public Package getNsURIPackage(@NonNull java.lang.String nsURI)
getNsURIPackage
in interface StandardLibrary
@NonNull public AnyType getOclAnyType()
StandardLibrary
getOclAnyType
in interface StandardLibraryInternal
getOclAnyType
in interface StandardLibrary
public Class getOclComparableType()
StandardLibrary
getOclComparableType
in interface StandardLibrary
public Class getOclElementType()
StandardLibrary
getOclElementType
in interface StandardLibrary
public Class getOclEnumerationType()
StandardLibrary.StandardLibraryExtension
getOclEnumerationType
in interface StandardLibrary.StandardLibraryExtension
@NonNull public Operation getOclInvalidOperation()
getOclInvalidOperation
in interface StandardLibrary
@NonNull public Property getOclInvalidProperty()
getOclInvalidProperty
in interface StandardLibraryInternal
@NonNull public InvalidType getOclInvalidType()
StandardLibrary
getOclInvalidType
in interface StandardLibraryInternal
getOclInvalidType
in interface StandardLibrary
public Class getOclLambdaType()
getOclLambdaType
in interface StandardLibraryInternal
public Class getOclMessageType()
StandardLibrary
getOclMessageType
in interface StandardLibrary
@NonNull public SelfType getOclSelfType()
StandardLibrary
getOclSelfType
in interface StandardLibrary
public Class getOclStereotypeType()
StandardLibrary
getOclStereotypeType
in interface StandardLibrary
public Class getOclSummableType()
StandardLibrary
getOclSummableType
in interface StandardLibrary
public Class getOclTupleType()
StandardLibrary
getOclTupleType
in interface StandardLibrary
public Type getOclType(@NonNull java.lang.String typeName)
getOclType
in interface StandardLibrary
public Class getOclTypeType()
getOclTypeType
in interface StandardLibraryInternal
@NonNull public VoidType getOclVoidType()
StandardLibrary
getOclVoidType
in interface StandardLibraryInternal
getOclVoidType
in interface StandardLibrary
@Nullable public Element getOperationTemplateParameter(@NonNull Operation anOperation, int index)
getOperationTemplateParameter
in interface StandardLibrary
@NonNull public CollectionType getOrderedCollectionType()
StandardLibrary
getOrderedCollectionType
in interface StandardLibraryInternal
getOrderedCollectionType
in interface StandardLibrary
@NonNull public OrderedSetType getOrderedSetType()
StandardLibrary
getOrderedSetType
in interface StandardLibraryInternal
getOrderedSetType
in interface StandardLibrary
public Package getPackage()
StandardLibrary
getPackage
in interface StandardLibrary
@Nullable public Type getPrimitiveType(@NonNull PrimitiveTypeId typeId)
getPrimitiveType
in interface StandardLibrary
@NonNull public PrimitiveType getRealType()
StandardLibrary
getRealType
in interface StandardLibraryInternal
getRealType
in interface StandardLibrary
public Class getRequiredLibraryType(@NonNull java.lang.String typeName)
getRequiredLibraryType
in interface StandardLibraryInternal
public Package getRootPackage(@NonNull java.lang.String completeURIorName)
getRootPackage
in interface StandardLibrary
@NonNull public SequenceType getSequenceType()
StandardLibrary
getSequenceType
in interface StandardLibraryInternal
getSequenceType
in interface StandardLibrary
@NonNull public SetType getSetType()
StandardLibrary
getSetType
in interface StandardLibraryInternal
getSetType
in interface StandardLibrary
@NonNull public PrimitiveType getStringType()
StandardLibrary
getStringType
in interface StandardLibraryInternal
getStringType
in interface StandardLibrary
@NonNull public CollectionType getUniqueCollectionType()
StandardLibrary
getUniqueCollectionType
in interface StandardLibraryInternal
getUniqueCollectionType
in interface StandardLibrary
@NonNull public PrimitiveType getUnlimitedNaturalType()
StandardLibrary
getUnlimitedNaturalType
in interface StandardLibraryInternal
getUnlimitedNaturalType
in interface StandardLibrary
@NonNull public StandardLibraryInternal init(@NonNull CompleteModelInternal completeModel)
init
in interface StandardLibraryInternal
public boolean isExplicitDefaultStandardLibraryURI()
isExplicitDefaultStandardLibraryURI
in interface StandardLibraryInternal
public boolean isOrdered(Type sourceType)
public boolean isUnique(Type sourceType)
@Nullable public org.eclipse.emf.ecore.resource.Resource loadDefaultLibrary(@Nullable java.lang.String uri)
loadDefaultLibrary
in interface StandardLibraryInternal
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)
public void setDefaultStandardLibraryURI(@NonNull java.lang.String defaultStandardLibraryURI)
setDefaultStandardLibraryURI
in interface StandardLibraryInternal