org.apache.tools.ant.types
public class Reference extends Object
| Constructor Summary | |
|---|---|
| Reference()
Create a reference. | |
| Reference(String id)
Create a reference to a named ID. | |
| Reference(Project p, String id)
Create a reference to a named ID in a particular project. | |
| Method Summary | |
|---|---|
| Project | getProject()
Get the associated project, if any; may be null. |
| Object | getReferencedObject(Project fallback)
Resolve the reference, using the associated project if
it set, otherwise use the passed in project. |
| Object | getReferencedObject()
Resolve the reference, looking in the associated project. |
| String | getRefId()
Get the reference id of this reference. |
| void | setProject(Project p)
Set the associated project. |
| void | setRefId(String id)
Set the reference id. |
Deprecated: since 1.7. Please use Reference instead.
Create a reference.Deprecated: since 1.7. Please use Reference instead.
Create a reference to a named ID.Parameters: id the name of this reference
Parameters: p the project this reference is associated with id the name of this reference
Since: Ant 1.6.3
Returns: the associated project
Since: Ant 1.6.3
Parameters: fallback the fallback project to use if the project attribute of reference is not set.
Returns: the dereferenced object.
Throws: BuildException if the reference cannot be dereferenced.
Returns: the dereferenced object.
Throws: BuildException if the project is null or the reference cannot be dereferenced
Since: Ant 1.6.3
See Also: Project
Returns: the reference id
Parameters: p the project to use
Since: Ant 1.6.3
Parameters: id the reference id to use