com.telelogic.rhapsody.core
Interface IRPAttribute

All Superinterfaces:
IRPModelElement, IRPUnit, IRPVariable

public interface IRPAttribute
extends IRPVariable

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
 
Methods inherited from interface com.telelogic.rhapsody.core.IRPModelElement
addAssociation, addDependency, addDependencyBetween, addDependencyTo, addLinkToElement, addNewAggr, addProperty, addRedefines, addRemoteDependencyTo, addSpecificStereotype, addStereotype, becomeTemplateInstantiationOf, changeTo, clone, createOSLCLink, deleteDependency, deleteFromProject, deleteOSLCLink, errorMessage, findElementsByFullName, findNestedElement, findNestedElementRecursive, getAllTags, getAnnotations, getAssociationClasses, getBinaryID, getConstraints, getConstraintsByHim, getControlledFiles, getDecorationStyle, getDependencies, getDescription, getDescriptionHTML, getDescriptionPlainText, getDescriptionRTF, getDisplayName, getDisplayNameRTF, getErrorMessage, getFullPathName, getFullPathNameIn, getGUID, getHyperLinks, getIconFileName, getInterfaceName, getIsExternal, getIsOfMetaClass, getIsShowDisplayName, getIsUnresolved, getLocalTags, getMainDiagram, getMetaClass, getName, getNestedElements, getNestedElementsByMetaClass, getNestedElementsRecursive, getNewTermStereotype, getOfTemplate, getOSLCLinks, getOverlayIconFileName, getOverriddenProperties, getOverriddenPropertiesByPattern, getOwnedDependencies, getOwner, getProject, getPropertyValue, getPropertyValueConditional, getPropertyValueConditionalExplicit, getPropertyValueExplicit, getRedefines, getReferences, getRemoteDependencies, getRemoteURI, getRequirementTraceabilityHandle, getSaveUnit, getStereotype, getStereotypes, getTag, getTemplateParameters, getTi, getToolTipHTML, getUserDefinedMetaClass, hasNestedElements, hasPanelWidget, highLightElement, isATemplate, isDescriptionRTF, isDisplayNameRTF, isModified, isRemote, locateInBrowser, lockOnDesignManager, openFeaturesDialog, removeProperty, removeRedefines, removeStereotype, setDecorationStyle, setDescription, setDescriptionAndHyperlinks, setDescriptionHTML, setDescriptionRTF, setDisplayName, setDisplayNameRTF, setGUID, setIsShowDisplayName, setMainDiagram, setName, setOfTemplate, setOwner, setPropertyValue, setRequirementTraceabilityHandle, setStereotype, setTagContextValue, setTagElementValue, setTagValue, setTi, synchronizeTemplateInstantiation, unlockOnDesignManager
 

Method Detail

getIsConstant

int getIsConstant()
Checks whether the attribute was defined as constant.

Returns:
1 if the attribute was defined as constant, 0 otherwise

getIsOrdered

int getIsOrdered()
For attributes with multiplicity greater than one, checks whether the order of the items was specified as significant.

Returns:
1 if the attribute was defined as ordered, 0 otherwise

getIsReference

int getIsReference()
Checks whether the attribute was defined as a pointer.

Returns:
1 if the attribute was defined as pointer, 0 otherwise

getIsStatic

int getIsStatic()
Checks whether the attribute was defined as static.

Returns:
1 if the attribute was defined as static, 0 otherwise

getMultiplicity

java.lang.String getMultiplicity()
Gets the multiplicity specified for the attribute.

Returns:
the multiplicity specified for the attribute

getVisibility

java.lang.String getVisibility()
Gets the visibility specified for the attribute.

Returns:
the visibility specified for the attribute

setIsConstant

void setIsConstant(int isConstant)
Specifies whether an attribute should be defined as constant.

Parameters:
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.

setIsOrdered

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.

Parameters:
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.

setIsReference

void setIsReference(int isReference)
Specifies whether an attribute should be defined as a pointer.

Parameters:
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.

setIsStatic

void setIsStatic(int isStatic)
Specifies whether an attribute should be defined as static.

Parameters:
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.

setMultiplicity

void setMultiplicity(java.lang.String multiplicity)
Specifies the multiplicity for the attribute.

Parameters:
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.

setVisibility

void setVisibility(java.lang.String visibility)
Specifies the visibility of the operation.

Parameters:
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