| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
public abstract class ProjectComponent
Base class for components of a project, including tasks and data types. Provides common facilities.
| Field Summary | |
|---|---|
| protected  java.lang.String | descriptionDeprecated. since 1.6.x. You should not be accessing this variable directly. | 
| protected  Location | locationDeprecated. since 1.6.x. You should not be accessing this variable directly. Please use the getLocation()method. | 
| protected  Project | projectDeprecated. since 1.6.x. You should not be directly accessing this variable directly. You should access project object via the getProject() or setProject() accessor/mutators. | 
| Constructor Summary | |
|---|---|
| ProjectComponent()Sole constructor. | |
| Method Summary | |
|---|---|
|  java.lang.Object | clone() | 
|  java.lang.String | getDescription()Returns the description of the current action. | 
|  Location | getLocation()Returns the file/location where this task was defined. | 
|  Project | getProject()Returns the project to which this component belongs. | 
|  void | log(java.lang.String msg)Logs a message with the default (INFO) priority. | 
|  void | log(java.lang.String msg,
    int msgLevel)Logs a message with the given priority. | 
|  void | setDescription(java.lang.String desc)Sets a description of the current action. | 
|  void | setLocation(Location location)Sets the file/location where this task was defined. | 
|  void | setProject(Project project)Sets the project object of this component. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected Project project
protected Location location
getLocation() method.
protected java.lang.String description
| Constructor Detail | 
|---|
public ProjectComponent()
| Method Detail | 
|---|
public void setProject(Project project)
project - Project in whose scope this component belongs.
                Must not be null.public Project getProject()
public Location getLocation()
null. Location.UNKNOWN_LOCATION
         is used for unknown locations.Location.UNKNOWN_LOCATIONpublic void setLocation(Location location)
location - The file/location where this task was defined.
                 Should not be null--use
                 Location.UNKNOWN_LOCATION if the location isn't known.Location.UNKNOWN_LOCATIONpublic void setDescription(java.lang.String desc)
desc - Description of the current action.
             May be null, indicating that no description is
             available.public java.lang.String getDescription()
null if
         no description is available.public void log(java.lang.String msg)
msg - The message to be logged. Should not be null.
public void log(java.lang.String msg,
                int msgLevel)
msg - The message to be logged. Should not be null.msgLevel - the message priority at which this message is
                 to be logged.
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - does not happen,
                                    but is declared to allow subclasses to do so.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||