de.uni_paderborn.fujaba.views
Class ViewDiagram

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.asg.ASGElement
          extended byde.uni_paderborn.fujaba.asg.ASGDiagram
              extended byde.uni_paderborn.fujaba.uml.UMLDiagram
                  extended byde.uni_paderborn.fujaba.views.ViewDiagram
All Implemented Interfaces:
java.lang.Comparable, FDiagram, FElement, FModelDiagram, de.uni_kassel.prop.InspectionAware, LogicUnparseInterface, de.tu_bs.coobra.ObjectChangeAware, de.upb.tools.pcs.PropertyChangeClient, de.upb.tools.pcs.PropertyChangeInterface, UniqueIdentifier

public class ViewDiagram
extends UMLDiagram

UMLDiagram that is a View of another Diagram.

It consists of several ViewDefinitions and an include-list defining the actual view.

Associations

              0..n    diagram    0..1
 ViewDiagram ------------------------- UMLDiagram
              views           diagram

              0..n       additionalItems        0..n
 ViewDiagram ---------------------------------------- UMLDiagramItem
              revAdditionalItems     additionalItems

              0..1    viewDefinitions    0..n
 ViewDiagram --------------------------------- ViewDefinition
              diagram         viewDefinitions
 

Version:
$Revision: 1.27 $
Author:
$Author: schneider $
See Also:
ViewDefinition

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.uml.UMLDiagram
ELEMENTKEY, PROPERTY_NAME
 
Fields inherited from class de.uni_paderborn.fujaba.asg.ASGDiagram
ELEMENTS_PROPERTY_KEY, PROJECT_PROPERTY
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FModelDiagram
CONSTRAINTS_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagram
ELEMENTS_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
ViewDiagram()
          Constructor for class ViewDiagram
ViewDiagram(java.lang.String name, UMLProject project)
          Constructor for class ViewDiagram
 
Method Summary
 boolean addToAdditionalItems(UMLDiagramItem value)
          Access method for an one to n association.
 boolean addToElements(UMLDiagramItem item)
          Access method for an one to n association.
 boolean addToItems(UMLDiagramItem item, UMLDiagram diag)
          This is needed for parsing XML-files
 boolean addToViewDefinitions(ViewDefinition value)
          Access method for an one to n association.
protected  boolean checkAndRemoveFromItems(java.util.Set items, ViewDefinition ignoreDef)
          No comment provided by developer, please add a comment to improve documentation.
