de.uni_paderborn.fujaba.uml
Class UMLAttr

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.asg.ASGElement
          extended byde.uni_paderborn.fujaba.uml.UMLIncrement
              extended byde.uni_paderborn.fujaba.uml.UMLDiagramItem
                  extended byde.uni_paderborn.fujaba.uml.UMLDeclaration
                      extended byde.uni_paderborn.fujaba.uml.UMLAttr
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, FAttr, FDeclaration, FDiagramItem, FElement, FIncrement, de.uni_kassel.prop.InspectionAware, LogicUnparseInterface, de.tu_bs.coobra.ObjectChangeAware, de.upb.tools.pcs.PropertyChangeClient, de.upb.tools.pcs.PropertyChangeInterface, UniqueIdentifier

public class UMLAttr
extends UMLDeclaration
implements FAttr

Associations

          +-----------+ 1              1
 UMLClass | getName() +------------------ UMLAttr
          +-----------+ parent     attrs

          0..1                                      0..1
 UMLRole ------------------------------------------------ UMLAttr
          implementingAssocRole      associatedAttribute

            0..*                            0..1
 UMLMethod -------------------------------------- UMLAttr
            accessMethods      accessedAttribute

 

Version:
$Revision: 1.243 $
Author:
$Author: cschneid $

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement
ASGElement.SortByNameComparator
 
Field Summary
static int CREATE_ACCESS_METHODS_DEFAULT
          No comment provided by developer, please add a comment to improve documentation.
static int CREATE_ACCESS_METHODS_NO
          No comment provided by developer, please add a comment to improve documentation.
static int CREATE_ACCESS_METHODS_YES
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String PROPERTY_ATTR_TYPE
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String PROPERTY_NAME
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String PROPERTY_UML_STATIC
          No comment provided by developer, please add a comment to improve documentation.
static int UNUSED
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FAttr
ATTR_TYPE_PROPERTY, INITIAL_VALUE_PROPERTY, PARENT_PROPERTY, REV_QUALIFIED_ATTR, STATIC_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDeclaration
CODE_DISPLAY_LEVEL, DESIGN_DISPLAY_LEVEL, PACKAGE, PRIVATE, PROTECTED, PUBLIC, USERDEFINED, VISIBILITY_CHAR, VISIBILITY_PROPERTY, VISIBILITY_STRING
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagramItem
REV_ADDITIONAL_ITEMS_PROPERTY, REV_ITEMS_PROPERTY, VIEW_DEFINITIONS_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement
ASSERT_IN_UNIT_TEST_PROPERTY, COMMENT_PROPERTY, CONSTRAINTS_PROPERTY, STEREOTYPES_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY
 
Constructor Summary
UMLAttr()
          Constructor for class UMLAttr
UMLAttr(boolean coobraPersistent)
          Constructor for class UMLAttr
UMLAttr(int visibility, java.lang.String type, java.lang.String name, java.lang.String initialValue, boolean umlStatic, boolean javaFinal)
          Constructor for class UMLAttr
UMLAttr(int visibility, java.lang.String type, java.lang.String name, java.lang.String initialValue, boolean umlStatic, boolean javaFinal, UMLClass parent)
          Constructor for class UMLAttr
UMLAttr(java.lang.String name, boolean umlStatic, boolean javaFinal, int visibility, java.lang.String initialValue, UMLType attrType)
          Constructor for class UMLAttr
UMLAttr(java.lang.String name, boolean umlStatic, boolean javaFinal, int visibility, java.lang.String initialValue, UMLType attrType, UMLClass parent, UMLConstraint constraint)
          Constructor for class UMLAttr
 
Method Summary
 boolean addToAccessMethods(UMLMethod value)
          UMLMethod: '+ addToAccessMethods (value: UMLMethod): Boolean'.
 void addToInstances(UMLAttrExprPair elem)
          Access method for an one to n association.
 boolean addToRevQualifiedAttr(FQualifier value)
           
 java.util.Enumeration elementsOfInstances()
          No comment provided by developer, please add a comment to improve documentation.
 UMLMethod findAccessMethod(int type)
          Search for an associated access method of the specified type.
