prantl.ant.eclipse
Class ClassPathElement

java.lang.Object
  extended by prantl.ant.eclipse.ClassPathElement

public class ClassPathElement
extends java.lang.Object

Configures contents of the file .classpath with paths to source files, binary java archives and output directories, this class specifically the root element classpath.

Since:
Ant-Eclipse 1.0
Author:
Ferdinand Prantl <prantl@users.sourceforge.net>

Constructor Summary
ClassPathElement()
          Creates a new instance of the classpath element.
 
Method Summary
 ClassPathEntryContainerElement createContainer()
          Adds a definition of the classpathentry element of the kind "con".
 ClassPathEntryLibraryElement createLibrary()
          Adds a definition of the classpathentry element of the kind "lib".
 ClassPathEntryOutputElement createOutput()
          Adds a definition of the classpathentry element of the kind "output".
 ClassPathEntrySourceElement createSource()
          Adds a definition of the classpathentry element of the kind "src".
 ClassPathEntryVariableElement createVariable()
          Adds a definition of the classpathentry element of the kind "var".
 ClassPathEntryContainerElement getContainer()
          Returns an instance of the class ClassPathEntryContainerElement describing the element classpathentry of the kind "con" in the file .classpath or null if the element was not present, which means creating a default one.
 java.util.Vector getLibraries()
          Returns a list of instances of the class ClassPathEntryLibraryElement describing elements classpathentry of the kind "lib" in the file .classpath.
 ClassPathEntryOutputElement getOutput()
          Returns an instance of the class ClassPathEntryOutputElement describing the element classpathentry of the kind "output" in the file .classpath or null if the element was not present, which means creating a default one.
 java.util.Vector getSources()
          Returns a list of instances of the class ClassPathEntrySourceElement describing elements classpathentry of the kind "src" in the file .classpath.
 java.util.Vector getVariables()
          Returns a list of instances of the class ClassPathEntryVariableElement describing elements classpathentry of the kind "var" in the file .classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathElement

public ClassPathElement()
Creates a new instance of the classpath element.

Since:
Ant-Eclipse 1.0
Method Detail

getSources

public java.util.Vector getSources()
Returns a list of instances of the class ClassPathEntrySourceElement describing elements classpathentry of the kind "src" in the file .classpath. If it is empty, a single source element should be created with default settings.

Returns:
A list of instances of the class ClassPathEntrySourceElement.

getLibraries

public java.util.Vector getLibraries()
Returns a list of instances of the class ClassPathEntryLibraryElement describing elements classpathentry of the kind "lib" in the file .classpath.

Returns:
A list of instances of the class ClassPathEntryLibraryElement.

getContainer

public ClassPathEntryContainerElement getContainer()
Returns an instance of the class ClassPathEntryContainerElement describing the element classpathentry of the kind "con" in the file .classpath or null if the element was not present, which means creating a default one.

Returns:
An instance of the class ClassPathEntryContainerElement or null if not having been present.

getVariables

public java.util.Vector getVariables()
Returns a list of instances of the class ClassPathEntryVariableElement describing elements classpathentry of the kind "var" in the file .classpath.

Returns:
A list of instances of the class ClassPathEntryVariableElement.

getOutput

public ClassPathEntryOutputElement getOutput()
Returns an instance of the class ClassPathEntryOutputElement describing the element classpathentry of the kind "output" in the file .classpath or null if the element was not present, which means creating a default one.

Returns:
An instance of the class ClassPathEntryOutputElement or null if not having been present.

createSource

public ClassPathEntrySourceElement createSource()
Adds a definition of the classpathentry element of the kind "src".

Returns:
A definition of the classpathentry-src element.
Since:
Ant-Eclipse 1.0

createLibrary

public ClassPathEntryLibraryElement createLibrary()
Adds a definition of the classpathentry element of the kind "lib".

Returns:
A definition of the classpathentry-lib element.
Since:
Ant-Eclipse 1.0

createContainer

public ClassPathEntryContainerElement createContainer()
Adds a definition of the classpathentry element of the kind "con".

Returns:
A definition of the classpathentry-con element.
Since:
Ant-Eclipse 1.0

createVariable

public ClassPathEntryVariableElement createVariable()
Adds a definition of the classpathentry element of the kind "var".

Returns:
A definition of the classpathentry-var element.
Since:
Ant-Eclipse 1.0

createOutput

public ClassPathEntryOutputElement createOutput()
Adds a definition of the classpathentry element of the kind "output".

Returns:
A definition of the classpathentry-output element.
Since:
Ant-Eclipse 1.0