Methods Summary |
---|
public org.apache.tools.ant.Project | getProject()Get the associated project, if any; may be null.
return project;
|
public java.lang.String | getRefId()Get the reference id of this reference.
return refid;
|
public java.lang.Object | getReferencedObject(org.apache.tools.ant.Project fallback)Resolve the reference, using the associated project if
it set, otherwise use the passed in project.
if (refid == null) {
throw new BuildException("No reference specified");
}
Object o = project == null ? fallback.getReference(refid) : project.getReference(refid);
if (o == null) {
throw new BuildException("Reference " + refid + " not found.");
}
return o;
|
public java.lang.Object | getReferencedObject()Resolve the reference, looking in the associated project.
if (project == null) {
throw new BuildException("No project set on reference to " + refid);
}
return getReferencedObject(project);
|
public void | setProject(org.apache.tools.ant.Project p)Set the associated project. Should not normally be necessary;
use {@link Reference#Reference(Project,String)}.
this.project = p;
|
public void | setRefId(java.lang.String id)Set the reference id. Should not normally be necessary;
use {@link Reference#Reference(Project, String)}.
refid = id;
|