net.sf.ant4eclipse.model.launch
Class RuntimeClasspathEntry

java.lang.Object
  extended by net.sf.ant4eclipse.model.launch.RuntimeClasspathEntry

public class RuntimeClasspathEntry
extends java.lang.Object

Encapsulates an entry in a runtime classpath.


Field Summary
static int RCE_ARCHIVE
          the constant for a Archive-RuntimeClasspathEntry
static int RCE_CONTAINER
          the constant for a Container-RuntimeClasspathEntry
static int RCE_OTHER
          the constant for a Archive-RuntimeClasspathEntry
static int RCE_PROJECT
          the constant for a EclipseProject-RuntimeClasspathEntry
static int RCE_VARIABLE
          the constant for a Variable-RuntimeClasspathEntry
static int RCE_VARIABLESTRING
          the constant for a StringVariable classpath type
 
Constructor Summary
RuntimeClasspathEntry(java.lang.String path, int type)
          Creates a new instance of type RuntimeClasspathEntry.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.lang.String getPath()
          Returns the path of this entry.
 int getType()
          Returns the type of this entry.
static java.lang.String getTypeStr(int type)
          Returns the string representation of the specified RuntimeClasspathEntry type.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RCE_PROJECT

public static final int RCE_PROJECT
the constant for a EclipseProject-RuntimeClasspathEntry

See Also:
Constant Field Values

RCE_ARCHIVE

public static final int RCE_ARCHIVE
the constant for a Archive-RuntimeClasspathEntry

See Also:
Constant Field Values

RCE_VARIABLE

public static final int RCE_VARIABLE
the constant for a Variable-RuntimeClasspathEntry

See Also:
Constant Field Values

RCE_CONTAINER

public static final int RCE_CONTAINER
the constant for a Container-RuntimeClasspathEntry

See Also:
Constant Field Values

RCE_OTHER

public static final int RCE_OTHER
the constant for a Archive-RuntimeClasspathEntry

See Also:
Constant Field Values

RCE_VARIABLESTRING

public static final int RCE_VARIABLESTRING
the constant for a StringVariable classpath type

See Also:
Constant Field Values
Constructor Detail

RuntimeClasspathEntry

public RuntimeClasspathEntry(java.lang.String path,
                             int type)
Creates a new instance of type RuntimeClasspathEntry.

Parameters:
path - the path of this entry.
type - the type of this entry.
Method Detail

getPath

public java.lang.String getPath()
Returns the path of this entry.

Returns:
the path of this entry.

getType

public int getType()
Returns the type of this entry.

Returns:
the type of this entry.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

getTypeStr

public static java.lang.String getTypeStr(int type)
Returns the string representation of the specified RuntimeClasspathEntry type.

Parameters:
type - the type.
Returns:
Returns the string representation of the specified RuntimeClasspathEntry type.