| java.lang.Object org.apache.tools.ant.types.Reference
Reference | public class Reference (Code) | | Class to hold a reference to another object in the project.
|
Method Summary | |
public Project | getProject() Get the associated project, if any; may be null. | public String | getRefId() Get the reference id of this reference. | public Object | getReferencedObject(Project fallback) Resolve the reference, using the associated project if
it set, otherwise use the passed in project.
Parameters: fallback - the fallback project to use if the project attribute ofreference is not set. | public Object | getReferencedObject() Resolve the reference, looking in the associated project. | public void | setProject(Project p) Set the associated project. | public void | setRefId(String id) Set the reference id. |
Reference | public Reference(Project p, String id)(Code) | | Create a reference to a named ID in a particular project.
Parameters: p - the project this reference is associated with Parameters: id - the name of this reference since: Ant 1.6.3 |
getProject | public Project getProject()(Code) | | Get the associated project, if any; may be null.
the associated project since: Ant 1.6.3 |
getRefId | public String getRefId()(Code) | | Get the reference id of this reference.
the reference id |
getReferencedObject | public Object getReferencedObject(Project fallback) throws BuildException(Code) | | Resolve the reference, using the associated project if
it set, otherwise use the passed in project.
Parameters: fallback - the fallback project to use if the project attribute ofreference is not set. the dereferenced object. throws: BuildException - if the reference cannot be dereferenced. |
|
|