Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » [javadoc | source]
org.apache.tools.ant.types
public class: Reference [javadoc | source]
java.lang.Object
   org.apache.tools.ant.types.Reference

Direct Known Subclasses:
    Reference

Class to hold a reference to another object in the project.
Constructor:
 public Reference() 
     public Reference(String id) 
      Create a reference to a named ID.
      Parameters:
      id - the name of this reference
     public Reference(Project p,
        String id) 
      Create a reference to a named ID in a particular project.
      Parameters:
      p - the project this reference is associated with
      id - the name of this reference
      since: Ant - 1.6.3
    Method from org.apache.tools.ant.types.Reference Summary:
    getProject,   getRefId,   getReferencedObject,   getReferencedObject,   setProject,   setRefId
    Methods from java.lang.Object:
    clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.apache.tools.ant.types.Reference Detail:
     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() throws BuildException 
      Resolve the reference, looking in the associated project.
     public Object getReferencedObject(Project fallback) throws BuildException 
      Resolve the reference, using the associated project if it set, otherwise use the passed in project.
     public  void setProject(Project p) 
     public  void setRefId(String id)