org.apache.tools.ant
Class ProjectComponent
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
- Direct Known Subclasses:
- DataType, Task
- public abstract class ProjectComponent
- extends java.lang.Object
Base class for components of a project, including tasks and data types. Provides
common facilities.
- Author:
- Conor MacNeill
Method Summary |
Project |
getProject()
Get the Project to which this component belongs |
void |
log(java.lang.String msg)
Log a message with the default (INFO) priority. |
void |
log(java.lang.String msg,
int msgLevel)
Log a mesage with the give priority. |
void |
setProject(Project project)
Sets the project object of this component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
project
protected Project project
ProjectComponent
public ProjectComponent()
setProject
public void setProject(Project project)
- Sets the project object of this component. This method is used by
project when a component is added to it so that the component has
access to the functions of the project. It should not be used
for any other purpose.
- Parameters:
project
- Project in whose scope this component belongs.
getProject
public Project getProject()
- Get the Project to which this component belongs
- Returns:
- the components's project.
log
public void log(java.lang.String msg)
- Log a message with the default (INFO) priority.
- Parameters:
the
- message to be logged.
log
public void log(java.lang.String msg,
int msgLevel)
- Log a mesage with the give priority.
- Parameters:
the
- message to be logged.msgLevel
- the message priority at which this message is to be logged.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.