org.argouml.uml.ui
Class SourcePathControllerImpl

java.lang.Object
  extended byorg.argouml.uml.ui.SourcePathControllerImpl
All Implemented Interfaces:
SourcePathController

public class SourcePathControllerImpl
extends Object
implements SourcePathController

Implements the source path controller. NOTE: If requested in the future this could be returned from the language modules.

Since:
0.17.1

Field Summary
private static String SRC_PATH_TAG
          The string used to store source path string as tagged value.
 
Constructor Summary
SourcePathControllerImpl()
           
 
Method Summary
 void deleteSourcePath(Object modelElement)
          Delete the source path settings of the model element.
 Collection getAllModelElementsWithSourcePath()
          Retrieve a collection of all model elements that have source path settings.
 File getSourcePath(Object modelElement)
          From a model element retrieve its source path or null if it does not have a direct one (if that happens, you must use recursively its parent or the parent's parent)
 SourcePathTableModel getSourcePathSettings()
          Provide the complete list of existing source path settings for a model on request.
 void setSourcePath(Object modelElement, File sourcePath)
          Set the source path for a specific model element (package or classifier) based on a given File object
 void setSourcePath(SourcePathTableModel srcPaths)
          Set the source path of the model from the specified settings.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SRC_PATH_TAG

private static final String SRC_PATH_TAG
The string used to store source path string as tagged value. [Shouldn't this be in the Model subsystem?]

See Also:
Constant Field Values
Constructor Detail

SourcePathControllerImpl

public SourcePathControllerImpl()
Method Detail

getSourcePath

public File getSourcePath(Object modelElement)
Description copied from interface: SourcePathController
From a model element retrieve its source path or null if it does not have a direct one (if that happens, you must use recursively its parent or the parent's parent)

Specified by:
getSourcePath in interface SourcePathController
Parameters:
modelElement - model element
Returns:
The file reference that represents the source file.
See Also:
SourcePathController.getSourcePath(java.lang.Object)

getSourcePathSettings

public SourcePathTableModel getSourcePathSettings()
Description copied from interface: SourcePathController
Provide the complete list of existing source path settings for a model on request.

Specified by:
getSourcePathSettings in interface SourcePathController
Returns:
The source path settings table - @see SourcePathTableModel.
See Also:
SourcePathController.getSourcePathSettings()

setSourcePath

public void setSourcePath(SourcePathTableModel srcPaths)
Description copied from interface: SourcePathController
Set the source path of the model from the specified settings.

Specified by:
setSourcePath in interface SourcePathController
Parameters:
srcPaths - the source path settings to be set in the model. Note, these are used in a resetting way, use the object retrieved with
See Also:
SourcePathController.setSourcePath(org.argouml.uml.ui.SourcePathTableModel)

setSourcePath

public void setSourcePath(Object modelElement,
                          File sourcePath)
Description copied from interface: SourcePathController
Set the source path for a specific model element (package or classifier) based on a given File object

Specified by:
setSourcePath in interface SourcePathController
Parameters:
modelElement - the model element
sourcePath - its source path
See Also:
SourcePathController.setSourcePath( java.lang.Object, java.io.File)

toString

public String toString()
See Also:
Object.toString()

deleteSourcePath

public void deleteSourcePath(Object modelElement)
Description copied from interface: SourcePathController
Delete the source path settings of the model element.

Specified by:
deleteSourcePath in interface SourcePathController
Parameters:
modelElement - the model element for which the source path settings are going to be removed
See Also:
SourcePathController.deleteSourcePath(java.lang.Object)

getAllModelElementsWithSourcePath

public Collection getAllModelElementsWithSourcePath()
Description copied from interface: SourcePathController
Retrieve a collection of all model elements that have source path settings.

Specified by:
getAllModelElementsWithSourcePath in interface SourcePathController
Returns:
the collection
See Also:
SourcePathController.getAllModelElementsWithSourcePath()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook