org.mmbase.applications.packaging.projects
Class Project

java.lang.Object
  extended by org.mmbase.applications.packaging.projects.Project

public class Project
extends java.lang.Object

Author:
Daniel Ockeloen

Field Summary
static java.lang.String DTD_PACKAGING_1_0
          DTD resource filename of the packaging DTD version 1.0
static java.lang.String PUBLIC_ID_PACKAGING_1_0
          Public ID of the packaging DTD version 1.0
 
Constructor Summary
Project(java.lang.String name, java.lang.String path)
          Constructor for the Project object
 
Method Summary
 boolean addBundleTarget(java.lang.String name, java.lang.String type, java.lang.String path)
          Adds a feature to the BundleTarget attribute of the Project object
 boolean addPackageTarget(java.lang.String name, java.lang.String type, java.lang.String path)
          Adds a feature to the PackageTarget attribute of the Project object
 boolean deleteTarget(java.lang.String name)
          Description of the Method
 java.lang.String getBaseDir()
          Gets the baseDir attribute of the Project object
 java.util.Iterator getBundleTargets()
          Gets the bundleTargets attribute of the Project object
 java.lang.String getDir()
           
 java.lang.String getName()
          Gets the name attribute of the Project object
 java.util.Iterator getPackageTargets()
          Gets the packageTargets attribute of the Project object
 java.lang.String getPath()
          Gets the path attribute of the Project object
 Target getTarget(java.lang.String name)
          Gets the target attribute of the Project object
 Target getTargetById(java.lang.String id)
          Gets the target attribute of the Project object
 java.util.Iterator getTargets()
          Gets the targets attribute of the Project object
 boolean hasSyntaxErrors()
          Description of the Method
 void readTargets()
          Description of the Method
static void registerPublicIDs()
          Register the Public Ids for DTDs used by DatabaseReader This method is called by XMLEntityResolver.
 boolean save()
          Description of the Method
 void setName(java.lang.String name)
          Sets the name attribute of the Project object
 void setPath(java.lang.String path)
          Sets the path attribute of the Project object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DTD_PACKAGING_1_0

public static final java.lang.String DTD_PACKAGING_1_0
DTD resource filename of the packaging DTD version 1.0

See Also:
Constant Field Values

PUBLIC_ID_PACKAGING_1_0

public static final java.lang.String PUBLIC_ID_PACKAGING_1_0
Public ID of the packaging DTD version 1.0

See Also:
Constant Field Values
Constructor Detail

Project

public Project(java.lang.String name,
               java.lang.String path)
Constructor for the Project object

Parameters:
name - Description of the Parameter
path - Description of the Parameter
Method Detail

registerPublicIDs

public static void registerPublicIDs()
Register the Public Ids for DTDs used by DatabaseReader This method is called by XMLEntityResolver.


setName

public void setName(java.lang.String name)
Sets the name attribute of the Project object

Parameters:
name - The new name value

setPath

public void setPath(java.lang.String path)
Sets the path attribute of the Project object

Parameters:
path - The new path value

getPath

public java.lang.String getPath()
Gets the path attribute of the Project object

Returns:
The path value

getDir

public java.lang.String getDir()

getName

public java.lang.String getName()
Gets the name attribute of the Project object

Returns:
The name value

getBaseDir

public java.lang.String getBaseDir()
Gets the baseDir attribute of the Project object

Returns:
The baseDir value

getTargets

public java.util.Iterator getTargets()
Gets the targets attribute of the Project object

Returns:
The targets value

deleteTarget

public boolean deleteTarget(java.lang.String name)
Description of the Method

Parameters:
name - Description of the Parameter
Returns:
Description of the Return Value

addBundleTarget

public boolean addBundleTarget(java.lang.String name,
                               java.lang.String type,
                               java.lang.String path)
Adds a feature to the BundleTarget attribute of the Project object

Parameters:
name - The feature to be added to the BundleTarget attribute
type - The feature to be added to the BundleTarget attribute
path - The feature to be added to the BundleTarget attribute
Returns:
Description of the Return Value

addPackageTarget

public boolean addPackageTarget(java.lang.String name,
                                java.lang.String type,
                                java.lang.String path)
Adds a feature to the PackageTarget attribute of the Project object

Parameters:
name - The feature to be added to the PackageTarget attribute
type - The feature to be added to the PackageTarget attribute
path - The feature to be added to the PackageTarget attribute
Returns:
Description of the Return Value

getTarget

public Target getTarget(java.lang.String name)
Gets the target attribute of the Project object

Parameters:
name - Description of the Parameter
Returns:
The target value

getTargetById

public Target getTargetById(java.lang.String id)
Gets the target attribute of the Project object

Parameters:
name - Description of the Parameter
Returns:
The target value

getPackageTargets

public java.util.Iterator getPackageTargets()
Gets the packageTargets attribute of the Project object

Returns:
The packageTargets value

getBundleTargets

public java.util.Iterator getBundleTargets()
Gets the bundleTargets attribute of the Project object

Returns:
The bundleTargets value

readTargets

public void readTargets()
Description of the Method


save

public boolean save()
Description of the Method

Returns:
Description of the Return Value

hasSyntaxErrors

public boolean hasSyntaxErrors()
Description of the Method

Returns:
Description of the Return Value


packaging build ${version}