|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRPAttribute
The IRPAttribute interface represents attributes of a class, and global variables. To create a new attribute, use the method IRPClassifier.addAttribute. To create a new variable, use the method IRPPackage.addGlobalVariable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.telelogic.rhapsody.core.IRPModelElement |
---|
IRPModelElement.OSLCLink |
Method Summary | |
---|---|
int |
getIsConstant()
Checks whether the attribute was defined as constant. |
int |
getIsOrdered()
For attributes with multiplicity greater than one, checks whether the order of the items was specified as significant. |
int |
getIsReference()
Checks whether the attribute was defined as a pointer. |
int |
getIsStatic()
Checks whether the attribute was defined as static. |
java.lang.String |
getMultiplicity()
Gets the multiplicity specified for the attribute. |
java.lang.String |
getVisibility()
Gets the visibility specified for the attribute. |
void |
setIsConstant(int isConstant)
Specifies whether an attribute should be defined as constant. |
void |
setIsOrdered(int isOrdered)
For attributes with multiplicity greater than one, this method is used to specify whether the attribute should be defined as ordered, meaning that the order of the items is significant. |
void |
setIsReference(int isReference)
Specifies whether an attribute should be defined as a pointer. |
void |
setIsStatic(int isStatic)
Specifies whether an attribute should be defined as static. |
void |
setMultiplicity(java.lang.String multiplicity)
Specifies the multiplicity for the attribute. |
void |
setVisibility(java.lang.String visibility)
Specifies the visibility of the operation. |
Methods inherited from interface com.telelogic.rhapsody.core.IRPVariable |
---|
addElementDefaultValue, addStringDefaultValue, getDeclaration, getDefaultValue, getType, getValueSpecifications, setDeclaration, setDefaultValue, setType, setTypeDeclaration |
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 |
---|
int getIsConstant()
int getIsOrdered()
int getIsReference()
int getIsStatic()
java.lang.String getMultiplicity()
java.lang.String getVisibility()
void setIsConstant(int isConstant)
isConstant
- Use 1 to specify that the attribute should be defined as constant. Use 0 to specify that the attribute should not be defined as constant.void setIsOrdered(int isOrdered)
isOrdered
- Use 1 to specify that the attribute should be defined as ordered. Use 0 to specify that the attribute should not be defined as ordered.void setIsReference(int isReference)
isReference
- Use 1 to specify that the attribute should be defined as a pointer. Use 0 to specify that the attribute should not be defined as a pointer.void setIsStatic(int isStatic)
isStatic
- Use 1 to specify that the attribute should be defined as static. Use 0 to specify that the attribute should not be defined as static.void setMultiplicity(java.lang.String multiplicity)
multiplicity
- the multiplicity to use for the attribute. 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..*". If you are setting the multiplicity to a value greater than one, use the setIsOrdered method to specify whether the order of the items is significant.void setVisibility(java.lang.String visibility)
visibility
- the visibility to use for the operation. The possible values are "public", "private", and "protected". For C# projects, you can also use the value "project" for internal operations, and the value "projectOrProtected" for protected internal operations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |