|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.Reference
public class Reference
Class to hold a reference to another object in the project.
| Constructor Summary | |
|---|---|
Reference()
Deprecated. since 1.7. Please use Reference(Project,String)
instead. |
|
Reference(Project p,
java.lang.String id)
Create a reference to a named ID in a particular project. |
|
Reference(java.lang.String id)
Deprecated. since 1.7. Please use Reference(Project,String)
instead. |
|
| Method Summary | |
|---|---|
Project |
getProject()
Get the associated project, if any; may be null. |
java.lang.Object |
getReferencedObject()
Resolve the reference, looking in the associated project. |
java.lang.Object |
getReferencedObject(Project fallback)
Resolve the reference, using the associated project if it set, otherwise use the passed in project. |
java.lang.String |
getRefId()
Get the reference id of this reference. |
void |
setProject(Project p)
Set the associated project. |
void |
setRefId(java.lang.String id)
Set the reference id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reference()
Reference(Project,String)
instead.
public Reference(java.lang.String id)
Reference(Project,String)
instead.
id - the name of this reference
public Reference(Project p,
java.lang.String id)
p - the project this reference is associated withid - the name of this reference| Method Detail |
|---|
public void setRefId(java.lang.String id)
Reference(Project, String).
id - the reference id to usepublic java.lang.String getRefId()
public void setProject(Project p)
Reference(Project,String).
p - the project to usepublic Project getProject()
public java.lang.Object getReferencedObject(Project fallback)
throws BuildException
fallback - the fallback project to use if the project attribute of
reference is not set.
BuildException - if the reference cannot be dereferenced.
public java.lang.Object getReferencedObject()
throws BuildException
BuildException - if the project is null or the reference cannot be dereferencedProject.getReference(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||