static void fixVisibilities()
          No comment provided by developer, please add a comment to improve documentation.
 UMLType getAttrType()
          Get the attrType attribute of the UMLAttr object
 int getCreateAccessMethods()
          Get the createAccessMethods attribute of the UMLAttr object
 FType getFAttrType()
          Get the fAttrType attribute of the UMLAttr object
 FRole getFImplementingAssocRole()
          Get the fImplementingAssocRole attribute of the UMLAttr object
 FClass getFParent()
          Get the fParent attribute of the UMLAttr object
 UMLRole getImplementingAssocRole()
          UMLMethod: '+ getImplementingAssocRole (): UMLRole'.
 java.lang.String getInitialValue()
          Get the initialValue attribute of the UMLAttr object
 java.lang.String getName()
          Get the name attribute of the UMLAttr object
 java.lang.String getNameUpdate()
          Get the nameUpdate attribute of the UMLAttr object
 UMLClass getParent()
          Get the parent attribute of the UMLAttr object
 FElement getParentElement()
          Query the logical parent of this element (e.g. package of a class, diagram of an object).
 java.lang.String getText()
          Get the text attribute of the UMLAttr object
 UMLType getUMLType()
          Get the uMLType attribute of the UMLAttr object
 int getUmlVisibility()
          Deprecated. use UMLDeclaration.getVisibility() instead. Having visibility and umlVisibility in parallel was only necessary to handle attrs without access methods
static java.lang.String getVisibilityType(int visibility)
          Get the visibilityType attribute of the UMLAttr class
 boolean hasAccessMethod(int type)
          Check whether this attribute has an associated access method of the specified type.
 boolean hasAccessMethods()
          Check whether this attribute has associated access methods or not.
 boolean hasInAccessMethods(UMLMethod value)
          UMLMethod: '+ hasInAccessMethods (value: UMLMethod): Boolean'.
 boolean hasInInstances(UMLAttrExprPair elem)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInRevQualifiedAttr(FQualifier value)
           
 boolean isConstant()
          Get the constant attribute of the UMLAttr object
 boolean isFinal()
          Get the final attribute of the UMLAttr object
 boolean isNeedsAccessMethods()
          Get the needsAccessMethods attribute of the UMLAttr object
 boolean isNoAccessMethods()
          Deprecated. use getCreateAccessMethods() instead
 boolean isPointer()
          Deprecated.  
 boolean isStatic()
          Get the static attribute of the UMLAttr object
static boolean isSyncVisibilities()
          Deprecated. Move to GUI?
 boolean isTransient()
          Get the transient attribute of the UMLAttr object
 boolean isUmlStatic()
          Get the umlStatic attribute of the UMLAttr object
 java.util.Iterator iteratorOfAccessMethods()
          UMLMethod: '+ iteratorOfAccessMethods (): Iterator'.
 java.util.Iterator iteratorOfInstances()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfRevQualifiedAttr()
           
 void readAttributes(java.util.Hashtable objects, de.upb.tools.fca.FDuplicatedTreeMap attributes)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromAccessMethods()
          UMLMethod: '+ removeAllFromAccessMethods (): Void'.
 void removeAllFromInstances()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromRevQualifiedAttr()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromAccessMethods(UMLMethod value)
          UMLMethod: '+ removeFromAccessMethods (value: UMLMethod): Boolean'.
 void removeFromInstances(UMLAttrExprPair elem)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromRevQualifiedAttr(FQualifier value)
           
 void removeYou()
          Isolates the object so the garbage collector can remove it.
 void setAttrType(FType attrType)
          Sets the attrType attribute of the UMLAttr object
 void setAttrType(java.lang.String tmpType)
          Sets the attribute type by its name.
 void setCreateAccessMethods(int createAccessMethods)
          Sets the createAccessMethods attribute of the UMLAttr object
 void setCutCopyPasteParent(FElement parent)
          Hangs the current ASGElement into the ASG-tree.
 void setFinal(boolean javaFinal)
          Sets the final attribute of the UMLAttr object
 boolean setImplementingAssocRole(FRole value)
          UMLMethod: '+ setImplementingAssocRole (value: UMLRole): Boolean'.
 void setInitialValue(java.lang.String initialValue)
          Sets the initialValue attribute of the UMLAttr object
 void setName(java.lang.String newName)
          Sets the name attribute of the UMLAttr object
 void setNameUpdate(java.lang.String value)
          Sets the nameUpdate attribute of the UMLAttr object
 void setNoAccessMethods(boolean noAccessMethods)
          Deprecated. use getCreateAccessMethods() instead
 boolean setParent(FClass obj)
          Sets the parent attribute of the UMLAttr object
 void setPointer(boolean pointer)
          Deprecated.  
 void setStatic(boolean umlStatic)
          Sets the static attribute of the UMLAttr object
