de.uni_paderborn.fujaba.asg
Class ASGProject

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

public abstract class ASGProject
extends ASGElement

A project stores a lot of different diagrams.

Associations

             0..1                          n
 ASGProject --------------------------------- ASGDiagram
             project                 diags

             0..1   hasCurrentDiagram   0..1
 ASGProject --------------------------------- ASGDiagram
             currentProject   currentDiagram
 

Version:
1.0
Author:
Robert Wagner

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement
ASGElement.SortByNameComparator
 
Field Summary
static java.lang.String DIAGS_PROPERTY
          the key to indicate changes in the diags role of the project.
 
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
ASGProject()
           
 
Method Summary
 boolean addToDiags(FDiagram diagram)
          Adds a diagram to the project.
 ASGDiagram getCurrentDiagram()
           
 FElement getParentElement()
          Query the logical parent of this element (e.g. package of a class, diagram of an object).
 boolean hasInDiags(ASGDiagram diagram)
          returns true if the given diagram is found in the set of diagrams of this project.
 java.util.Iterator iteratorOfDiags()
          returns an iterator over all diags of this project.
 void removeAllFromDiags()
          removes all diagrams of the project.
 void removeFromDiags(ASGDiagram diagram)
          remove the given diagram from the project.
 void removeYou()
          method to help the garbage collector.
 ASGElement searchID(java.lang.String id)
          returns the ASGElement specified by the given search key.
 boolean setCurrentDiagram(ASGDiagram value)
           
 
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, 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
 

Field Detail

DIAGS_PROPERTY

public static final java.lang.String DIAGS_PROPERTY
the key to indicate changes in the diags role of the project.

See Also:
Constant Field Values
Constructor Detail

ASGProject

public ASGProject()
Method Detail

searchID

public ASGElement searchID(java.lang.String id)
returns the ASGElement specified by the given search key.

Overrides:
searchID in class ASGElement
Parameters:
id - the search key
Returns:
the ASGElement

hasInDiags

public boolean hasInDiags(ASGDiagram diagram)
returns true if the given diagram is found in the set of diagrams of this project.

Parameters:
diagram - the given diagram
Returns:
true if the diagram was found

iteratorOfDiags

public java.util.Iterator iteratorOfDiags()
returns an iterator over all diags of this project.

Returns:
Iterator the iterator.

addToDiags

public boolean addToDiags(FDiagram diagram)
Adds a diagram to the project.

Parameters:
diagram - the diagram
Returns:
No description provided

removeFromDiags

public void removeFromDiags(ASGDiagram diagram)
remove the given diagram from the project.

Parameters:
diagram - the diagram

removeAllFromDiags

public void removeAllFromDiags()
removes all diagrams of the project.


setCurrentDiagram

public boolean setCurrentDiagram(ASGDiagram value)
Parameters:
value - The new currentDiagram value
Returns:
Return Value description

getCurrentDiagram

public ASGDiagram getCurrentDiagram()
Returns:
The currentDiagram value

removeYou

public void removeYou()
method to help the garbage collector.

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;