本文整理汇总了Java中org.eclipse.dd.dc.DcPackage.eINSTANCE方法的典型用法代码示例。如果您正苦于以下问题:Java DcPackage.eINSTANCE方法的具体用法?Java DcPackage.eINSTANCE怎么用?Java DcPackage.eINSTANCE使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.dd.dc.DcPackage
的用法示例。
在下文中一共展示了DcPackage.eINSTANCE方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 Securebpmn2Package#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
* @generated
*/
public static Securebpmn2Package init() {
if (isInited)
return (Securebpmn2Package) EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI);
// Obtain or create and register package
Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new Securebpmn2PackageImpl());
isInited = true;
// Obtain or create and register interdependencies
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theSecurebpmn2Package.loadPackage();
theBpmn2Package.loadPackage();
// Create package meta-data objects
theBpmnDiPackage.createPackageContents();
theDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theBpmnDiPackage.initializePackageContents();
theDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theSecurebpmn2Package.fixPackageContents();
theBpmn2Package.fixPackageContents();
// Mark meta-data to indicate it can't be changed
theSecurebpmn2Package.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(Securebpmn2Package.eNS_URI,
theSecurebpmn2Package);
return theSecurebpmn2Package;
}
示例2: init
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 DiPackage#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 DiPackage init() {
if (isInited)
return (DiPackage) EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI);
// Obtain or create and register package
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new DiPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI)
: Securebpmn2Package.eINSTANCE);
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theSecurebpmn2Package.loadPackage();
theBpmn2Package.loadPackage();
// Create package meta-data objects
theDiPackage.createPackageContents();
theBpmnDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theDiPackage.initializePackageContents();
theBpmnDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theSecurebpmn2Package.fixPackageContents();
theBpmn2Package.fixPackageContents();
// Register package validator
EValidator.Registry.INSTANCE.put(theDiPackage,
new EValidator.Descriptor() {
public EValidator getEValidator() {
return DiValidator.INSTANCE;
}
});
// Mark meta-data to indicate it can't be changed
theDiPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(DiPackage.eNS_URI, theDiPackage);
return theDiPackage;
}
示例3: init
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 BpmnDiPackage#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 BpmnDiPackage init() {
if (isInited)
return (BpmnDiPackage) EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI);
// Obtain or create and register package
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new BpmnDiPackageImpl());
isInited = true;
// Obtain or create and register interdependencies
Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI)
: Securebpmn2Package.eINSTANCE);
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theSecurebpmn2Package.loadPackage();
theBpmn2Package.loadPackage();
// Create package meta-data objects
theBpmnDiPackage.createPackageContents();
theDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theBpmnDiPackage.initializePackageContents();
theDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theSecurebpmn2Package.fixPackageContents();
theBpmn2Package.fixPackageContents();
// Mark meta-data to indicate it can't be changed
theBpmnDiPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(BpmnDiPackage.eNS_URI, theBpmnDiPackage);
return theBpmnDiPackage;
}
示例4: init
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 Bpmn2Package#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
* @generated
*/
public static Bpmn2Package init() {
if (isInited)
return (Bpmn2Package) EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI);
// Obtain or create and register package
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new Bpmn2PackageImpl());
isInited = true;
// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Securebpmn2Package.eNS_URI)
: Securebpmn2Package.eINSTANCE);
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theBpmn2Package.loadPackage();
theSecurebpmn2Package.loadPackage();
// Create package meta-data objects
theBpmnDiPackage.createPackageContents();
theDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theBpmnDiPackage.initializePackageContents();
theDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theBpmn2Package.fixPackageContents();
theSecurebpmn2Package.fixPackageContents();
// Mark meta-data to indicate it can't be changed
theBpmn2Package.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(Bpmn2Package.eNS_URI, theBpmn2Package);
return theBpmn2Package;
}
示例5: initGen
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 DiPackage#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 DiPackage initGen() {
if (isInited)
return (DiPackage) EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI);
// Obtain or create and register package
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new DiPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theBpmn2Package.loadPackage();
// Create package meta-data objects
theDiPackage.createPackageContents();
theBpmnDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theDiPackage.initializePackageContents();
theBpmnDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theBpmn2Package.fixPackageContents();
// Register package validator
EValidator.Registry.INSTANCE.put(theDiPackage, new EValidator.Descriptor() {
public EValidator getEValidator() {
return DiValidator.INSTANCE;
}
});
// Mark meta-data to indicate it can't be changed
theDiPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(DiPackage.eNS_URI, theDiPackage);
return theDiPackage;
}
示例6: initGen
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 BpmnDiPackage#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 BpmnDiPackage initGen() {
if (isInited)
return (BpmnDiPackage) EPackage.Registry.INSTANCE.getEPackage(BpmnDiPackage.eNS_URI);
// Obtain or create and register package
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new BpmnDiPackageImpl());
isInited = true;
// Obtain or create and register interdependencies
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theBpmn2Package.loadPackage();
// Create package meta-data objects
theBpmnDiPackage.createPackageContents();
theDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theBpmnDiPackage.initializePackageContents();
theDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theBpmn2Package.fixPackageContents();
// Mark meta-data to indicate it can't be changed
theBpmnDiPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(BpmnDiPackage.eNS_URI, theBpmnDiPackage);
return theBpmnDiPackage;
}
示例7: initGen
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的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 Bpmn2Package#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
* @generated
*/
public static Bpmn2Package initGen() {
if (isInited)
return (Bpmn2Package) EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI);
// Obtain or create and register package
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
: new Bpmn2PackageImpl());
isInited = true;
// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theBpmn2Package.loadPackage();
// Create package meta-data objects
theBpmnDiPackage.createPackageContents();
theDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theBpmnDiPackage.initializePackageContents();
theDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theBpmn2Package.fixPackageContents();
// Mark meta-data to indicate it can't be changed
theBpmn2Package.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(Bpmn2Package.eNS_URI, theBpmn2Package);
return theBpmn2Package;
}
示例8: getEPackage
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的package包/类
/**
* Returns the package of this validator switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EPackage getEPackage() {
return DcPackage.eINSTANCE;
}
示例9: DcAdapterFactory
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的package包/类
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DcAdapterFactory() {
if (modelPackage == null) {
modelPackage = DcPackage.eINSTANCE;
}
}
示例10: DcSwitch
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的package包/类
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DcSwitch() {
if (modelPackage == null) {
modelPackage = DcPackage.eINSTANCE;
}
}
示例11: getPackage
import org.eclipse.dd.dc.DcPackage; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static DcPackage getPackage() {
return DcPackage.eINSTANCE;
}