prantl.ant.eclipse
Class ClassPathEntryPathElement

java.lang.Object
  extended by prantl.ant.eclipse.ClassPathEntryElement
      extended by prantl.ant.eclipse.ClassPathEntryPathElement
Direct Known Subclasses:
ClassPathEntryBinaryElement, ClassPathEntrySourceElement

public class ClassPathEntryPathElement
extends ClassPathEntryElement

Describes an element under the element classpath referencing a path consisting optionally from more elements (directories or files). Only one attribute of the two path and pathref is allowed.

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

Constructor Summary
ClassPathEntryPathElement()
          Creates a new instance of the classpathentry-src element.
 
Method Summary
 Reference getPathRef()
          Returns a reference to the kind-of-element specific path value or null if it has not been set, which should be considered an error.
 void setPath(java.lang.String value)
          Sets the path of the classpathentry element.
 void setPathRef(Reference value)
          Sets the reference to a path of the classpathentry element.
 void validate()
          Performs the validation of the element at the time when the whole build file was parsed checking the content of the element and possibly adding mandatory attributes with default settings.
 
Methods inherited from class prantl.ant.eclipse.ClassPathEntryElement
getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathEntryPathElement

public ClassPathEntryPathElement()
Creates a new instance of the classpathentry-src element.

Since:
Ant-Eclipse 1.0
Method Detail

getPathRef

public Reference getPathRef()
Returns a reference to the kind-of-element specific path value or null if it has not been set, which should be considered an error. However, descendant classes may set a default for this attribute or to the attribute path, which can be used instead or together.

Returns:
A reference to the kind-of-element specific path value or null if not having been set (descendant classes may return a default in this case).

setPathRef

public void setPathRef(Reference value)
Sets the reference to a path of the classpathentry element.

Parameters:
value - A reference to the kind-of-element specific path value.
Throws:
BuildException - If an attribute path has been set.
Since:
Ant-Eclipse 1.0

setPath

public void setPath(java.lang.String value)
Sets the path of the classpathentry element.

Overrides:
setPath in class ClassPathEntryElement
Parameters:
value - A kind-of-element specific path value.
Throws:
BuildException - If an attribute pathref has been set.
Since:
Ant-Eclipse 1.0

validate

public void validate()
Performs the validation of the element at the time when the whole build file was parsed checking the content of the element and possibly adding mandatory attributes with default settings.

Overrides:
validate in class ClassPathEntryElement
Since:
Ant-Eclipse 1.0