static void setSyncVisibilities(boolean sync)
          Sync umlVisibility and visibility.
 void setTransient(boolean javaTransient)
          Sets the transient attribute of the UMLAttr object
 void setUmlStatic(boolean umlStatic)
          Sets the umlStatic attribute of the UMLAttr object
 void setUmlVisibility(int newUmlVisibility)
          Deprecated. use setVisibility(int) instead. Having visibility and umlVisibility in parallel was only necessary to handle attrs without access methods
 void setVisibility(int visibility)
          Sets the visibility attribute of the UMLAttr object
 int sizeOfAccessMethods()
          UMLMethod: '+ sizeOfAccessMethods (): Integer'.
 int sizeOfRevQualifiedAttr()
           
 java.lang.String toString()
          No comment provided by developer, please add a comment to improve documentation.
 void writeAttributes(java.lang.StringBuffer data, de.upb.tools.fca.FTreeSet setOfNeighbours)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDeclaration
getDisplayLevel, getFType, getVisibility, isParsed, setDisplayLevel, setParsed
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDiagramItem
addToDiagrams, addToRevAdditionalItems, addToRevItems, addToViewDefinitions, createUnparseModuleName, getCurrentActiveDiagram, getFCurrentActiveDiagram, getFFirstFromDiagrams, getFirstFromDiagrams, hasInRevAdditionalItems, hasInRevItems, hasInViewDefinitions, iteratorOfRevAdditionalItems, iteratorOfRevItems, iteratorOfViewDefinitions, removeAllFromRevAdditionalItems, removeAllFromRevItems, removeAllFromViewDefinitions, removeFromRevAdditionalItems, removeFromRevItems, removeFromViewDefinitions, sizeOfRevAdditionalItems, sizeOfRevItems, sizeOfViewDefinitions
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLIncrement
addToConstraints, addToStereotypes, addToStereotypes, elementsOfAllChildren, entriesOfStereotypes, getComment, getFComment, getFromFStereotypes, getFromStereotypes, getFromStereotypes, hasInConstraints, hasInStereotypes, hasKeyInStereotypes, isAssertInUnitTest, iteratorOfConstraints, iteratorOfStereotypes, keysOfStereotypes, removeAllFromConstraints, removeAllFromStereotypes, removeFromConstraints, removeFromStereotypes, removeKeyFromStereotypes, setAssertInUnitTest, setComment, setStereotype, sizeOfConstraint, sizeOfStereotypes
 
