org.eclipse.ocl.examples.library.executor
Class DomainReflectivePackage

java.lang.Object
  extended by org.eclipse.ocl.examples.library.executor.ExecutorPackage
      extended by org.eclipse.ocl.examples.library.executor.ReflectivePackage
          extended by org.eclipse.ocl.examples.library.executor.DomainReflectivePackage
All Implemented Interfaces:
DomainElement, DomainNamedElement, DomainNamespace, DomainPackage, Nameable

public class DomainReflectivePackage
extends ReflectivePackage

DomainExecutorPackage uses the limited Domain interfaces to construct a package description for use in contexts where no explicit ExecutorPackage is available. This typically occurs when a dynamic Ecore model is used but no MetaModelManager is accessible.


Field Summary
protected  DomainPackage domainPackage
           
protected  DomainStandardLibrary standardLibrary
           
 
Fields inherited from class org.eclipse.ocl.examples.library.executor.ReflectivePackage
types
 
Fields inherited from class org.eclipse.ocl.examples.library.executor.ExecutorPackage
name, nsPrefix, nsURI, packageId
 
Constructor Summary
DomainReflectivePackage(DomainStandardLibrary standardLibrary, DomainPackage domainPackage)
           
 
Method Summary
protected  ReflectiveType createExecutorType(DomainType domainType)
           
protected  java.lang.Iterable<? extends DomainType> getDomainTypes()
           
 java.util.List<? extends DomainPackage> getNestedPackage()
           
 DomainPackage getNestingPackage()
           
 PackageId getPackageId()
           
protected  DomainStandardLibrary getStandardLibrary()
           
 
Methods inherited from class org.eclipse.ocl.examples.library.executor.ReflectivePackage
computeClasses, getInheritance, getOwnedType
 
Methods inherited from class org.eclipse.ocl.examples.library.executor.ExecutorPackage
getElementId, getEPackage, getName, getNsPrefix, getNsURI, getOwnedRule, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

standardLibrary

@NonNull
protected final DomainStandardLibrary standardLibrary

domainPackage

@NonNull
protected final DomainPackage domainPackage
Constructor Detail

DomainReflectivePackage

public DomainReflectivePackage(@NonNull
                               DomainStandardLibrary standardLibrary,
                               @NonNull
                               DomainPackage domainPackage)
Method Detail

createExecutorType

@NonNull
protected ReflectiveType createExecutorType(@NonNull
                                                    DomainType domainType)
Specified by:
createExecutorType in class ReflectivePackage

getDomainTypes

@NonNull
protected java.lang.Iterable<? extends DomainType> getDomainTypes()
Specified by:
getDomainTypes in class ReflectivePackage

getNestedPackage

public java.util.List<? extends DomainPackage> getNestedPackage()

getNestingPackage

public DomainPackage getNestingPackage()

getPackageId

@NonNull
public PackageId getPackageId()
Specified by:
getPackageId in interface DomainPackage
Overrides:
getPackageId in class ExecutorPackage

getStandardLibrary

@NonNull
protected DomainStandardLibrary getStandardLibrary()
Specified by:
getStandardLibrary in class ReflectivePackage