Class AntUnit.ReferenceSet

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.ant.antunit.AntUnit.ReferenceSet
All Implemented Interfaces:
Cloneable
Enclosing class:
AntUnit

public static class AntUnit.ReferenceSet extends org.apache.tools.ant.ProjectComponent
Defines a collection of inherited references, with an optional nested Mapper that maps them to new reference IDs in the target project.
  • Field Summary

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    copyReferencesInto(org.apache.tools.ant.Project newProject)
    Copy all identified references into the target project, applying any name mapping required by a nested mapper element.
    org.apache.tools.ant.types.Mapper
     
    void
    setMapper(String typeName, String from, String to)
    Configure a single mapper to translate reference IDs.

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReferenceSet

      public ReferenceSet()
  • Method Details

    • addReference

      public void addReference(AntUnit.Reference reference)
    • createMapper

      public org.apache.tools.ant.types.Mapper createMapper()
    • setMapper

      public void setMapper(String typeName, String from, String to)
      Configure a single mapper to translate reference IDs.
      Parameters:
      typeName - the mapper type
      from - the from attribute
      to - the to attribute
    • copyReferencesInto

      public void copyReferencesInto(org.apache.tools.ant.Project newProject)
      Copy all identified references into the target project, applying any name mapping required by a nested mapper element.
      Parameters:
      newProject - the target project to copy references into