Package org.apache.tools.ant.types
Class Reference
java.lang.Object
org.apache.tools.ant.types.Reference
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the associated project, if any; may be null.<T> TResolve the reference, looking in the associated project.<T> TgetReferencedObject(Project fallback) Resolve the reference, using the associated project if it set, otherwise use the passed in project.getRefId()Get the reference id of this reference.voidSet the associated project.voidSet the reference id.
- 
Constructor Details- 
ReferenceDeprecated.since 1.7. Please useReference(Project,String)instead.Create a reference.
- 
ReferenceDeprecated.since 1.7. Please useReference(Project,String)instead.Create a reference to a named ID.- Parameters:
- id- the name of this reference
 
- 
Reference
 
- 
- 
Method Details- 
setRefIdSet the reference id. Should not normally be necessary; useReference(Project, String).- Parameters:
- id- the reference id to use
 
- 
getRefId
- 
setProjectSet the associated project. Should not normally be necessary; useReference(Project,String).- Parameters:
- p- the project to use
- Since:
- Ant 1.6.3
 
- 
getProjectGet the associated project, if any; may be null.- Returns:
- the associated project
- Since:
- Ant 1.6.3
 
- 
getReferencedObjectResolve the reference, using the associated project if it set, otherwise use the passed in project.- Type Parameters:
- T- desired object type
- 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.
 
- 
getReferencedObjectResolve the reference, looking in the associated project.- Type Parameters:
- T- desired object type
- Returns:
- the dereferenced object.
- Throws:
- BuildException- if the project is null or the reference cannot be dereferenced
- Since:
- Ant 1.6.3
- See Also:
 
 
-