public interface IAnalystModel
Add the requirement containers and dictionaries can be accessed using this class.
To get the current requirement model, please do as following:
IModelingSession session = Modelio.getInstance().getModelingSession();
IAnalystModel = session.getRequirementModel();
This requirement model is accessible only if the Requirement MDAC is deployed in the project.
IUmlModel
Modifier and Type | Field and Description |
---|---|
static String |
BUSINESS_RULE_CONTAINER_STEREOTYPE
The name of the stereotype defining a Business Rule Container.
|
static String |
BUSINESS_RULE_DIAGRAM_STEREOTYPE
The name of the stereotype defining a Business Rule Diagram.
|
static String |
BUSINESS_RULE_PROPERTYSET_STEREOTYPE
The name of the stereotype defining a Business Rule PropertySet.
|
static String |
BUSINESS_RULE_STEREOTYPE
The name of the stereotype defining a Business Rule.
|
static String |
DICTIONARY_DIAGRAM_STEREOTYPE
The name of the stereotype defining a Dictionary Diagram.
|
static String |
GOAL_CONTAINER_STEREOTYPE
The name of the stereotype defining a Goal Container.
|
static String |
GOAL_DIAGRAM_STEREOTYPE
The name of the stereotype defining a Goal Diagram.
|
static String |
GOAL_PROPERTYSET_STEREOTYPE
The name of the stereotype defining a Goal PropertySet.
|
static String |
GOAL_STEREOTYPE
The name of the stereotype defining a Goal.
|
static String |
REQUIREMENT_CONTAINER_STEREOTYPE
The name of the stereotype defining a Requirement Container.
|
static String |
REQUIREMENT_DIAGRAM_STEREOTYPE
The name of the stereotype defining a Requirement Diagram.
|
static String |
REQUIREMENT_PROPERTYSET_STEREOTYPE
The name of the stereotype defining a Requirement PropertySet.
|
static String |
REQUIREMENT_STEREOTYPE
The name of the stereotype defining a Requirement.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertySet(IPropertySet set)
Add a new property set in the requirement administration model.
|
void |
addPropertyType(IPropertyType type)
Add a new property type in the requirement admin model.
|
IDictionary |
createDictionary()
Create a new dictionary without container.
|
IEnumeratedPropertyType |
createEnumeratedPropertyType()
Create a new enumerated property type.
|
IProperty |
createProperty()
Create a new property.
|
IPropertyEnumerationLitteral |
createPropertyEnumerationLitteral()
Create a new enumeration litteral for the enumerated property type.
|
IPropertySet |
createPropertySet()
Create a new property set.
|
IPropertyType |
createPropertyType()
Create a new simple property type.
|
IPropertyValue |
createPropertyValue()
Create a new property value.
|
IPropertyValueSet |
createPropertyValueSet()
Create a new property value set.
|
IRequirement |
createRequirement()
Create a new requirement without container.
|
IRequirementContainer |
createRequirementContainer()
Create a new requirement container without container.
|
ITerm |
createTerm()
Create a new term without container.
|
void |
deleteElement(IElement element)
Delete an existing element (localized in the requirement model) from the model.
|
ObList<IPropertySet> |
getPropertySets()
Get the list of known property sets.
|
ObList<IPropertyType> |
getPropertyTypes()
Get the list of known property types.
|
IRequirementContainer |
getRootBusinessRuleContainer()
Get the main business rules container that owns the business rules elements.
|
IDictionary |
getRootDictionary()
Get the main dictionary that owns the sub dictionaries and terms.
|
IRequirementContainer |
getRootGoalContainer()
Get the main goal container that owns the goal elements.
|
IRequirementContainer |
getRootRequirementContainer()
Get the main requirement container that owns the requirement elements.
|
void |
removePropertySet(IPropertySet set)
Remove an existing property set from the requirement administration model.
|
void |
removePropertyType(IPropertyType type)
Remove an existing property type from the requirement administration model.
|
static final String BUSINESS_RULE_CONTAINER_STEREOTYPE
static final String GOAL_CONTAINER_STEREOTYPE
static final String REQUIREMENT_CONTAINER_STEREOTYPE
static final String BUSINESS_RULE_STEREOTYPE
static final String BUSINESS_RULE_PROPERTYSET_STEREOTYPE
static final String BUSINESS_RULE_DIAGRAM_STEREOTYPE
static final String DICTIONARY_DIAGRAM_STEREOTYPE
static final String GOAL_STEREOTYPE
static final String GOAL_PROPERTYSET_STEREOTYPE
static final String GOAL_DIAGRAM_STEREOTYPE
static final String REQUIREMENT_STEREOTYPE
static final String REQUIREMENT_PROPERTYSET_STEREOTYPE
static final String REQUIREMENT_DIAGRAM_STEREOTYPE
ObList<IPropertyType> getPropertyTypes()
Default property types already exist and can be extended by the user. This method permits to return the list of known property types.
ObList<IPropertySet> getPropertySets()
Default property sets already exist and can be extended by the user. This method permits to return the list of known property sets.
void addPropertyType(IPropertyType type)
New property types can be created, using the createPropertyType()
method and can added
to this model through the use of this method.
type
- property typeremovePropertyType(IPropertyType)
void removePropertyType(IPropertyType type)
type
- property typeaddPropertyType(IPropertyType)
void addPropertySet(IPropertySet set)
New property sets can be created, using the createPropertySet()
method and can added to
this model through the use of this method.
set
- property setremovePropertySet(IPropertySet)
void removePropertySet(IPropertySet set)
set
- property setaddPropertySet(IPropertySet)
IDictionary createDictionary()
IModelingSession session = Modelio.getInstance().getModelingSession();
IAnalystModel model = session.getRequirementModel();
IDictionary root = model.getRootDictionary();
IDictionary newDictionary = model.createDictionary();
newDictionary.setName ("dic1");
root.addOwned (newDictionary);
IEnumeratedPropertyType createEnumeratedPropertyType()
addPropertyType(IPropertyType)
method.addPropertyType(IPropertyType)
IProperty createProperty()
IPropertySet.addOwned(IProperty)
IPropertySet.addOwned(IProperty)
IPropertyEnumerationLitteral createPropertyEnumerationLitteral()
IEnumeratedPropertyType.addLitteral(IPropertyEnumerationLitteral)
IPropertySet createPropertySet()
addPropertySet(IPropertySet)
method.addPropertySet(IPropertySet)
IPropertyType createPropertyType()
addPropertyType(IPropertyType)
method.addPropertyType(IPropertyType)
IPropertyValue createPropertyValue()
IPropertyValueSet.addValue(IPropertyValue)
method.IPropertyValueSet.addValue(IPropertyValue)
IPropertyValueSet createPropertyValueSet()
IRequirementContainer.setDefaultSet(IPropertyValueSet)
,
IRequirement.setProperties(IPropertyValueSet)
,
IDictionary.setDefaultSet(IPropertyValueSet)
,
ITerm.setProperties(IPropertyValueSet)
IRequirement createRequirement()
IModelingSession session = Modelio.getInstance().getModelingSession();
IAnalystModel model = session.getRequirementModel();
IRequirementContainer root = model.getRootContainer();
IRequirement newRequirement = model.createRequirement();
newRequirement.setName ("req1");
newRequirement.setText ("All the methods have to be documented");
root.addOwned (newRequirement);
IRequirementContainer createRequirementContainer()
IModelingSession session = Modelio.getInstance().getModelingSession();
IAnalystModel model = session.getRequirementModel();
IRequirementContainer root = model.getRootContainer();
IRequirementContainer newRequirementContainer = model.createRequirement();
newRequirementContainer.setName ("functional requirements");
root.addOwned (newRequirementContainer);
ITerm createTerm()
IModelingSession session = Modelio.getInstance().getModelingSession();
IAnalystModel model = session.getRequirementModel();
IDictionary root = model.getRootDictionary();
ITerm newTerm = model.createRequirement();
newTerm.setName ("system");
newTerm.setDefinition ("The system is the place where the program should run");
root.addOwned (newTerm);
void deleteElement(IElement element)
element
- The element to remove from the model.IRequirementContainer getRootBusinessRuleContainer()
IDictionary getRootDictionary()
IRequirementContainer getRootGoalContainer()
IRequirementContainer getRootRequirementContainer()