Methods inherited from class de.uni_paderborn.fujaba.asg.ASGElement
acknowledgeChange, addAdditionalListener, addPointToUnparseInformation, addPropertyChangeListener, addPropertyChangeListener, addToAnnotations, addToElementReferences, addToElementReferences, addToFsaObjects, addToLocations, addToLocations, addToPropertyChangeListeners, addToPropertyChangeListeners, addToUnparseInformations, addToUnparseInformations, addToUserMessages, deleteTokens, elementsOfDiagrams, entriesOfElementReferences, entriesOfFsaObjects, entriesOfUnparseInformations, fireEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCoObRAId, getFirstFromFSAObjects, getFirstOOGenToken, getFromElementReferences, getFromFElementReferences, getFromFsaObjects, getFromUnparseInformations, getFSAInterface, getLastModified, getLastOOGenToken, getPointFromUnparseInformation, getPropertyChangeSupport, getRepository, getTransientElements, getUnparseModuleName, getUnparseModuleNameImpl, hasInAnnotations, hasInDiagrams, hasInElementReferences, hasInElementReferences, hasInFsaObjects, hasKeyInElementReferences, hasKeyInFsaObjects, initElementListener, initPersistency, isCoobraPersistent, isInspectableField, isInTransientMode, isPersistencyChange, isReadOnly, iteratorOfAnnotations, iteratorOfDiagrams, iteratorOfElementReferences, iteratorOfFsaObjects, iteratorOfKeyFromUnparseInformations, iteratorOfUnparseInformations, iteratorOfUserMessages, keysOfElementReferences, keysOfFsaObjects, keysOfUnparseInformations, proposeFieldValues, removeAdditionalListener, removeAllFromAnnotations, removeAllFromDiagrams, removeAllFromElementReferences, removeAllFromFsaObjects, removeAllFromUnparseInformations, removeAllFromUserMessages, removeFromAnnotations, removeFromDiagrams, removeFromElementReferences, removeFromElementReferences, removeFromFsaObjects, removeFromPropertyChangeListeners, removeFromPropertyChangeListeners, removeFromUnparseInformations, removeFromUnparseInformations, removeFromUnparseInformations, removeFromUserMessages, removeKeyFromElementReferences, removeKeyFromFsaObjects, removePropertyChangeListener, removePropertyChangeListener, saveFSAProperties, saveLocations, searchID, setCoObRAId, setFirstOOGenToken, setGenerated, setInTransientMode, setLastOOGenToken, setRepository, setUnparseModuleName, sizeOfAnnotations, sizeOfDiagrams, sizeOfElementReferences, sizeOfFsaObjects, sizeOfUserMessages, updateFSACollapsed, updateFSALocation, updateKeyInFsaObjects
 
Methods inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
compareTo, getID, getUniqueID, getUniqueID, isGenerated, lessUniqueId, readAttributes, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, resetClassInfos, resetFieldWriteMethods, setAttribValue, setAttribValue, setID, setUniqueId, writeClassToStringBuffer, writeClassToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FDeclaration
getDisplayLevel, getFType, getVisibility, isParsed, setDisplayLevel
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagramItem
addToRevAdditionalItems, addToRevItems, addToViewDefinitions, getFCurrentActiveDiagram, getFFirstFromDiagrams, hasInRevAdditionalItems, hasInRevItems, hasInViewDefinitions, iteratorOfRevAdditionalItems, iteratorOfRevItems, iteratorOfViewDefinitions, removeAllFromRevAdditionalItems, removeAllFromRevItems, removeAllFromViewDefinitions, removeFromRevAdditionalItems, removeFromRevItems, removeFromViewDefinitions, sizeOfRevAdditionalItems, sizeOfRevItems, sizeOfViewDefinitions
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement
addToConstraints, addToStereotypes, entriesOfStereotypes, getFComment, getFromFStereotypes, hasInConstraints, hasInStereotypes, hasKeyInStereotypes, isAssertInUnitTest, iteratorOfConstraints, iteratorOfStereotypes, keysOfStereotypes, removeAllFromConstraints, removeAllFromStereotypes, removeFromConstraints, removeFromStereotypes, removeKeyFromStereotypes, setAssertInUnitTest, setComment, sizeOfStereotypes
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
addToAnnotations, addToDiagrams, addToElementReferences, addToElementReferences, addToUserMessages, deleteTokens, entriesOfElementReferences, getFirstOOGenToken, getFromFElementReferences, getLastOOGenToken, hasInAnnotations, hasInDiagrams, hasInElementReferences, hasInElementReferences, hasKeyInElementReferences, isCoobraPersistent, isGenerated, iteratorOfAnnotations, iteratorOfDiagrams, iteratorOfElementReferences, iteratorOfUserMessages, keysOfElementReferences, removeAllFromAnnotations, removeAllFromDiagrams, removeAllFromElementReferences, removeAllFromUserMessages, removeFromAnnotations, removeFromDiagrams, removeFromElementReferences, removeFromElementReferences, removeFromUserMessages, removeKeyFromElementReferences, setFirstOOGenToken, setGenerated, setLastOOGenToken, sizeOfAnnotations, sizeOfDiagrams, sizeOfElementReferences, sizeOfUserMessages
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier
getID
 
