public abstract class ProjectComponent
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| 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 and Description | 
|---|
| ProjectComponent()Sole constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
protected Project project
protected Location location
getLocation() method.protected java.lang.String description
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.