de.uni_paderborn.fujaba.asg
Class ASGUnparseInformation

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.asg.ASGElement
          extended byde.uni_paderborn.fujaba.asg.ASGUnparseInformation
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:
ASGCollapsableUnparseInformation

public class ASGUnparseInformation
extends ASGElement

Stores information about an UnparseInterface of an ASGElement

Associations

                       -------- 0..1   ASGInformation   0..1
 ASGUnparseInformation | name |------------------------------ ASGInformation
                       -------- parent        aSGInformation
 

Version:
$Revision: 1.15 $
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.FElement
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY
 
Constructor Summary
ASGUnparseInformation()
          default ctor
ASGUnparseInformation(ASGUnparseInformation toCopy)
          copy ctor
 
Method Summary
 boolean addToASGInformation(java.util.Map.Entry entry)
          Access method for an one to n association.
 boolean addToASGInformation(java.lang.String key, ASGInformation value)
          Access method for an one to n association.
protected  boolean addToPoints(java.util.Map.Entry entry)
          Deprecated. use addToASGInformation(String, ASGInformation)
 boolean addToPoints(java.lang.String key, java.awt.Point value)
          Adds a Point (location) for a specific FSAObject (propertyName).
 java.util.Iterator entriesOfASGInformation()
          No comment provided by developer, please add a comment to improve documentation.
 ASGElement getASGElement()
           
 ASGElement getASGElementKey()
           
 ASGInformation getFromASGInformation(java.lang.String key)
          Get the fromASGInformation attribute of the ASGUnparseInformation object
 FElement getParentElement()
          Query the logical parent of this element (e.g. package of a class, diagram of an object).
 boolean hasInASGInformation(ASGInformation value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInASGInformation(java.lang.String key, ASGInformation value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasKeyInASGInformation(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
static boolean isPointsCalled()
          flag for enabling conversion of old location info
 java.util.Iterator iteratorOfASGInformation()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator keysOfASGInformation()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromASGInformation()
          Remove information from the map without calling removeYou() on the objects.
 void removeAllFromASGInformationAndRemoveThem()
          Remove information from the map and call removeYou() on each object.
 boolean removeFromASGInformation(ASGInformation value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromASGInformation(java.lang.String key, ASGInformation value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeKeyFromASGInformation(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 void removeKeyFromPoints(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          remove all links to other objects
static void resetPointsCalled()
          reset flag for enabling conversion of old location info
 boolean setASGElement(ASGElement value)
          used for loading/redo (do not use directly)
 boolean setASGElement(ASGElement key, ASGElement value)
          assign an ASGElement to this information
 int sizeOfASGInformation()
          No comment provided by developer, please add a comment to improve documentation.
 
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, createUnparseModuleName, 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, getText, 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, 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

ASGUnparseInformation

public ASGUnparseInformation()
default ctor


ASGUnparseInformation

public ASGUnparseInformation(ASGUnparseInformation toCopy)
copy ctor

Parameters:
toCopy - what to copy
Method Detail

setASGElement

public boolean setASGElement(ASGElement key,
                             ASGElement value)
assign an ASGElement to this information

Parameters:
key - used to assign this information to the ASGElement
value - ASGElement
Returns:
true when value was changed

setASGElement

public boolean setASGElement(ASGElement value)
used for loading/redo (do not use directly)

Parameters:
value - new assigned ASGElement
Returns:
true when something was changed

getASGElement

public ASGElement getASGElement()
Returns:
assigned ASGElement

getASGElementKey

public ASGElement getASGElementKey()
Returns:
the key which is used to assign this information to the ASGElement

addToASGInformation

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

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

addToASGInformation

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

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

entriesOfASGInformation

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

Returns:
No description provided

getFromASGInformation

public ASGInformation getFromASGInformation(java.lang.String key)
Get the fromASGInformation attribute of the ASGUnparseInformation object

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

hasInASGInformation

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

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

hasInASGInformation

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

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

hasKeyInASGInformation

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

Parameters:
key - No description provided
Returns:
No description provided

iteratorOfASGInformation

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

Returns:
No description provided

keysOfASGInformation

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

Returns:
No description provided

removeAllFromASGInformation

public void removeAllFromASGInformation()
Remove information from the map without calling removeYou() on the objects.


removeAllFromASGInformationAndRemoveThem

public void removeAllFromASGInformationAndRemoveThem()
Remove information from the map and call removeYou() on each object.


removeFromASGInformation

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

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

removeFromASGInformation

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

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

removeKeyFromASGInformation

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

Parameters:
key - No description provided
Returns:
No description provided

sizeOfASGInformation

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

Returns:
No description provided

resetPointsCalled

public static void resetPointsCalled()
reset flag for enabling conversion of old location info


isPointsCalled

public static boolean isPointsCalled()
flag for enabling conversion of old location info

Returns:
true if addToPoints(String, java.awt.Point) was called

addToPoints

public boolean addToPoints(java.lang.String key,
                           java.awt.Point value)
Adds a Point (location) for a specific FSAObject (propertyName). Convenience method.

Parameters:
key - propertyName
value - point (location)
Returns:
No description provided

removeKeyFromPoints

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

Parameters:
key - No description provided

addToPoints

protected boolean addToPoints(java.util.Map.Entry entry)
Deprecated. use addToASGInformation(String, ASGInformation)

Adds a Point (location) for a specific FSAObject (propertyName), kept for loading old fprs

Parameters:
entry - Map.Entry that hold the pair
Returns:
No description provided

removeYou

public void removeYou()
remove all links to other objects

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

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;