de.uni_paderborn.fujaba.asg
Class ASGElement

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.asg.ASGElement
All Implemented Interfaces:
java.lang.Comparable, FElement, 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:
ASGAnnotation, ASGDiagram, ASGElementRef, ASGInformation, ASGProject, ASGUnparseInformation, ASTNode, UMLIncrement

public abstract class ASGElement
extends BasicIncrement
implements LogicUnparseInterface, de.upb.tools.pcs.PropertyChangeClient, de.tu_bs.coobra.ObjectChangeAware, de.uni_kassel.prop.InspectionAware, FElement

This is the base class for all model elements contained in the abstract syntax graph.

Associations

            0..n    hasElements    0..n
 ASGElement --------------------------- ASGDiagram
            elements           diagrams

            -------------- 0..1     hasElementReferences    0..1
 ASGElement | getClass() |--------------------------------------- ASGElementRef
            -------------- element             elementReferences

               ------- 0..n   annotations   0..n
 ASGAnnotation | key |--------------------------- ASGElement
               ------- annotations      elements

             0..1                        0..1
 ASGElement ---------------------------------- OOGenToken
             asgElement       firstOOGenToken

             0..1                           0..1
 ASGElement ------------------------------------- OOGenToken
             lastUmlIncrement     lastOOGenToken
 

Version:
$Revision: 1.112.2.7 $
Author:
$Author: fklar $

Nested Class Summary
static class ASGElement.SortByNameComparator
          Comparator for sorting ASGElements by name
 
Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
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
  ASGElement()
          Constructor.
protected ASGElement(boolean coobraPersistent)
          Constructor for class ASGElement
 
Method Summary
 void acknowledgeChange(de.tu_bs.coobra.ObjectChange change)
          CoObRA: This method is called to notify the object, that changes to its fields have been made.
