本文整理汇总了Java中org.eclipse.uml2.types.TypesPackage类的典型用法代码示例。如果您正苦于以下问题:Java TypesPackage类的具体用法?Java TypesPackage怎么用?Java TypesPackage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TypesPackage类属于org.eclipse.uml2.types包,在下文中一共展示了TypesPackage类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStaticMetamodels
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
@Override
public Set<IHawkMetaModelResource> getStaticMetamodels() {
Set<IHawkMetaModelResource> resources = new HashSet<>();
resources.add(new EMFMetaModelResource(EcorePackage.eINSTANCE.eResource(), emfWFactory, this));
resources.add(new EMFMetaModelResource(TypesPackage.eINSTANCE.eResource(), emfWFactory, this));
resources.add(new EMFMetaModelResource(XMLTypePackage.eINSTANCE.eResource(), emfWFactory, this));
resources.add(new EMFMetaModelResource(UMLPackage.eINSTANCE.eResource(), emfWFactory, this));
resources.add(new EMFMetaModelResource(StandardPackage.eINSTANCE.eResource(), umlWFactory, this));
try {
final Resource rEcoreProfile = resourceSet.createResource(URI.createURI(UMLResource.ECORE_PROFILE_URI));
rEcoreProfile.load(null);
final EMFMetaModelResource hrEcoreProfile = new EMFMetaModelResource(rEcoreProfile, umlWFactory, this);
resources.add(hrEcoreProfile);
final Resource rUMLProfile = resourceSet.createResource(URI.createURI(UMLResource.UML2_PROFILE_URI));
rUMLProfile.load(null);
final EMFMetaModelResource hrUMLProfile = new EMFMetaModelResource(rUMLProfile, umlWFactory, this);
resources.add(hrUMLProfile);
} catch (IOException e) {
LOGGER.error("Error while loading predefined profiles", e);
}
return resources;
}
示例2: init
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link UsecasePackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static UsecasePackage init() {
if (isInited) return (UsecasePackage)EPackage.Registry.INSTANCE.getEPackage(UsecasePackage.eNS_URI);
// Obtain or create and register package
UsecasePackageImpl theUsecasePackage = (UsecasePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UsecasePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UsecasePackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
TextualCommonsPackage.eINSTANCE.eClass();
TypesPackage.eINSTANCE.eClass();
UMLPackage.eINSTANCE.eClass();
// Create package meta-data objects
theUsecasePackage.createPackageContents();
// Initialize created meta-data
theUsecasePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theUsecasePackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(UsecasePackage.eNS_URI, theUsecasePackage);
return theUsecasePackage;
}
示例3: init
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link CmpPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static CmpPackage init() {
if (isInited) return (CmpPackage)EPackage.Registry.INSTANCE.getEPackage(CmpPackage.eNS_URI);
// Obtain or create and register package
CmpPackageImpl theCmpPackage = (CmpPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CmpPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CmpPackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
TextualCommonsPackage.eINSTANCE.eClass();
TypesPackage.eINSTANCE.eClass();
UMLPackage.eINSTANCE.eClass();
// Create package meta-data objects
theCmpPackage.createPackageContents();
// Initialize created meta-data
theCmpPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theCmpPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(CmpPackage.eNS_URI, theCmpPackage);
return theCmpPackage;
}
示例4: init
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link ClsPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static ClsPackage init() {
if (isInited) return (ClsPackage)EPackage.Registry.INSTANCE.getEPackage(ClsPackage.eNS_URI);
// Obtain or create and register package
ClsPackageImpl theClsPackage = (ClsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ClsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ClsPackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
TextualCommonsPackage.eINSTANCE.eClass();
TypesPackage.eINSTANCE.eClass();
UMLPackage.eINSTANCE.eClass();
// Create package meta-data objects
theClsPackage.createPackageContents();
// Initialize created meta-data
theClsPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theClsPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(ClsPackage.eNS_URI, theClsPackage);
return theClsPackage;
}
示例5: init
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link TextualCommonsPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static TextualCommonsPackage init() {
if (isInited) return (TextualCommonsPackage)EPackage.Registry.INSTANCE.getEPackage(TextualCommonsPackage.eNS_URI);
// Obtain or create and register package
TextualCommonsPackageImpl theTextualCommonsPackage = (TextualCommonsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TextualCommonsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TextualCommonsPackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
TypesPackage.eINSTANCE.eClass();
UMLPackage.eINSTANCE.eClass();
// Create package meta-data objects
theTextualCommonsPackage.createPackageContents();
// Initialize created meta-data
theTextualCommonsPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theTextualCommonsPackage.freeze();
// register setting delegate implementations
org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(
"http://cooperate-project.de/ecore/settingdelegate/duplicatefiltering",
new de.cooperateproject.modeling.textual.common.metamodel.textualCommons.util.DuplicatedSetFilteringSettingDelegateFactory()
);
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(TextualCommonsPackage.eNS_URI, theTextualCommonsPackage);
return theTextualCommonsPackage;
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:45,代码来源:TextualCommonsPackageImpl.java
示例6: init
import org.eclipse.uml2.types.TypesPackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link DummyPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static DummyPackage init() {
if (isInited) return (DummyPackage)EPackage.Registry.INSTANCE.getEPackage(DummyPackage.eNS_URI);
// Obtain or create and register package
DummyPackageImpl theDummyPackage = (DummyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DummyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DummyPackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
TextualCommonsPackage.eINSTANCE.eClass();
TypesPackage.eINSTANCE.eClass();
UMLPackage.eINSTANCE.eClass();
// Create package meta-data objects
theDummyPackage.createPackageContents();
// Initialize created meta-data
theDummyPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theDummyPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(DummyPackage.eNS_URI, theDummyPackage);
return theDummyPackage;
}