protected  boolean checkAndRemoveFromItems(UMLDiagramItem item, ViewDefinition ignoreDef)
          No comment provided by developer, please add a comment to improve documentation.
 void delete()
          No comment provided by developer, please add a comment to improve documentation.
 void flushAdditionalItems()
          No comment provided by developer, please add a comment to improve documentation.
 UMLDiagram getDiagram()
          Get the diagram attribute of the ViewDiagram object
 UMLDiagram getOriginalDiagram()
          Get the originalDiagram attribute of the ViewDiagram object
 boolean hasInAdditionalItems(UMLDiagramItem value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInViewDefinitions(ViewDefinition value)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfAdditionalItems()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfViewDefinitions()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromAdditionalItems()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromElements()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromViewDefinitions()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromAdditionalItems(UMLDiagramItem value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromElements(UMLDiagramItem item)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromItemsNoParentSideEffects(UMLDiagramItem item)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromItemsWithoutIncrementAge(UMLDiagramItem item)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromViewDefinitions(ViewDefinition value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 boolean setDiagram(UMLDiagram value)
          Sets the diagram attribute of the ViewDiagram object
 int sizeOfAdditionalItems()
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfViewDefinitions()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String toString()
          No comment provided by developer, please add a comment to improve documentation.
 void update()
          No comment provided by developer, please add a comment to improve documentation.
 void update(boolean force)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDiagram
addToConstraints, addToElements, addToElements, addToItems, addToItems, addToViews, createUnparseModuleName, getCollabStat, getElementKey, getName, getSizeOfItems, getViewByName, hasInConstraints, hasInItems, hasInViews, iteratorOfConstraints, iteratorOfItems, iteratorOfViews, removeAllFromConstraints, removeAllFromItems, removeAllFromViews, removeFromConstraints, removeFromElementsWithSideEffects, removeFromItems, removeFromItems, removeFromItemsWithoutIncrementAge, removeFromViews, setCollabStat, setName, sizeOfConstraint, sizeOfItems, sizeOfViews
 
Methods inherited from class de.uni_paderborn.fujaba.asg.ASGDiagram
addToElements, addToUsages, getCurrentProject, getParentElement, getProject, getUtility, hasInElements, hasInUsages, iteratorOfElements, iteratorOfUsages, removeAllFromUsages, removeFromElements, removeFromUsages, searchID, setCurrentProject, setProject, setUtility, sizeOfElements, sizeOfUsages
 
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, 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, 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.FDiagram
addToElements, hasInElements, iteratorOfElements, removeFromElements, sizeOfElements
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
addToAnnotations, addToDiagrams, addToElementReferences, addToElementReferences, addToUserMessages, deleteTokens, entriesOfElementReferences, getFirstOOGenToken, getFromFElementReferences, getLastOOGenToken, getParentElement, getText, 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, 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

ViewDiagram

public ViewDiagram()
Constructor for class ViewDiagram


ViewDiagram

public ViewDiagram(java.lang.String name,
                   UMLProject project)
Constructor for class ViewDiagram

Parameters:
name - No description provided
project - No description provided
Method Detail

setDiagram

public boolean setDiagram(UMLDiagram value)
Sets the diagram attribute of the ViewDiagram object

Parameters:
value - The new diagram value
Returns:
No description provided

getDiagram

public UMLDiagram getDiagram()
Get the diagram attribute of the ViewDiagram object

Returns:
The diagram value

getOriginalDiagram

public UMLDiagram getOriginalDiagram()
Get the originalDiagram attribute of the ViewDiagram object

Returns:
The originalDiagram value

addToAdditionalItems

public boolean addToAdditionalItems(UMLDiagramItem value)
Access method for an one to n association.

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

hasInAdditionalItems

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

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

iteratorOfAdditionalItems

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

Returns:
No description provided

sizeOfAdditionalItems

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

Returns:
No description provided

removeFromAdditionalItems

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

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

removeAllFromAdditionalItems

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


addToViewDefinitions

public boolean addToViewDefinitions(ViewDefinition value)
Access method for an one to n association.

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

hasInViewDefinitions

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

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

iteratorOfViewDefinitions

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

Returns:
No description provided

sizeOfViewDefinitions

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

Returns:
No description provided

removeFromViewDefinitions

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

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

removeAllFromViewDefinitions

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


flushAdditionalItems

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


update

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


update

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

Parameters:
force - No description provided

addToElements

public boolean addToElements(UMLDiagramItem item)
Access method for an one to n association.

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

addToItems

public boolean addToItems(UMLDiagramItem item,
                          UMLDiagram diag)
This is needed for parsing XML-files

Parameters:
item - The object added.
diag - The object added.
Returns:
No description provided

removeFromElements

public boolean removeFromElements(UMLDiagramItem item)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
item - No description provided
Returns:
No description provided

removeFromItemsWithoutIncrementAge

public boolean removeFromItemsWithoutIncrementAge(UMLDiagramItem item)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
item - No description provided
Returns:
No description provided

removeFromItemsNoParentSideEffects

public boolean removeFromItemsNoParentSideEffects(UMLDiagramItem item)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
item - No description provided
Returns:
No description provided

removeAllFromElements

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

Specified by:
removeAllFromElements in interface FDiagram
Overrides:
removeAllFromElements in class ASGDiagram

checkAndRemoveFromItems

protected boolean checkAndRemoveFromItems(UMLDiagramItem item,
                                          ViewDefinition ignoreDef)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
item - No description provided
ignoreDef - No description provided
Returns:
No description provided

checkAndRemoveFromItems

protected boolean checkAndRemoveFromItems(java.util.Set items,
                                          ViewDefinition ignoreDef)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
items - No description provided
ignoreDef - No description provided
Returns:
No description provided

removeYou

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

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

toString

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

Returns:
No description provided

delete

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

Overrides:
delete in class UMLDiagram