com.application.areca.launcher.gui
Class Workspace

java.lang.Object
  extended by com.application.areca.launcher.gui.Workspace

public class Workspace
extends java.lang.Object


This class implements a workspace.
A workspace is a collection of target groups, each group containing a collection of targets.

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  Application application
           
protected  java.util.HashMap groups
           
protected  java.lang.String path
           
protected  java.util.HashMap xmlFiles
           
 
Constructor Summary
Workspace(java.lang.String path, Application application)
           
 
Method Summary
 void addGroup(TargetGroup group)
           
 java.io.File getConfigFile(TargetGroup group)
           
 TargetGroup getGroupById(java.lang.String source)
           
 int getGroupCount()
          Return the number of groups contained in the workspace
 java.util.Iterator getGroupIterator()
           
 java.lang.String getPath()
           
 java.util.Iterator getSortedGroupIterator()
          Return an iterator.
 void removeGroup(java.lang.String source)
           
 void removeGroup(TargetGroup group)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected java.lang.String path

groups

protected java.util.HashMap groups

xmlFiles

protected java.util.HashMap xmlFiles

application

protected Application application
Constructor Detail

Workspace

public Workspace(java.lang.String path,
                 Application application)
          throws AdapterException
Throws:
AdapterException
Method Detail

getGroupCount

public int getGroupCount()
Return the number of groups contained in the workspace


getGroupById

public TargetGroup getGroupById(java.lang.String source)

getConfigFile

public java.io.File getConfigFile(TargetGroup group)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

removeGroup

public void removeGroup(java.lang.String source)

removeGroup

public void removeGroup(TargetGroup group)

getGroupIterator

public java.util.Iterator getGroupIterator()

getSortedGroupIterator

public java.util.Iterator getSortedGroupIterator()
Return an iterator. All target are sorted by ID


getPath

public java.lang.String getPath()

addGroup

public void addGroup(TargetGroup group)