Methods inherited from interface de.uni_paderborn.fujaba.fsa.unparse.LogicUnparseInterface
getFSAInterface, getUnparseModuleName
 
Methods inherited from interface de.upb.tools.pcs.PropertyChangeInterface
getPropertyChangeSupport
 
Methods inherited from interface de.upb.tools.pcs.PropertyChangeClient
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface de.tu_bs.coobra.ObjectChangeAware
acknowledgeChange, getCoObRAId, getRepository, setCoObRAId, setRepository
 
Methods inherited from interface de.uni_kassel.prop.InspectionAware
isInspectableField, proposeFieldValues
 

Field Detail

PROPERTY_NAME

public static final java.lang.String PROPERTY_NAME
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

PROPERTY_UML_STATIC

public static final java.lang.String PROPERTY_UML_STATIC
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

PROPERTY_ATTR_TYPE

public static final java.lang.String PROPERTY_ATTR_TYPE
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

UNUSED

public static final int UNUSED
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CREATE_ACCESS_METHODS_YES

public static final int CREATE_ACCESS_METHODS_YES
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CREATE_ACCESS_METHODS_NO

public static final int CREATE_ACCESS_METHODS_NO
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CREATE_ACCESS_METHODS_DEFAULT

public static final int CREATE_ACCESS_METHODS_DEFAULT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Constructor Detail

UMLAttr

public UMLAttr()
Constructor for class UMLAttr


UMLAttr

public UMLAttr(boolean coobraPersistent)
Constructor for class UMLAttr

Parameters:
coobraPersistent - No description provided

UMLAttr

public UMLAttr(int visibility,
               java.lang.String type,
               java.lang.String name,
               java.lang.String initialValue,
               boolean umlStatic,
               boolean javaFinal)
Constructor for class UMLAttr

Parameters:
visibility - No description provided
type - No description provided
name - No description provided
initialValue - No description provided
umlStatic - No description provided
javaFinal - No description provided

UMLAttr

public UMLAttr(int visibility,
               java.lang.String type,
               java.lang.String name,
               java.lang.String initialValue,
               boolean umlStatic,
               boolean javaFinal,
               UMLClass parent)
Constructor for class UMLAttr

Parameters:
visibility - No description provided
type - No description provided
name - No description provided
initialValue - No description provided
umlStatic - No description provided
javaFinal - No description provided
parent - No description provided

UMLAttr

public UMLAttr(java.lang.String name,
               boolean umlStatic,
               boolean javaFinal,
               int visibility,
               java.lang.String initialValue,
               UMLType attrType)
Constructor for class UMLAttr

Parameters:
name - No description provided
umlStatic - No description provided
javaFinal - No description provided
visibility - No description provided
initialValue - No description provided
attrType - No description provided

UMLAttr

public UMLAttr(java.lang.String name,
               boolean umlStatic,
               boolean javaFinal,
               int visibility,
               java.lang.String initialValue,
               UMLType attrType,
               UMLClass parent,
               UMLConstraint constraint)
Constructor for class UMLAttr

Parameters:
name - No description provided
umlStatic - No description provided
javaFinal - No description provided
visibility - No description provided
initialValue - No description provided
attrType - No description provided
parent - No description provided
constraint - No description provided
Method Detail

getName

public java.lang.String getName()
Get the name attribute of the UMLAttr object

Specified by:
getName in interface FElement
Overrides:
getName in class ASGElement
Returns:
The name value

setName

public void setName(java.lang.String newName)
Sets the name attribute of the UMLAttr object

Specified by:
setName in interface FElement
Overrides:
setName in class ASGElement
Parameters:
newName - The new name value

getNameUpdate

public java.lang.String getNameUpdate()
Get the nameUpdate attribute of the UMLAttr object

Returns:
The nameUpdate value

setNameUpdate

public void setNameUpdate(java.lang.String value)
Sets the nameUpdate attribute of the UMLAttr object