static void addAdditionalListener(java.beans.PropertyChangeListener listener)
          Adds an additional property change listener.
 void addPointToUnparseInformation(ASGElement parent, java.lang.String property, java.awt.Point point)
          add a point information of a specific parent property
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 boolean addToAnnotations(java.lang.String key, FAnnotation value)
          Access method for an one to n association.
 void addToDiagrams(FDiagram diagram)
          Access method for an one to n association.
 boolean addToElementReferences(java.util.Map.Entry entry)
          Access method for an one to n association.
 boolean addToElementReferences(java.lang.String key, FElementRef value)
          Access method for an one to n association.
 void addToFsaObjects(FSAObject elem)
           +---------------------+ 0..1 swingAdapter 0..1 ASGElement | getQualifiedName () |---------------------------- FSAObject +---------------------+ umlIncr fsaObjects Where qualifiedName is DiagramName.PropertyName
 void addToLocations(java.util.Map.Entry entry)
          Deprecated. use addToUnparseInformations(ASGElement, ASGUnparseInformation)
 void addToLocations(java.lang.String qualifier, PointIncrement incr)
          Deprecated. use addToUnparseInformations(ASGElement, ASGUnparseInformation)
 void addToPropertyChangeListeners(java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 void addToPropertyChangeListeners(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 boolean addToUnparseInformations(ASGElement key, ASGUnparseInformation value)
          add an information about unparsing of this ASGElement
 boolean addToUnparseInformations(java.util.Map.Entry entry)
           
 boolean addToUserMessages(Message value)
          Stick a user message onto this element.
protected  java.lang.String createUnparseModuleName()
          No comment provided by developer, please add a comment to improve documentation.
 void deleteTokens()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Enumeration elementsOfDiagrams()
          Deprecated. Use iteratorOfDiagrams instead
 java.util.Iterator entriesOfElementReferences()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator entriesOfFsaObjects()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator entriesOfUnparseInformations()
           
 void fireEvent(java.beans.PropertyChangeEvent event)
          No comment provided by developer, please add a comment to improve documentation.
protected  void firePropertyChange(java.beans.PropertyChangeEvent e)
          fires property change events via the property change support
(warns when to CoObRA persistency listener is subscribed)
protected  void firePropertyChange(java.lang.String name, boolean oldValue, boolean newValue)
          No comment provided by developer, please add a comment to improve documentation.
protected  void firePropertyChange(java.lang.String name, double oldValue, double newValue)
          No comment provided by developer, please add a comment to improve documentation.
protected  void firePropertyChange(java.lang.String name, int oldValue, int newValue)
          No comment provided by developer, please add a comment to improve documentation.
protected  void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getCoObRAId()
          CoObRA: Attention - Getter for CoObRA-ID!
 FSAObject getFirstFromFSAObjects()
          Get the firstFromFSAObjects attribute of the ASGElement object
 OOGenToken getFirstOOGenToken()
          Get the firstOOGenToken attribute of the ASGElement object
 ASGElementRef getFromElementReferences(java.lang.String key)
          Get the fromReferences attribute of the ASGElement object
 FElementRef getFromFElementReferences(java.lang.String key)
          Get the fromFElementReferences attribute of the ASGElement object
 FSAObject getFromFsaObjects(java.lang.String qualifiedName)
          Get the fromFsaObjects attribute of the ASGElement object
 ASGUnparseInformation getFromUnparseInformations(ASGElement key)
           
 FSAInterface getFSAInterface()
          Get the fSAInterface attribute of the ASGElement object
 java.lang.String getLastModified()
          Get the lastModified attribute of the ASGElement object
 OOGenToken getLastOOGenToken()
          Get the lastOOGenToken attribute of the ASGElement object
 java.lang.String getName()
          Get the name attribute of the ASGElement object
 FElement getParentElement()
          Query the logical parent of this element (e.g. package of a class, diagram of an object).
 java.awt.Point getPointFromUnparseInformation(ASGElement parent, java.lang.String property)
          Convenience method for getUnparseInformation.
 java.beans.PropertyChangeSupport getPropertyChangeSupport()
          Get the propertyChangeSupport attribute of the ASGElement object
 de.tu_bs.coobra.LocalRepository getRepository()
          CoObRA: Obtain the repository of this object
 java.lang.String getText()
          Get the text attribute of the ASGElement object
static java.util.Set getTransientElements()
          Get the transientElements attribute of the ASGElement class
 java.lang.String getUnparseModuleName()
          Get the unparseModuleName attribute of the ASGElement object
protected  java.lang.String getUnparseModuleNameImpl()
          Get the unparseModuleNameImpl attribute of the ASGElement object
 boolean hasInAnnotations(FAnnotation value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInDiagrams(FDiagram diagram)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInElementReferences(FElementRef value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInElementReferences(java.lang.String key, FElementRef value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInFsaObjects(FSAObject elem)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasKeyInElementReferences(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasKeyInFsaObjects(java.lang.String qualifiedName)
          No comment provided by developer, please add a comment to improve documentation.
protected  void initElementListener()
          Lets the element listener react on property changes of the calling ASGElement.
protected  void initPersistency()
          enables the persistencyListener when class is loaded
 boolean isCoobraPersistent()
          Get the coobraPersistent attribute of the ASGElement object
 boolean isInspectableField(java.lang.String fieldName)
          Should return true when an inspection of the named field is senseful.
static boolean isInTransientMode()
           
protected  boolean isPersistencyChange(java.beans.PropertyChangeEvent e)
          Get the persistencyChange attribute of the ASGElement object
 boolean isReadOnly()
          Deprecated. for backward compatibility only
 java.util.Iterator iteratorOfAnnotations()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfElementReferences()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfFsaObjects()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfKeyFromUnparseInformations()
           
 java.util.Iterator iteratorOfUnparseInformations()
           
 java.util.Iterator iteratorOfUserMessages()
          Iterate through all user messages this element if context of.
 java.util.Iterator keysOfElementReferences()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator keysOfFsaObjects()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator keysOfUnparseInformations()
           
 java.util.Enumeration proposeFieldValues(java.lang.String fieldName, java.lang.Class fieldClass)
          Returns proposals for values that could be inserted into the field (for property editor)
static void removeAdditionalListener(java.beans.PropertyChangeListener listener)
          Removes an additional property change listener.
 void removeAllFromAnnotations()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromElementReferences()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromFsaObjects()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromUnparseInformations()
          remove all
 void removeAllFromUserMessages()
          remove this element from all message contexts.
 boolean removeFromAnnotations(java.lang.String key, FAnnotation value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromDiagrams(FDiagram diagram)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromElementReferences(FElementRef value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromElementReferences(java.lang.String key, FElementRef value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromFsaObjects(FSAObject elem)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromPropertyChangeListeners(java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromPropertyChangeListeners(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromUnparseInformations(ASGElement key)
           
 boolean removeFromUnparseInformations(ASGElement key, ASGUnparseInformation value)
           
 boolean removeFromUnparseInformations(ASGUnparseInformation value)
           
 boolean removeFromUserMessages(Message value)
          Remove this element from the context of the message.
 boolean removeKeyFromElementReferences(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 void removeKeyFromFsaObjects(java.lang.String qualifiedName)
          No comment provided by developer, please add a comment to improve documentation.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          Isolates the object so the garbage collector can remove it.
 void saveFSAProperties()
          save properties of FSAs
 void saveLocations(boolean removeOldLocations)
          save locations of FSAs
 ASGElement searchID(java.lang.String id)
          Searches the ASG tree for a given id
 void setCoObRAId(java.lang.String coobraId)
          CoObRA: Setter for CoObRA-ID.
 void setCutCopyPasteParent(FElement parent)
          Hangs the current ASGElement into the ASG-tree.
 boolean setFirstOOGenToken(OOGenToken value)
          Sets the firstOOGenToken attribute of the ASGElement object
 void setGenerated(boolean value)
          Sets the generated attribute of the BasicIncrement object
static void setInTransientMode(boolean inTransientMode)
          Deprecated. ARG!!! Use _at_least_ something thread dependent!
 boolean setLastOOGenToken(OOGenToken value)
          Sets the lastOOGenToken attribute of the ASGElement object
 void setName(java.lang.String newName)
          Sets the name attribute of the ASGElement object
 boolean setRepository(de.tu_bs.coobra.LocalRepository value)
          CoObRA: Changes the repository this object resides in
protected  void setUnparseModuleName(java.lang.String name)
          Sets the unparseModuleName attribute of the ASGElement object
 int sizeOfAnnotations()
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfElementReferences()
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfFsaObjects()
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfUserMessages()
           
 void updateFSACollapsed(ASGElement parent, java.lang.String propertyName, boolean collapsed)
          un/collapse all FSAObject with the specified propertyName and logical parent
 void updateFSALocation(ASGElement parent, java.lang.String propertyName, java.awt.Point location)
          moves all FSAObject with the specified propertyName and logical parent to the location
 void updateKeyInFsaObjects(java.lang.String oldKey, FSAObject object)
          No comment provided by developer, please add a comment to improve documentation.
 void writeAttributes(java.lang.StringBuffer data, de.upb.tools.fca.FTreeSet setOfNeighbours)
          This method is overridden to save the location of all associated FSAObjects in a hashtable.
 
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, toString, wait, wait, wait
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
isGenerated
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier
getID
 

Constructor Detail

ASGElement

public ASGElement()
Constructor. This constructor inspects the list of registered additional listeners and adds them to the property change support. It also allows CoObRa to recognize creation.


ASGElement

protected ASGElement(boolean coobraPersistent)
Constructor for class ASGElement

Parameters:
coobraPersistent - No description provided
Method Detail

searchID

public ASGElement searchID(java.lang.String id)
Searches the ASG tree for a given id

Parameters:
id - The id to search for.
Returns:
The Element with the given id, null if not found.

isCoobraPersistent

public boolean isCoobraPersistent()
Get the coobraPersistent attribute of the ASGElement object

Specified by:
isCoobraPersistent in interface FElement
Returns:
The coobraPersistent value

isReadOnly

public boolean isReadOnly()
Deprecated. for backward compatibility only

Returns:
always false

sizeOfDiagrams

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

Specified by:
sizeOfDiagrams in interface FElement
Returns:
No description provided

hasInDiagrams

public boolean hasInDiagrams(FDiagram diagram)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
hasInDiagrams in interface FElement
Parameters:
diagram - No description provided
Returns:
No description provided

iteratorOfDiagrams

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

Specified by:
iteratorOfDiagrams in interface FElement
Returns:
No description provided

addToDiagrams

public void addToDiagrams(FDiagram diagram)
Access method for an one to n association.

Specified by:
addToDiagrams in interface FElement
Parameters:
diagram - The object added.

removeFromDiagrams

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

Specified by:
removeFromDiagrams in interface FElement
Parameters:
diagram - No description provided

removeAllFromDiagrams

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

Specified by:
removeAllFromDiagrams in interface FElement

elementsOfDiagrams

public java.util.Enumeration elementsOfDiagrams()
Deprecated. Use iteratorOfDiagrams instead

No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

hasInElementReferences

public boolean hasInElementReferences(FElementRef value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
hasInElementReferences in interface FElement
Parameters:
value - No description provided
Returns:
No description provided

hasInElementReferences

public boolean hasInElementReferences(java.lang.String key,
                                      FElementRef value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
hasInElementReferences in interface FElement
Parameters:
key - No description provided
value - No description provided
Returns:
No description provided

hasKeyInElementReferences

public boolean hasKeyInElementReferences(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
hasKeyInElementReferences in interface FElement
Parameters:
key - No description provided
Returns:
No description provided

iteratorOfElementReferences

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

Specified by:
iteratorOfElementReferences in interface FElement
Returns:
No description provided

keysOfElementReferences

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

Specified by:
keysOfElementReferences in interface FElement
Returns:
No description provided

entriesOfElementReferences

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

Specified by:
entriesOfElementReferences in interface FElement
Returns:
No description provided

sizeOfElementReferences

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

Specified by:
sizeOfElementReferences in interface FElement
Returns:
No description provided

getFromElementReferences

public ASGElementRef getFromElementReferences(java.lang.String key)
Get the fromReferences attribute of the ASGElement object

Parameters:
key - No description provided
Returns:
The fromReferences value

getFromFElementReferences

public FElementRef getFromFElementReferences(java.lang.String key)
Get the fromFElementReferences attribute of the ASGElement object

Specified by:
getFromFElementReferences in interface FElement
Parameters:
key - No description provided
Returns:
The fromFElementReferences value

addToElementReferences

public boolean addToElementReferences(java.lang.String key,
                                      FElementRef value)
Access method for an one to n association.

Specified by:
addToElementReferences in interface FElement
Parameters:
key - The object added.
value - The object added.
Returns:
No description provided

addToElementReferences

public boolean addToElementReferences(java.util.Map.Entry entry)
Access method for an one to n association.

Specified by:
addToElementReferences in interface FElement
Parameters:
entry - The object added.
Returns:
No description provided

removeFromElementReferences

public boolean removeFromElementReferences(FElementRef value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeFromElementReferences in interface FElement
Parameters:
value - No description provided
Returns:
No description provided

removeFromElementReferences

public boolean removeFromElementReferences(java.lang.String key,
                                           FElementRef value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeFromElementReferences in interface FElement
Parameters:
key - No description provided
value - No description provided
Returns:
No description provided

removeKeyFromElementReferences

public boolean removeKeyFromElementReferences(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeKeyFromElementReferences in interface FElement
Parameters:
key - No description provided
Returns:
No description provided

removeAllFromElementReferences

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

Specified by:
removeAllFromElementReferences in interface FElement

addToAnnotations

public boolean addToAnnotations(java.lang.String key,
                                FAnnotation value)
Access method for an one to n association.

Specified by:
addToAnnotations in interface FElement
Parameters:
key - The object added.
value - The object added.
Returns:
No description provided

iteratorOfAnnotations

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

Specified by:
iteratorOfAnnotations in interface FElement
Returns:
No description provided

hasInAnnotations

public boolean hasInAnnotations(FAnnotation value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
hasInAnnotations in interface FElement
Parameters:
value - No description provided
Returns:
No description provided

sizeOfAnnotations

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

Specified by:
sizeOfAnnotations in interface FElement
Returns:
No description provided

removeFromAnnotations

public boolean removeFromAnnotations(java.lang.String key,
                                     FAnnotation value)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeFromAnnotations in interface FElement
Parameters:
key - No description provided
value - No description provided
Returns:
No description provided

removeAllFromAnnotations

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

Specified by:
removeAllFromAnnotations in interface FElement

setFirstOOGenToken

public boolean setFirstOOGenToken(OOGenToken value)
Sets the firstOOGenToken attribute of the ASGElement object

Specified by:
setFirstOOGenToken in interface FElement
Parameters:
value - The new firstOOGenToken value
Returns:
No description provided

getFirstOOGenToken

public OOGenToken getFirstOOGenToken()
Get the firstOOGenToken attribute of the ASGElement object

Specified by:
getFirstOOGenToken in interface FElement
Returns:
The firstOOGenToken value

setLastOOGenToken

public boolean setLastOOGenToken(OOGenToken value)
Sets the lastOOGenToken attribute of the ASGElement object

Specified by:
setLastOOGenToken in interface FElement
Parameters:
value - The new lastOOGenToken value
Returns:
No description provided

getLastOOGenToken

public OOGenToken getLastOOGenToken()
Get the lastOOGenToken attribute of the ASGElement object

Specified by:
getLastOOGenToken in interface FElement
Returns:
The lastOOGenToken value

deleteTokens

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

Specified by:
deleteTokens in interface FElement

getFSAInterface

public FSAInterface getFSAInterface()
Get the fSAInterface attribute of the ASGElement object

Specified by:
getFSAInterface in interface LogicUnparseInterface
Returns:
The fSAInterface value

getUnparseModuleNameImpl

protected final java.lang.String getUnparseModuleNameImpl()
Get the unparseModuleNameImpl attribute of the ASGElement object

Returns:
The unparseModuleNameImpl value

setUnparseModuleName

protected void setUnparseModuleName(java.lang.String name)
Sets the unparseModuleName attribute of the ASGElement object

Parameters:
name - The new unparseModuleName value

createUnparseModuleName

protected java.lang.String createUnparseModuleName()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getUnparseModuleName

public final java.lang.String getUnparseModuleName()
Get the unparseModuleName attribute of the ASGElement object

Specified by:
getUnparseModuleName in interface LogicUnparseInterface
Returns:
The unparseModuleName value

addToFsaObjects

public void addToFsaObjects(FSAObject elem)
            +---------------------+ 0..1   swingAdapter   0..1
 ASGElement | getQualifiedName () |---------------------------- FSAObject
            +---------------------+ umlIncr         fsaObjects
 
Where qualifiedName is DiagramName.PropertyName

Parameters:
elem - The object added.

getFromFsaObjects

public FSAObject getFromFsaObjects(java.lang.String qualifiedName)
Get the fromFsaObjects attribute of the ASGElement object

Parameters:
qualifiedName - No description provided
Returns:
The fromFsaObjects value

getFirstFromFSAObjects

public FSAObject getFirstFromFSAObjects()
Get the firstFromFSAObjects attribute of the ASGElement object

Returns:
The firstFromFSAObjects value

sizeOfFsaObjects

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

Returns:
No description provided

hasInFsaObjects

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

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

hasKeyInFsaObjects

public boolean hasKeyInFsaObjects(java.lang.String qualifiedName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
qualifiedName - No description provided
Returns:
No description provided

iteratorOfFsaObjects

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

Returns:
No description provided

keysOfFsaObjects

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

Returns:
No description provided

entriesOfFsaObjects

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

Returns:
No description provided

removeFromFsaObjects

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

Parameters:
elem - No description provided

removeKeyFromFsaObjects

public void removeKeyFromFsaObjects(java.lang.String qualifiedName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
qualifiedName - No description provided

removeAllFromFsaObjects

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


updateKeyInFsaObjects

public void updateKeyInFsaObjects(java.lang.String oldKey,
                                  FSAObject object)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
oldKey - No description provided
object - No description provided

removeFromUnparseInformations

public boolean removeFromUnparseInformations(ASGElement key,
                                             ASGUnparseInformation value)
Parameters:
key - to be removed
value - information
Returns:
true when something was changed
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

removeFromUnparseInformations

public boolean removeFromUnparseInformations(ASGElement key)
Parameters:
key - key to be removed
Returns:
true when something was changed
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

removeFromUnparseInformations

public boolean removeFromUnparseInformations(ASGUnparseInformation value)
Parameters:
value - information to be removed
Returns:
true when something was changed
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

removeAllFromUnparseInformations

public void removeAllFromUnparseInformations()
remove all

See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

keysOfUnparseInformations

public java.util.Iterator keysOfUnparseInformations()
Returns:
No description provided
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

entriesOfUnparseInformations

public java.util.Iterator entriesOfUnparseInformations()
Returns:
No description provided
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

addToUnparseInformations

public boolean addToUnparseInformations(ASGElement key,
                                        ASGUnparseInformation value)
add an information about unparsing of this ASGElement

Parameters:
key - parent of the ASGElement regarding this unparse information
value - information
Returns:
true when information was added

addToUnparseInformations

public boolean addToUnparseInformations(java.util.Map.Entry entry)
Parameters:
entry - what to add
Returns:
true when entry was added
See Also:
addToUnparseInformations(ASGElement, ASGUnparseInformation)

iteratorOfKeyFromUnparseInformations

public java.util.Iterator iteratorOfKeyFromUnparseInformations()
Returns:
iterator through all keys (parents) in uparseInformations

iteratorOfUnparseInformations

public java.util.Iterator iteratorOfUnparseInformations()
Returns:
iterator through all entries in uparseInformations

getFromUnparseInformations

public ASGUnparseInformation getFromUnparseInformations(ASGElement key)
Parameters:
key - parent
Returns:
unparse information

saveLocations

public void saveLocations(boolean removeOldLocations)
save locations of FSAs

Parameters:
removeOldLocations - unused

saveFSAProperties

public void saveFSAProperties()
save properties of FSAs


updateFSALocation

public void updateFSALocation(ASGElement parent,
                              java.lang.String propertyName,
                              java.awt.Point location)
moves all FSAObject with the specified propertyName and logical parent to the location

Parameters:
parent - logical parent of the moved fsa
propertyName - which objects to move
location - where to move

updateFSACollapsed

public void updateFSACollapsed(ASGElement parent,
                               java.lang.String propertyName,
                               boolean collapsed)
un/collapse all FSAObject with the specified propertyName and logical parent

Parameters:
parent - logical parent of the moved fsa
propertyName - which objects to move
collapsed - to collapse or not to collapse

writeAttributes

public void writeAttributes(java.lang.StringBuffer data,
                            de.upb.tools.fca.FTreeSet setOfNeighbours)
This method is overridden to save the location of all associated FSAObjects in a hashtable.

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

addToLocations

public void addToLocations(java.util.Map.Entry entry)
Deprecated. use addToUnparseInformations(ASGElement, ASGUnparseInformation)

keep for loading old fprs

Parameters:
entry - The object added.

addPointToUnparseInformation

public void addPointToUnparseInformation(ASGElement parent,
                                         java.lang.String property,
                                         java.awt.Point point)
add a point information of a specific parent property

Parameters:
parent - key for the unparseInfoamtion
property - property affected property (key)
point - new value

getPointFromUnparseInformation

public java.awt.Point getPointFromUnparseInformation(ASGElement parent,
                                                     java.lang.String property)
Convenience method for getUnparseInformation.

Parameters:
parent - regarding parent
property - affected property (key)
Returns:
the position of this ASGElement property

addToLocations

public void addToLocations(java.lang.String qualifier,
                           PointIncrement incr)
Deprecated. use addToUnparseInformations(ASGElement, ASGUnparseInformation)

remains for loading old fprs

Parameters:
qualifier - The object added.
incr - The object added.

getPropertyChangeSupport

public java.beans.PropertyChangeSupport getPropertyChangeSupport()
Get the propertyChangeSupport attribute of the ASGElement object

Specified by:
getPropertyChangeSupport in interface de.upb.tools.pcs.PropertyChangeInterface
Returns:
The propertyChangeSupport value

addToPropertyChangeListeners

public void addToPropertyChangeListeners(java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Parameters:
listener - The object added.

addToPropertyChangeListeners

public void addToPropertyChangeListeners(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Parameters:
propertyName - The object added.
listener - The object added.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Specified by:
addPropertyChangeListener in interface de.upb.tools.pcs.PropertyChangeClient
Parameters:
listener - The object added.

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Specified by:
addPropertyChangeListener in interface de.upb.tools.pcs.PropertyChangeClient
Parameters:
propertyName - The object added.
listener - The object added.

removeFromPropertyChangeListeners

public void removeFromPropertyChangeListeners(java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
listener - No description provided

removeFromPropertyChangeListeners

public void removeFromPropertyChangeListeners(java.lang.String propertyName,
                                              java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
propertyName - No description provided
listener - No description provided

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removePropertyChangeListener in interface de.upb.tools.pcs.PropertyChangeClient
Parameters:
listener - No description provided

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removePropertyChangeListener in interface de.upb.tools.pcs.PropertyChangeClient
Parameters:
propertyName - No description provided
listener - No description provided

fireEvent

public void fireEvent(java.beans.PropertyChangeEvent event)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
event - No description provided

firePropertyChange

protected void firePropertyChange(java.beans.PropertyChangeEvent e)
fires property change events via the property change support
(warns when to CoObRA persistency listener is subscribed)

Parameters:
e - what to be fired

getRepository

public final de.tu_bs.coobra.LocalRepository getRepository()
CoObRA: Obtain the repository of this object

Specified by:
getRepository in interface de.tu_bs.coobra.ObjectChangeAware
Returns:
the repository this object resides in

setRepository

public boolean setRepository(de.tu_bs.coobra.LocalRepository value)
CoObRA: Changes the repository this object resides in

Specified by:
setRepository in interface de.tu_bs.coobra.ObjectChangeAware
Parameters:
value - The new repository value
Returns:
true when repository was changed

firePropertyChange

protected void firePropertyChange(java.lang.String name,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
oldValue - No description provided
newValue - No description provided

acknowledgeChange

public void acknowledgeChange(de.tu_bs.coobra.ObjectChange change)
CoObRA: This method is called to notify the object, that changes to its fields have been made.

Specified by:
acknowledgeChange in interface de.tu_bs.coobra.ObjectChangeAware
Parameters:
change - the change that has occured, may be null to indicate an unknown change or to summarize multiple changes

getCoObRAId

public java.lang.String getCoObRAId()
CoObRA: Attention - Getter for CoObRA-ID!

Specified by:
getCoObRAId in interface de.tu_bs.coobra.ObjectChangeAware
Returns:
the id of the object.

setCoObRAId

public void setCoObRAId(java.lang.String coobraId)
CoObRA: Setter for CoObRA-ID. May only be called by LocalRepository!

Specified by:
setCoObRAId in interface de.tu_bs.coobra.ObjectChangeAware
Parameters:
coobraId - New value of id.

firePropertyChange

protected void firePropertyChange(java.lang.String name,
                                  boolean oldValue,
                                  boolean newValue)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
oldValue - No description provided
newValue - No description provided

firePropertyChange

protected void firePropertyChange(java.lang.String name,
                                  int oldValue,
                                  int newValue)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
oldValue - No description provided
newValue - No description provided

firePropertyChange

protected void firePropertyChange(java.lang.String name,
                                  double oldValue,
                                  double newValue)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
oldValue - No description provided
newValue - No description provided

addAdditionalListener

public static void addAdditionalListener(java.beans.PropertyChangeListener listener)
Adds an additional property change listener. If, e.g. a plugin wants to be notified about changes in the ASG, it has to register a listener at startup time. Each time a new ASGElement is created, all registered listeners are added to the propertyChangeSupport of this element.

Parameters:
listener -

isPersistencyChange

protected boolean isPersistencyChange(java.beans.PropertyChangeEvent e)
Get the persistencyChange attribute of the ASGElement object

Parameters:
e - No description provided
Returns:
The persistencyChange value

initElementListener

protected void initElementListener()
Lets the element listener react on property changes of the calling ASGElement.


initPersistency

protected void initPersistency()
enables the persistencyListener when class is loaded


removeAdditionalListener

public static void removeAdditionalListener(java.beans.PropertyChangeListener listener)
Removes an additional property change listener.

Parameters:
listener -

getName

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

Specified by:
getName in interface FElement
Returns:
The name value

setName

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

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

getText

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

Specified by:
getText in interface FElement
Returns:
The text value

removeYou

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

Specified by:
removeYou in interface de.tu_bs.coobra.ObjectChangeAware
Overrides:
removeYou in class BasicIncrement

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

setGenerated

public void setGenerated(boolean value)
Sets the generated attribute of the BasicIncrement object

Specified by:
setGenerated in interface FElement
Overrides:
setGenerated in class BasicIncrement
Parameters:
value - The new generated value

isInspectableField

public boolean isInspectableField(java.lang.String fieldName)
Should return true when an inspection of the named field is senseful. (for property editor)

Specified by:
isInspectableField in interface de.uni_kassel.prop.InspectionAware
Parameters:
fieldName - the name of the field
Returns:
false when the field should not be inspected.

proposeFieldValues

public java.util.Enumeration proposeFieldValues(java.lang.String fieldName,
                                                java.lang.Class fieldClass)
Returns proposals for values that could be inserted into the field (for property editor)

Specified by:
proposeFieldValues in interface de.uni_kassel.prop.InspectionAware
Parameters:
fieldName - name of the field that should get the values
fieldClass - class of the field for which to propose values
Returns:
an Iterator through value proposals, may return null when no proposals are available

getLastModified

public java.lang.String getLastModified()
Get the lastModified attribute of the ASGElement object

Returns:
The lastModified value

isInTransientMode

public static boolean isInTransientMode()
Returns:
Returns the inTransientMode.

setInTransientMode

public static void setInTransientMode(boolean inTransientMode)
Deprecated. ARG!!! Use _at_least_ something thread dependent!

Parameters:
inTransientMode - The inTransientMode to set.

getTransientElements

public static java.util.Set getTransientElements()
Get the transientElements attribute of the ASGElement class

Returns:
The transientElements value

addToUserMessages

public boolean addToUserMessages(Message value)
Stick a user message onto this element. This element will become part of the context of the message.

Specified by:
addToUserMessages in interface FElement
Parameters:
value - new message
Returns:
true if something was changed

iteratorOfUserMessages

public java.util.Iterator iteratorOfUserMessages()
Iterate through all user messages this element if context of.

Specified by:
iteratorOfUserMessages in interface FElement
Returns:
iterator through Messages

removeAllFromUserMessages

public void removeAllFromUserMessages()
remove this element from all message contexts.

Specified by:
removeAllFromUserMessages in interface FElement

removeFromUserMessages

public boolean removeFromUserMessages(Message value)
Remove this element from the context of the message.

Specified by:
removeFromUserMessages in interface FElement
Parameters:
value - which message
Returns:
true if something was changed

sizeOfUserMessages

public int sizeOfUserMessages()
Specified by:
sizeOfUserMessages in interface FElement
Returns:
number of messages this element is context of.

getParentElement

public FElement getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object). This method allows to navigate in direction of the model root (project) from any element within a project.

Specified by:
getParentElement in interface FElement
Returns:
the logical parent of this element, may not return null unless this is the top level node (project) or is not contained in any parent yet