public interface IlrRuleModel
extends org.eclipse.emf.ecore.EObject
This class follows the singleton design pattern and is accessed from the
method IlrStudioModelPlugin.getRuleModel().
It holds all the IlrElement of the Rule
Studio model, and in particular all the
IlrRuleProject.
This class is also used to access the meta-model of Rule Designer.
The following features are supported:
ilog.rules.studio.model.IlrRuleModel.getModelContext()Resource ManagerModel ListenersRule Model MutexIlrModelPackage.getRuleModel()| Modifier and Type | Method and Description |
|---|---|
IlrElement |
createElement(java.lang.String name,
java.lang.String className,
IlrElement parent,
org.eclipse.emf.ecore.EReference containment,
int index)
Deprecated.
Use the constructors in the different model factories such as
IlrBaseFactory.createRuleProject(). |
IlrElement |
createResourceElement(java.lang.String name,
java.lang.String className,
org.eclipse.core.resources.IResource resource,
IlrElement parent,
org.eclipse.emf.ecore.EReference containment,
int index)
Deprecated.
Use the constructors in the different model factories such as,
IlrBaseFactory. |
IlrRuleProject |
createRuleProject(java.lang.String name,
java.lang.String className,
org.eclipse.core.resources.IResource resource,
int index)
Deprecated.
Use
ilog.rules.studio.model.services.IlrRuleModelService.createRuleProject(). |
org.eclipse.emf.common.util.EList<IlrBusinessChecker> |
getBusinessCheckers(IlrProjectElement projectElement)
Returns the business checkers that are applicable
for this project element.
|
org.eclipse.emf.ecore.EClass |
getEClass(java.lang.String fullyQualifiedName)
Deprecated.
Use
IlrRuleMetaModel.getEClass(String) instead. |
org.eclipse.emf.ecore.EClassifier |
getEClassifier(java.lang.String fullyQualifiedName)
Deprecated.
Use
IlrRuleMetaModel.getEClassifier(String) instead. |
IlrElement |
getElement(java.lang.String identifier)
Gets an element from its UUID.
|
IlrElement |
getElementByType(org.eclipse.emf.ecore.EClassifier classifier,
java.lang.String name)
Gets the first element named
name of
type classifier in the Rule Model. |
org.eclipse.emf.common.util.EList<IlrElement> |
getElementsByType(org.eclipse.emf.ecore.EClassifier classifier)
Gets all
IlrElement of type
classifier. |
org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(java.lang.String fullQualifiedName)
Deprecated.
Use
IlrRuleMetaModel.getEStructuralFeature(String) instead. |
org.eclipse.emf.ecore.EClassifier |
getModelClassifier(java.lang.String identifier)
Deprecated.
Use
IlrRuleMetaModel.getEClassifier(String) instead. |
org.eclipse.emf.ecore.EStructuralFeature |
getModelFeature(java.lang.String identifier)
Deprecated.
Use
IlrRuleMetaModel.getEStructuralFeature(String) instead. |
org.eclipse.emf.common.util.EList<IlrModelListener> |
getModelListeners()
Returns the value of the 'Model Listeners' attribute
list.
|
IlrResourceManager |
getResourceManager()
Returns the value of the 'Resource Manager' reference.
|
IlrRuleMetaModel |
getRuleMetaModel()
Returns the meta model of this model.
|
java.lang.Object |
getRuleModelMutex()
Returns the value of the 'Rule Model Mutex' attribute.
|
IlrRuleProject |
getRuleProject(java.lang.String name)
Gets the rule project named
name. |
org.eclipse.emf.common.util.EList<IlrRuleProject> |
getRuleProjects()
Gets all the rule projects.
|
java.util.Set<org.eclipse.emf.ecore.EClass> |
getSubClassesOf(org.eclipse.emf.ecore.EClass clazz)
Deprecated.
Use
IlrRuleMetaModel.getSubClassesOf(EClass) instead. |
boolean |
isDuplicated(IlrElement element)
Specifies whether this element is duplicated in the
model.
|
void |
setRuleModelMutex(java.lang.Object value)
Sets the value of the '
Rule Model Mutex' attribute. |
org.eclipse.emf.common.util.EList<IlrModelListener> getModelListeners()
The list contents are of type
IlrModelListener.
Gets the list of listeners of this model. You can add your own listeners of the model by adding elements to this list.
java.lang.Object getRuleModelMutex()
The rule model mutex is the mutex used to synchronize all the different services on the model.
setRuleModelMutex(Object),
IlrModelPackage.getRuleModel_RuleModelMutex()void setRuleModelMutex(java.lang.Object value)
Rule Model Mutex' attribute.
value - the new value of the 'Rule Model Mutex' attribute.getRuleModelMutex()IlrResourceManager getResourceManager()
It is bidirectional and its opposite is 'Model'.
ilog.rules.studio.model.IlrRuleModel.setResourceManager(ilog.rules.studio.model.resource.IlrResourceManager),
IlrModelPackage.getRuleModel_ResourceManager(),
IlrResourceManager.getModel()IlrRuleMetaModel getRuleMetaModel()
@Deprecated IlrElement createElement(java.lang.String name, java.lang.String className, IlrElement parent, org.eclipse.emf.ecore.EReference containment, int index)
IlrBaseFactory.createRuleProject().
It creates an element name of type className.
This element is held by the reference containment of the
parent parent at the index index.
@Deprecated IlrElement createResourceElement(java.lang.String name, java.lang.String className, org.eclipse.core.resources.IResource resource, IlrElement parent, org.eclipse.emf.ecore.EReference containment, int index)
IlrBaseFactory.
This method is similar to the method
createElement(String, String, IlrElement, EReference, int).
@Deprecated org.eclipse.emf.ecore.EClassifier getModelClassifier(java.lang.String identifier)
IlrRuleMetaModel.getEClassifier(String) instead.identifier of
the meta-model of Rule Designer.@Deprecated org.eclipse.emf.ecore.EStructuralFeature getModelFeature(java.lang.String identifier)
IlrRuleMetaModel.getEStructuralFeature(String) instead.identifier of the
meta-model of Rule Designer.IlrElement getElement(java.lang.String identifier)
IlrElement getElementByType(org.eclipse.emf.ecore.EClassifier classifier, java.lang.String name)
name of
type classifier in the Rule Model.
org.eclipse.emf.common.util.EList<IlrElement> getElementsByType(org.eclipse.emf.ecore.EClassifier classifier)
@Deprecated IlrRuleProject createRuleProject(java.lang.String name, java.lang.String className, org.eclipse.core.resources.IResource resource, int index)
ilog.rules.studio.model.services.IlrRuleModelService.createRuleProject().
It is similar to the method
createResourceElement(String, String, IResource, IlrElement, EReference, int).
IlrRuleProject getRuleProject(java.lang.String name)
name.
org.eclipse.emf.common.util.EList<IlrRuleProject> getRuleProjects()
Returns a collection of IlrRuleProject.
org.eclipse.emf.common.util.EList<IlrBusinessChecker> getBusinessCheckers(IlrProjectElement projectElement)
Returns a collection of IlrBusinessChecker.
boolean isDuplicated(IlrElement element)
Elements are duplicated when there exists another element in the model with the same UUID as this element. Duplicated elements are not considered as valid elements by the model.
@Deprecated org.eclipse.emf.ecore.EClassifier getEClassifier(java.lang.String fullyQualifiedName)
IlrRuleMetaModel.getEClassifier(String) instead.EClassifier based on its fully qualified name.fullyQualifiedName - The fully qualified name.@Deprecated org.eclipse.emf.ecore.EClass getEClass(java.lang.String fullyQualifiedName)
IlrRuleMetaModel.getEClass(String) instead.EClass based on its fully qualified name.
fullyQualifiedName - The fully qualified name.@Deprecated java.util.Set<org.eclipse.emf.ecore.EClass> getSubClassesOf(org.eclipse.emf.ecore.EClass clazz)
IlrRuleMetaModel.getSubClassesOf(EClass) instead.clazz in the meta-model of Rule Designer.@Deprecated org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(java.lang.String fullQualifiedName)
IlrRuleMetaModel.getEStructuralFeature(String) instead.fullQualifiedName - The fully qualified name.© Copyright IBM Corp. 1987, 2017