Parameters:
value - The new nameUpdate value

isPointer

public boolean isPointer()
Deprecated.  

Get the value of pointer.

Returns:
Value of pointer.

setPointer

public void setPointer(boolean pointer)
Deprecated.  

Set the value of pointer.

Parameters:
pointer - Value to assign to pointer.

isUmlStatic

public boolean isUmlStatic()
Get the umlStatic attribute of the UMLAttr object

Returns:
The umlStatic value

isStatic

public boolean isStatic()
Get the static attribute of the UMLAttr object

Specified by:
isStatic in interface FAttr
Returns:
The static value

setUmlStatic

public void setUmlStatic(boolean umlStatic)
Sets the umlStatic attribute of the UMLAttr object

Parameters:
umlStatic - The new umlStatic value

setStatic

public void setStatic(boolean umlStatic)
Sets the static attribute of the UMLAttr object

Specified by:
setStatic in interface FAttr
Parameters:
umlStatic - The new static value

setSyncVisibilities

public static void setSyncVisibilities(boolean sync)
Sync umlVisibility and visibility. Only needed for old project support

Parameters:
sync - The new syncVisibilities value

isSyncVisibilities

public static boolean isSyncVisibilities()
Deprecated. Move to GUI?

Get the syncVisibilities attribute of the UMLAttr class

Returns:
The syncVisibilities value

getUmlVisibility

public int getUmlVisibility()
Deprecated. use UMLDeclaration.getVisibility() instead. Having visibility and umlVisibility in parallel was only necessary to handle attrs without access methods

Get the umlVisibility attribute of the UMLAttr object

Returns:
The umlVisibility value

setUmlVisibility

public void setUmlVisibility(int newUmlVisibility)
Deprecated. use setVisibility(int) instead. Having visibility and umlVisibility in parallel was only necessary to handle attrs without access methods

Sets the umlVisibility attribute of the UMLAttr object

Parameters:
newUmlVisibility - The new umlVisibility value

setVisibility

public void setVisibility(int visibility)
Sets the visibility attribute of the UMLAttr object

Specified by:
setVisibility in interface FDeclaration
Overrides:
setVisibility in class UMLDeclaration
Parameters:
visibility - The new visibility value

getInitialValue

public java.lang.String getInitialValue()
Get the initialValue attribute of the UMLAttr object

Specified by:
getInitialValue in interface FAttr
Returns:
The initialValue value

setInitialValue

public void setInitialValue(java.lang.String initialValue)
Sets the initialValue attribute of the UMLAttr object

Specified by:
setInitialValue in interface FAttr
Parameters:
initialValue - The new initialValue value

setParent

public boolean setParent(FClass obj)
Sets the parent attribute of the UMLAttr object

Specified by:
setParent in interface FAttr
Parameters:
obj - The new parent value
Returns:
No description provided

getParent

public UMLClass getParent()
Get the parent attribute of the UMLAttr object

Returns:
The parent value

getFParent

public FClass getFParent()
Get the fParent attribute of the UMLAttr object

Specified by:
getFParent in interface FAttr
Returns:
The fParent value

hasInRevQualifiedAttr

public boolean hasInRevQualifiedAttr(FQualifier value)
Specified by:
hasInRevQualifiedAttr in interface FAttr
Parameters:
value - No description provided
Returns:
No description provided

iteratorOfRevQualifiedAttr

public java.util.Iterator iteratorOfRevQualifiedAttr()
Specified by:
iteratorOfRevQualifiedAttr in interface FAttr
Returns:
No description provided

sizeOfRevQualifiedAttr

public int sizeOfRevQualifiedAttr()
Specified by:
sizeOfRevQualifiedAttr in interface FAttr
Returns:
No description provided

addToRevQualifiedAttr

public boolean addToRevQualifiedAttr(FQualifier value)
Specified by:
addToRevQualifiedAttr in interface FAttr
Parameters:
value - The object added.
Returns:
No description provided

removeFromRevQualifiedAttr

