本文整理匯總了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();
}