proper.io
Class AntTarget

java.lang.Object
  extended by proper.io.AntTarget
All Implemented Interfaces:
java.lang.Comparable

public class AntTarget
extends java.lang.Object
implements java.lang.Comparable

A simple wrapper class for an ANT file and a target from this file. Can be used in GUI-Lists etc. for displaying.

Version:
$Revision: 1.2 $
Author:
FracPete

Constructor Summary
AntTarget(Ant ant, java.lang.String target)
          initializes the object
 
Method Summary
 int compareTo(java.lang.Object o)
          compares the given object to itself, depending on the sorting
 boolean equals(java.lang.Object obj)
          checks whether the objects are the same
 Ant getAnt()
          returns the ANT instance
 java.lang.String getDisplay()
          returns the display string, also done with "toString()"
 java.lang.String getFilename()
          returns the filename of the ANT file
 java.util.Vector getJavaTasks()
          returns all the Java-Tasks in the Target, NULL if there are none
 java.lang.String getTarget()
          returns the target it represents
 java.lang.String toString()
          returns a string representation of the form "File: Target"
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntTarget

public AntTarget(Ant ant,
                 java.lang.String target)
initializes the object

Method Detail

getAnt

public Ant getAnt()
returns the ANT instance


getTarget

public java.lang.String getTarget()
returns the target it represents


getJavaTasks

public java.util.Vector getJavaTasks()
returns all the Java-Tasks in the Target, NULL if there are none


getFilename

public java.lang.String getFilename()
returns the filename of the ANT file


getDisplay

public java.lang.String getDisplay()
returns the display string, also done with "toString()"


compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
compares the given object to itself, depending on the sorting

Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

equals

public boolean equals(java.lang.Object obj)
checks whether the objects are the same

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
returns a string representation of the form "File: Target"

Overrides:
toString in class java.lang.Object