public boolean removeFromRevQualifiedAttr(FQualifier value)
Specified by:
removeFromRevQualifiedAttr in interface FAttr
Parameters:
value - No description provided
Returns:
No description provided

removeAllFromRevQualifiedAttr

public void removeAllFromRevQualifiedAttr()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeAllFromRevQualifiedAttr in interface FAttr

getAttrType

public UMLType getAttrType()
Get the attrType attribute of the UMLAttr object

Returns:
The attrType value

getFAttrType

public FType getFAttrType()
Get the fAttrType attribute of the UMLAttr object

Specified by:
getFAttrType in interface FAttr
Returns:
The fAttrType value

getUMLType

public UMLType getUMLType()
Get the uMLType attribute of the UMLAttr object

Specified by:
getUMLType in class UMLDeclaration
Returns:
The uMLType value

setAttrType

public void setAttrType(FType attrType)
Sets the attrType attribute of the UMLAttr object

Specified by:
setAttrType in interface FAttr
Parameters:
attrType - The new attrType value

setAttrType

public void setAttrType(java.lang.String tmpType)
Sets the attribute type by its name. Searches first in the type list and then in the reference list. If no type with this name is found, a new type will be created.

Parameters:
tmpType - The (full qualified) attribute type as string.

hasInInstances

public boolean hasInInstances(UMLAttrExprPair elem)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
elem - No description provided
Returns:
No description provided

elementsOfInstances

public java.util.Enumeration elementsOfInstances()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

iteratorOfInstances

public java.util.Iterator iteratorOfInstances()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

addToInstances

public void addToInstances(UMLAttrExprPair elem)
Access method for an one to n association.

Parameters:
elem - The object added.

removeFromInstances

public void removeFromInstances(UMLAttrExprPair elem)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
elem - No description provided

removeAllFromInstances

public void removeAllFromInstances()
No comment provided by developer, please add a comment to improve documentation.


getVisibilityType

public static java.lang.String getVisibilityType(int visibility)
Get the visibilityType attribute of the UMLAttr class

Parameters:
visibility - No description provided
Returns:
The visibilityType value

removeYou

public void removeYou()
Isolates the object so the garbage collector can remove it.

Specified by:
removeYou in interface FElement
Overrides:
removeYou in class UMLDeclaration

getParentElement

public FElement getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object).

Specified by:
getParentElement in interface FElement
Overrides:
getParentElement in class UMLDiagramItem
Returns:
the logical parent of this element;

writeAttributes

public void writeAttributes(java.lang.StringBuffer data,
                            de.upb.tools.fca.FTreeSet setOfNeighbours)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
writeAttributes in class ASGElement
Parameters:
data - No description provided
setOfNeighbours - No description provided

readAttributes

public void readAttributes(java.util.Hashtable objects,
                           de.upb.tools.fca.FDuplicatedTreeMap attributes)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
readAttributes in class BasicIncrement
Parameters:
objects - No description provided
attributes - No description provided
See Also:
BasicIncrement.readAttributes(Hashtable, FDuplicatedTreeMap, boolean)

getText

public java.lang.String getText()
Get the text attribute of the UMLAttr object

Specified by:
getText in interface FElement
Overrides:
getText in class ASGElement
Returns:
The text value

toString

public java.lang.String toString()
Description copied from class: UMLDiagramItem
No comment provided by developer, please add a comment to improve documentation.

Overrides:
toString in class UMLDiagramItem
Returns:
short string representation of current object

getCreateAccessMethods

public int getCreateAccessMethods()
Get the createAccessMethods attribute of the UMLAttr object

Returns:
The createAccessMethods value

setCreateAccessMethods

public void setCreateAccessMethods(int createAccessMethods)
Sets the createAccessMethods attribute of the UMLAttr object

Parameters:
createAccessMethods - The new createAccessMethods value

setNoAccessMethods

public void setNoAccessMethods(boolean noAccessMethods)
Deprecated. use getCreateAccessMethods() instead

Sets the noAccessMethods attribute of the UMLAttr object

Parameters:
noAccessMethods - The new noAccessMethods value

isNoAccessMethods

public boolean isNoAccessMethods()
Deprecated. use getCreateAccessMethods() instead

