de.uni_paderborn.fujaba.uml
Class UMLStereotype

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.UMLStereotype
All Implemented Interfaces:
java.lang.Comparable, FElement, FIncrement, FStereotype, de.uni_kassel.prop.InspectionAware, LogicUnparseInterface, de.tu_bs.coobra.ObjectChangeAware, de.upb.tools.pcs.PropertyChangeClient, de.upb.tools.pcs.PropertyChangeInterface, UniqueIdentifier
Direct Known Subclasses:
UMLAssocStereotype

public class UMLStereotype
extends UMLIncrement
implements FStereotype

Associations

                      +-----------+ 0..1        uMLStereotypes         0..1
 UMLStereotypeManager | getText() |----------------------------------------- UMLStereotype
                      +-----------+ uMLStereotypeManager     uMLStereotypes

              +-----------+ 0..n                   0..1
 UMLIncrement | getText() |----------------------------- UMLStereotype
              +-----------+ increments     uMLStereotype
 

Version:
$Revision: 1.85 $
Author:
$Author: cschneid $

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement
ASGElement.SortByNameComparator
 
Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FStereotype
INCREMENTS_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement
ASSERT_IN_UNIT_TEST_PROPERTY, COMMENT_PROPERTY, CONSTRAINTS_PROPERTY, STEREOTYPES_PROPERTY
 
Constructor Summary
UMLStereotype()
          Constructor for class UMLStereotype
UMLStereotype(java.lang.String text)
          Constructor for class UMLStereotype
 
Method Summary
 boolean addToIncrements(FIncrement value)
          Mark the value with this stereotype
 boolean addToUMLClass(UMLClass value)
          Deprecated. use increments association instead
protected  java.lang.String createUnparseModuleName()
          No comment provided by developer, please add a comment to improve documentation.
 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 UMLStereotype object
 UMLStereotypeManager getUMLStereotypeManager()
          Get the uMLStereotypeManager attribute of the UMLStereotype object
 boolean hasInIncrements(FIncrement value)
          Check if increment has this stereotype.
 java.util.Iterator iteratorOfIncrements()
          List all increments that have this stereotype.
 void removeAllFromIncrements()
          remove this stereotype from all increments.
 boolean removeFromIncrements(FIncrement value)
          Unmark the value.
 void removeYou()
          delete this stereotype
 java.lang.String setText(java.lang.String text)
          Sets the text attribute of the UMLStereotype object
protected  boolean setUMLStereotypeManager(UMLStereotypeManager value)
          Sets the uMLStereotypeManager attribute of the UMLStereotype object
 int sizeOfIncrements()
          number of increments of this stereotype.
 java.lang.String toString()
           
 
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, addToDiagrams, 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, getName, 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, setCutCopyPasteParent, setFirstOOGenToken, setGenerated, setInTransientMode, setLastOOGenToken, setName, setRepository, setUnparseModuleName, sizeOfAnnotations, sizeOfDiagrams, sizeOfElementReferences, sizeOfFsaObjects, sizeOfUserMessages, updateFSACollapsed, updateFSALocation, updateKeyInFsaObjects, writeAttributes
 
Methods inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
compareTo, getID, getUniqueID, getUniqueID, isGenerated, lessUniqueId, readAttributes, 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.FElement
addToAnnotations, addToDiagrams, addToElementReferences, addToElementReferences, addToUserMessages, deleteTokens, entriesOfElementReferences, getFirstOOGenToken, getFromFElementReferences, getLastOOGenToken, getName, hasInAnnotations, hasInDiagrams, hasInElementReferences, hasInElementReferences, hasKeyInElementReferences, isCoobraPersistent, isGenerated, iteratorOfAnnotations, iteratorOfDiagrams, iteratorOfElementReferences, iteratorOfUserMessages, keysOfElementReferences, removeAllFromAnnotations, removeAllFromDiagrams, removeAllFromElementReferences, removeAllFromUserMessages, removeFromAnnotations, removeFromDiagrams, removeFromElementReferences, removeFromElementReferences, removeFromUserMessages, removeKeyFromElementReferences, setCutCopyPasteParent, setFirstOOGenToken, setGenerated, setLastOOGenToken, setName, 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
 

Constructor Detail

UMLStereotype

public UMLStereotype()
Constructor for class UMLStereotype


UMLStereotype

public UMLStereotype(java.lang.String text)
Constructor for class UMLStereotype

Parameters:
text - text for the stereotype
Method Detail

setText

public java.lang.String setText(java.lang.String text)
Sets the text attribute of the UMLStereotype object

Specified by:
setText in interface FStereotype
Parameters:
text - The new text value
Returns:
the new value for the text attribute

getText

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

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

getUMLStereotypeManager

public UMLStereotypeManager getUMLStereotypeManager()
Get the uMLStereotypeManager attribute of the UMLStereotype object

Returns:
The uMLStereotypeManager value

setUMLStereotypeManager

protected boolean setUMLStereotypeManager(UMLStereotypeManager value)
Sets the uMLStereotypeManager attribute of the UMLStereotype object

Parameters:
value - The new uMLStereotypeManager value
Returns:
true when manager was changed

addToIncrements

public boolean addToIncrements(FIncrement value)
Mark the value with this stereotype

Specified by:
addToIncrements in interface FStereotype
Parameters:
value - The object that is marked
Returns:
true if object was not already marked

hasInIncrements

public boolean hasInIncrements(FIncrement value)
Check if increment has this stereotype.

Specified by:
hasInIncrements in interface FStereotype
Parameters:
value - increment of interest
Returns:
if value is marked with this stereotype

iteratorOfIncrements

public java.util.Iterator iteratorOfIncrements()
List all increments that have this stereotype.

Specified by:
iteratorOfIncrements in interface FStereotype
Returns:
iterator through UMLIncrements

removeAllFromIncrements

public void removeAllFromIncrements()
remove this stereotype from all increments.

Specified by:
removeAllFromIncrements in interface FStereotype

removeFromIncrements

public boolean removeFromIncrements(FIncrement value)
Unmark the value.

Specified by:
removeFromIncrements in interface FStereotype
Parameters:
value - increment that will no longer be of this stereotype
Returns:
true if increment had this stereotype

sizeOfIncrements

public int sizeOfIncrements()
number of increments of this stereotype.

Specified by:
sizeOfIncrements in interface FStereotype
Returns:
count of increments

addToUMLClass

public boolean addToUMLClass(UMLClass value)
Deprecated. use increments association instead

Access method for an one to n association. Just for loading old project files

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

createUnparseModuleName

protected java.lang.String createUnparseModuleName()
Description copied from class: ASGElement
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createUnparseModuleName in class ASGElement
Returns:
the name of the unparse module for this stereotype

toString

public java.lang.String toString()
Returns:
short string representation of current object

removeYou

public void removeYou()
delete this stereotype

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

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 ASGElement
Returns:
the logical parent of this element;