org.objectweb.jac.ide
Class Project

java.lang.Object
  extended byorg.objectweb.jac.ide.ModelElement
      extended byorg.objectweb.jac.ide.Project

public class Project
extends ModelElement


Constructor Summary
Project()
           
 
Method Summary
 void addApplication(Application a)
           
 void addClasspath(File path)
           
 void addExternalFile(String name, File file)
          Add an external file to include in the JAR
 void addPackage(Package p)
           
 void checkGenerationPath()
           
 void cleanupModel()
          Remove "dangling" Roles (whose start or end is null)
 Class findClass(String className)
          Find a class by its full name (my.package.ClassName)
 Package findPackage(String pkgName)
          Find a package by its full name (my.package.ClassName)
 Map getAllResources()
          Returns all resources of all packages of the project.
 List getApplications()
          Get the value of applications.
 Collection getClasses()
          Returns all classes of all packages of the project.
 File getClassesDir()
          Returns the directory where the .class files should be stored
 List getClasspath()
           
 String getClasspathString()
           
 File getCompilerCommand()
          Get the value of compilerCommand.
 String getCompilerOptions()
           
 Map getExternalFiles()
           
 File getGenerationPath()
          Get the value of generationPath.
 File getManifestDir()
           
 Package getPackageByName(String packageName)
          Gets a package with a given name
 List getPackages()
          Get the value of packages.
 boolean getUseToolsJavac()
           
 void removeApplication(Application a)
           
 void removeClasspath(File path)
           
 void removeExternalFile(String name)
           
 void removePackage(Package p)
           
 void setCompilerCommand(File v)
          Set the value of compilerCommand.
 void setCompilerOptions(String options)
           
 void setGenerationPath(File v)
          Set the value of generationPath.
 void setUseToolsJavac(boolean value)
           
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getFullName, getGenerationFullName, getGenerationName, getLinks, getName, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()
Method Detail

checkGenerationPath

public void checkGenerationPath()
                         throws org.objectweb.jac.ide.CannotGenerateException
Throws:
org.objectweb.jac.ide.CannotGenerateException

setUseToolsJavac

public void setUseToolsJavac(boolean value)

getUseToolsJavac

public boolean getUseToolsJavac()

getCompilerCommand

public File getCompilerCommand()
Get the value of compilerCommand.

Returns:
value of compilerCommand.

setCompilerCommand

public void setCompilerCommand(File v)
Set the value of compilerCommand.

Parameters:
v - Value to assign to compilerCommand.

getCompilerOptions

public String getCompilerOptions()

setCompilerOptions

public void setCompilerOptions(String options)

getGenerationPath

public File getGenerationPath()
Get the value of generationPath.

Returns:
value of generationPath.

setGenerationPath

public void setGenerationPath(File v)
Set the value of generationPath.

Parameters:
v - Value to assign to generationPath.

getClassesDir

public File getClassesDir()
Returns the directory where the .class files should be stored


getManifestDir

public File getManifestDir()

getPackages

public List getPackages()
Get the value of packages.

Returns:
value of packages.

addPackage

public void addPackage(Package p)

removePackage

public void removePackage(Package p)

getPackageByName

public Package getPackageByName(String packageName)
Gets a package with a given name

Parameters:
packageName - the requested package name

findPackage

public Package findPackage(String pkgName)
Find a package by its full name (my.package.ClassName)

Parameters:
pkgName - the package name to find

getApplications

public List getApplications()
Get the value of applications.

Returns:
value of applications.

addApplication

public void addApplication(Application a)

removeApplication

public void removeApplication(Application a)

getClasspath

public List getClasspath()

getClasspathString

public String getClasspathString()

addClasspath

public void addClasspath(File path)

removeClasspath

public void removeClasspath(File path)

findClass

public Class findClass(String className)
Find a class by its full name (my.package.ClassName)

Parameters:
className - the class name to find

getClasses

public Collection getClasses()
Returns all classes of all packages of the project.


getAllResources

public Map getAllResources()
Returns all resources of all packages of the project.


addExternalFile

public void addExternalFile(String name,
                            File file)
Add an external file to include in the JAR

Parameters:
name - name of the file in the JAR
file - the file to include

removeExternalFile

public void removeExternalFile(String name)

getExternalFiles

public Map getExternalFiles()

cleanupModel

public void cleanupModel()
Remove "dangling" Roles (whose start or end is null)