Get the noAccessMethods attribute of the UMLAttr object

Returns:
The noAccessMethods value

isNeedsAccessMethods

public boolean isNeedsAccessMethods()
Get the needsAccessMethods attribute of the UMLAttr object

Specified by:
isNeedsAccessMethods in interface FAttr
Returns:
The needsAccessMethods value

isFinal

public boolean isFinal()
Get the final attribute of the UMLAttr object

Specified by:
isFinal in interface FAttr
Returns:
The final value

setFinal

public void setFinal(boolean javaFinal)
Sets the final attribute of the UMLAttr object

Specified by:
setFinal in interface FAttr
Parameters:
javaFinal - The new final value

isConstant

public boolean isConstant()
Get the constant attribute of the UMLAttr object

Returns:
The constant value

setTransient

public void setTransient(boolean javaTransient)
Sets the transient attribute of the UMLAttr object

Specified by:
setTransient in interface FAttr
Parameters:
javaTransient - The new transient value

isTransient

public boolean isTransient()
Get the transient attribute of the UMLAttr object

Specified by:
isTransient in interface FAttr
Returns:
The transient value

setCutCopyPasteParent

public void setCutCopyPasteParent(FElement parent)
Hangs the current ASGElement into the ASG-tree. Needed for cut'n'paste.

Specified by:
setCutCopyPasteParent in interface FElement
Overrides:
setCutCopyPasteParent in class ASGElement
Parameters:
parent - Where to put the current ASGElement.

findAccessMethod

public UMLMethod findAccessMethod(int type)
Search for an associated access method of the specified type.

Parameters:
type - The type of the access method.
Returns:
If existent, the associated access method of the specified type, otherwise null.

hasAccessMethods

public boolean hasAccessMethods()
Check whether this attribute has associated access methods or not.

Returns:
True, if this attribute has at least one access method, otherwise false.

hasAccessMethod

public boolean hasAccessMethod(int type)
Check whether this attribute has an associated access method of the specified type.

Parameters:
type - No description provided
Returns:
True, if this attribute has an access method of the specified type.

setImplementingAssocRole

public boolean setImplementingAssocRole(FRole value)
UMLMethod: '+ setImplementingAssocRole (value: UMLRole): Boolean'.

Specified by:
setImplementingAssocRole in interface FAttr
Parameters:
value - The new implementingAssocRole value
Returns:
No description provided

getImplementingAssocRole

public UMLRole getImplementingAssocRole()
UMLMethod: '+ getImplementingAssocRole (): UMLRole'.

Returns:
The implementingAssocRole value

getFImplementingAssocRole

public FRole getFImplementingAssocRole()
Get the fImplementingAssocRole attribute of the UMLAttr object

Specified by:
getFImplementingAssocRole in interface FAttr
Returns:
The fImplementingAssocRole value

hasInAccessMethods

public boolean hasInAccessMethods(UMLMethod value)
UMLMethod: '+ hasInAccessMethods (value: UMLMethod): Boolean'.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfAccessMethods

public java.util.Iterator iteratorOfAccessMethods()
UMLMethod: '+ iteratorOfAccessMethods (): Iterator'.

Specified by:
iteratorOfAccessMethods in interface FAttr
Returns:
No description provided

sizeOfAccessMethods

public int sizeOfAccessMethods()
UMLMethod: '+ sizeOfAccessMethods (): Integer'.

Returns:
No description provided

addToAccessMethods

public boolean addToAccessMethods(UMLMethod value)
UMLMethod: '+ addToAccessMethods (value: UMLMethod): Boolean'.

Parameters:
value - The object added.
Returns:
No description provided

removeFromAccessMethods

public boolean removeFromAccessMethods(UMLMethod value)
UMLMethod: '+ removeFromAccessMethods (value: UMLMethod): Boolean'.

Parameters:
value - No description provided
Returns:
No description provided

removeAllFromAccessMethods

public void removeAllFromAccessMethods()
UMLMethod: '+ removeAllFromAccessMethods (): Void'.


fixVisibilities

public static void fixVisibilities()
No comment provided by developer, please add a comment to improve documentation.