|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRPClassifier
Represents the features shared by elements such as classes, actors, use cases, and types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.telelogic.rhapsody.core.IRPModelElement |
---|
IRPModelElement.OSLCLink |
Method Summary | |
---|---|
IRPFlowchart |
addActivityDiagram()
Creates a new activity diagram. |
IRPAttribute |
addAttribute(java.lang.String name)
Adds a new attribute to the classifier. |
IRPFlowItem |
addFlowItems(java.lang.String name)
Adds a new item flow to the classifier. |
IRPFlow |
addFlows(java.lang.String name)
Adds a new flow to the classifier. |
void |
addGeneralization(IRPClassifier pVal)
Adds a generalization relationship between the classifier and the classifier specified as a parameter. |
IRPOperation |
addOperation(java.lang.String name)
Adds a new operation. |
IRPRelation |
addRelation(java.lang.String otherClassName,
java.lang.String otherClassPackageName,
java.lang.String roleName1,
java.lang.String linkType1,
java.lang.String multiplicity1,
java.lang.String roleName2,
java.lang.String linkType2,
java.lang.String multiplicity2,
java.lang.String linkName)
Adds a new association to the classifier. |
IRPRelation |
addRelationTo(IRPClassifier otherClassifier,
java.lang.String roleName1,
java.lang.String linkType1,
java.lang.String multiplicity1,
java.lang.String roleName2,
java.lang.String linkType2,
java.lang.String multiplicity2,
java.lang.String linkName)
Adds a new association to the classifier. |
IRPStatechart |
addStatechart()
Creates a new statechart. |
IRPRelation |
addUnidirectionalRelation(java.lang.String otherClassName,
java.lang.String otherClassPackageName,
java.lang.String roleName,
java.lang.String linkType,
java.lang.String multiplicity,
java.lang.String linkName)
Adds a new directed association to the classifier. |
IRPRelation |
addUnidirectionalRelationTo(IRPClassifier otherClassifier,
java.lang.String roleName,
java.lang.String linkType,
java.lang.String multiplicity,
java.lang.String linkName)
Adds a new directed association to the classifier. |
void |
deleteAttribute(IRPAttribute attribute)
Deletes the specified attribute. |
void |
deleteFlowItems(IRPFlowItem pItem)
Deletes the specified item flow. |
void |
deleteFlows(IRPFlow pFlow)
Deletes the specified flow. |
void |
deleteGeneralization(IRPClassifier superClass)
Deletes the generalization relationship between the classifier and the classifier specified as a parameter. |
void |
deleteOperation(IRPOperation operation)
Deletes the specified operation. |
void |
deleteRelation(IRPRelation relation)
Deletes the specified relation. |
IRPAttribute |
findAttribute(java.lang.String newVal)
Returns the attribute with the name specified. |
IRPClassifier |
findBaseClassifier(java.lang.String newVal)
Returns the base classifier with the specified name. |
IRPClassifier |
findDerivedClassifier(java.lang.String newVal)
Returns the derived classifier with the specified name. |
IRPGeneralization |
findGeneralization(java.lang.String newVal)
Returns the element representing the generalization relationship between this classifier and the classifier whose name was specified as a parameter. |
IRPInterfaceItem |
findInterfaceItem(java.lang.String signature)
Gets the operation or event reception that matches the signature provided. |
IRPClassifier |
findNestedClassifier(java.lang.String newVal)
Searches for the nested classifier with the name specified. |
IRPModelElement |
findNestedClassifierRecursive(java.lang.String newVal)
Searches recursively for the classifier with the name specified. |
IRPRelation |
findRelation(java.lang.String newVal)
Returns the association whose name was specified as a parameter. |
IRPInterfaceItem |
findTrigger(java.lang.String name)
Returns the trigger with the specified name in the classifier's statechart. |
IRPFlowchart |
getActivityDiagram()
This method should no longer be used because Rational Rhapsody now allows you to define more than one statechart and activity diagram for a class. |
IRPCollection |
getAttributes()
Returns a collection of all the classifier's attributes. |
IRPCollection |
getAttributesIncludingBases()
Returns a collection of all the classifier's attributes, including those it inherits from its base classifiers. |
IRPCollection |
getBaseClassifiers()
Returns a collection of the classifiers that server as base classifiers for this classifier. |
IRPCollection |
getBehavioralDiagrams()
Returns a collection of all the statecharts and activities defined for the classifier. |
IRPCollection |
getDerivedClassifiers()
Returns a collection of all the classifiers derived from this classifier. |
IRPCollection |
getFlowItems()
Returns a collection of all the classifier's item flows. |
IRPCollection |
getFlows()
Returns a collection of the classifier's flows. |
IRPCollection |
getGeneralizations()
Returns a collection of all the classifier's generalization relationships. |
IRPCollection |
getInterfaceItems()
Returns a collection of the classifier's elements of type IRPInterfaceItem (such as operations, triggered operations, and event receptions). |
IRPCollection |
getInterfaceItemsIncludingBases()
Returns a collection of the classifier's elements of type IRPInterfaceItem (such as operations, triggered operations, and event receptions), including those it inherits from its base classifier. |
IRPCollection |
getLinks()
Returns a collection of all the classifier's link relationships. |
IRPCollection |
getNestedClassifiers()
Returns a collection of all the classifiers nested below the current classifier. |
IRPCollection |
getOperations()
Returns a collection of all the classifier's operations. |
IRPCollection |
getPorts()
Returns a collection of all the classifier's ports. |
IRPCollection |
getRelations()
Returns a collection of all the classifier's associations. |
IRPCollection |
getRelationsIncludingBases()
Returns a collection of all the classifier's associations, including those it inherits from its base classifier. |
IRPCollection |
getSequenceDiagrams()
Returns a collection of the classifier's sequence diagrams. |
IRPCollection |
getSourceArtifacts()
Gets the source artifacts for the classifier. |
IRPStatechart |
getStatechart()
This method should no longer be used because Rational Rhapsody now allows you to define more than one statechart and activity diagram for a class. |
Methods inherited from interface com.telelogic.rhapsody.core.IRPUnit |
---|
copyToAnotherProject, getAddToModelMode, getCMHeader, getCMState, getCurrentDirectory, getFilename, getIncludeInNextLoad, getIsStub, getLanguage, getLastModifiedTime, getNestedSaveUnits, getNestedSaveUnitsCount, getStructureDiagrams, isReadOnly, isReferenceUnit, isSeparateSaveUnit, load, moveToAnotherProjectLeaveAReference, referenceToAnotherProject, save, setCMHeader, setFilename, setIncludeInNextLoad, setLanguage, setReadOnly, setSeparateSaveUnit, setUnitPath, unload |
Method Detail |
---|
IRPFlowchart addActivityDiagram()
IRPAttribute addAttribute(java.lang.String name)
name
- the name to use for the new attribute
IRPFlowItem addFlowItems(java.lang.String name)
name
- the name to use for the new item flow
IRPFlow addFlows(java.lang.String name)
name
- the name to use for the new flow
void addGeneralization(IRPClassifier pVal)
convertibleClass.addGeneralization(carClass);
pVal
- the classifier that should serve as the base classifier for this classifierIRPOperation addOperation(java.lang.String name)
name
- the name to use for the new operation
IRPRelation addRelation(java.lang.String otherClassName, java.lang.String otherClassPackageName, java.lang.String roleName1, java.lang.String linkType1, java.lang.String multiplicity1, java.lang.String roleName2, java.lang.String linkType2, java.lang.String multiplicity2, java.lang.String linkName)
otherClassName
- the name of the classifier that the current classifier should be associated withotherClassPackageName
- that name of the package that contains the classifier that the current classifier should be associated withroleName1
- the role name to use for the association end near the other classifierlinkType1
- used in conjunction with the parameter linkType2 to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive). To create a simple association, use Association for each of the linkType parameters. To create an aggregation relationship, use Association for one of the linkType parameters and Aggregation for the other parameter. To create a composition relationship, use Association for one of the linkType parameters and use Composition for the other parameter.multiplicity1
- the multiplicity to use for the association end near the other classifier. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".roleName2
- the role name to use for the association end near the current classifierlinkType2
- used in conjunction with the parameter linkType1 to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive). To create a simple association, use Association for each of the linkType parameters. To create an aggregation relationship, use Association for one of the linkType parameters and Aggregation for the other parameter. To create a composition relationship, use Association for one of the linkType parameters and use Composition for the other parameter.multiplicity2
- the multiplicity to use for the association end near the current classifier. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".linkName
- if you want to create an association class, use this parameter to specify the name of the class. If you do not want to create an association class, use an empty string as the value of this parameter.
IRPRelation addRelationTo(IRPClassifier otherClassifier, java.lang.String roleName1, java.lang.String linkType1, java.lang.String multiplicity1, java.lang.String roleName2, java.lang.String linkType2, java.lang.String multiplicity2, java.lang.String linkName)
otherClassifier
- the classifier that the current classifier should be associated withroleName1
- the role name to use for the association end near the other classifierlinkType1
- used in conjunction with the parameter linkType2 to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive). To create a simple association, use Association for each of the linkType parameters. To create an aggregation relationship, use Association for one of the linkType parameters and Aggregation for the other parameter. To create a composition relationship, use Association for one of the linkType parameters and use Composition for the other parameter.multiplicity1
- the multiplicity to use for the association end near the other classifier. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".roleName2
- the role name to use for the association end near the current classifierlinkType2
- used in conjunction with the parameter linkType1 to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive). To create a simple association, use Association for each of the linkType parameters. To create an aggregation relationship, use Association for one of the linkType parameters and Aggregation for the other parameter. To create a composition relationship, use Association for one of the linkType parameters and use Composition for the other parameter.multiplicity2
- the multiplicity to use for the association end near the current classifier. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".linkName
- if you want to create an association class, use this parameter to specify the name of the class. If you do not want to create an association class, use an empty string as the value of this parameter.
IRPStatechart addStatechart()
IRPRelation addUnidirectionalRelation(java.lang.String otherClassName, java.lang.String otherClassPackageName, java.lang.String roleName, java.lang.String linkType, java.lang.String multiplicity, java.lang.String linkName)
otherClassName
- the name of the classifier that the current classifier should be associated withotherClassPackageName
- that name of the package that contains the classifier that the current classifier should be associated withroleName
- the role name to use for the association endlinkType
- used to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive).multiplicity
- the multiplicity to use for the association end. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".linkName
- if you want to create an association class, use this parameter to specify the name of the class. If you do not want to create an association class, use an empty string as the value of this parameter.
IRPRelation addUnidirectionalRelationTo(IRPClassifier otherClassifier, java.lang.String roleName, java.lang.String linkType, java.lang.String multiplicity, java.lang.String linkName)
otherClassifier
- the classifier that the current classifier should be associated withroleName
- the role name to use for the association endlinkType
- used to determine the type of association to create. The strings that can be used for this parameter are Association, Aggregation and Composition (parameter is case-sensitive).multiplicity
- the multiplicity to use for the association end. You can use strings such as "1" or "14" to specify a specific number, or you can use one of the values listed in the Features dialog for attributes: "0,1", "*", or "1..*".linkName
- if you want to create an association class, use this parameter to specify the name of the class. If you do not want to create an association class, use an empty string as the value of this parameter.
void deleteAttribute(IRPAttribute attribute)
attribute
- the attribute that should be deletedvoid deleteFlowItems(IRPFlowItem pItem)
pItem
- the item flow that should be deletedvoid deleteFlows(IRPFlow pFlow)
pFlow
- the flow that should be deletedvoid deleteGeneralization(IRPClassifier superClass)
superClass
- the classifier whose generalization relationship with this classifier should be deletedvoid deleteOperation(IRPOperation operation)
operation
- the operation that should be deletedvoid deleteRelation(IRPRelation relation)
relation
- the relation that should be deletedIRPAttribute findAttribute(java.lang.String newVal)
newVal
- the name of the attribute that should be returned
IRPClassifier findBaseClassifier(java.lang.String newVal)
newVal
- the name of the base classifier that should be returned
IRPClassifier findDerivedClassifier(java.lang.String newVal)
newVal
- the name of the derived classifier that should be returned
IRPGeneralization findGeneralization(java.lang.String newVal)
newVal
- the name of the classifier whose generalization relationship should be returned
IRPInterfaceItem findInterfaceItem(java.lang.String signature)
signature
- the signature of the operation or event reception. The string you provide should consist of the operation name followed by parentheses containing a comma-delimited list of the types of the parameters, for example, "runEngine(int,int)".
IRPClassifier findNestedClassifier(java.lang.String newVal)
newVal
- the name of the classifier to search for
IRPModelElement findNestedClassifierRecursive(java.lang.String newVal)
newVal
- the name of the classifier to search for
IRPRelation findRelation(java.lang.String newVal)
newVal
- the name of the association that should be returned
IRPInterfaceItem findTrigger(java.lang.String name)
name
- the name of the trigger to find
IRPFlowchart getActivityDiagram()
IRPCollection getAttributes()
IRPCollection getAttributesIncludingBases()
IRPCollection getBaseClassifiers()
IRPCollection getBehavioralDiagrams()
IRPCollection getDerivedClassifiers()
IRPCollection getFlowItems()
IRPCollection getFlows()
IRPCollection getGeneralizations()
IRPCollection getInterfaceItems()
IRPCollection getInterfaceItemsIncludingBases()
IRPCollection getLinks()
IRPCollection getNestedClassifiers()
IRPCollection getOperations()
IRPCollection getPorts()
IRPCollection getRelations()
IRPCollection getRelationsIncludingBases()
IRPCollection getSequenceDiagrams()
IRPCollection getSourceArtifacts()
IRPStatechart getStatechart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |