本文整理汇总了Java中org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory类的典型用法代码示例。如果您正苦于以下问题:Java OCLInvocationDelegateFactory类的具体用法?Java OCLInvocationDelegateFactory怎么用?Java OCLInvocationDelegateFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OCLInvocationDelegateFactory类属于org.eclipse.ocl.examples.pivot.delegate包,在下文中一共展示了OCLInvocationDelegateFactory类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //导入依赖的package包/类
public void validate(View model) {
// initialize OCL
org.eclipse.ocl.examples.pivot.OCL.initialize(null);
String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLInvocationDelegateFactory.Global());
EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLSettingDelegateFactory.Global());
EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
new OCLValidationDelegateFactory.Global());
OCLinEcoreStandaloneSetup.doSetup();
// install the OCL standard library
OCLstdlib.install();
// do diagnostic
diag = Diagnostician.INSTANCE.validate(model);
modelname = model.getID();
}
示例2: initializeOCL
import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //导入依赖的package包/类
private static void initializeOCL() {
// initialize OCL
// register Pivot globally (resourceSet == null)
org.eclipse.ocl.examples.pivot.OCL.initialize(null);
String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLInvocationDelegateFactory.Global());
EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLSettingDelegateFactory.Global());
EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
new OCLValidationDelegateFactory.Global());
OCLinEcoreStandaloneSetup.doSetup();
// install the OCL Standard library
//
// using Eclipse Indigo
//
// org.eclipse.ocl.examples.library.oclstdlib.OCLstdlib.install();
// using Eclipse Juno
//
org.eclipse.ocl.examples.pivot.model.OCLstdlib.install();
}
示例3: initializeOCL
import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //导入依赖的package包/类
/**
* Initializes OCL Pivot in case this is used by a metamodel.
*/
private static void initializeOCL() {
// Register Pivot globally (resourceSet == null).
org.eclipse.ocl.examples.pivot.OCL.initialize(null);
String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLInvocationDelegateFactory.Global());
EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLSettingDelegateFactory.Global());
EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
new OCLValidationDelegateFactory.Global());
OCLinEcoreStandaloneSetup.doSetup();
org.eclipse.ocl.examples.pivot.model.OCLstdlib.install();
}