Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » types » resources » [javadoc | source]
org.apache.tools.ant.types.resources
public class: Sort [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.types.DataType
         org.apache.tools.ant.types.resources.BaseResourceCollectionWrapper
            org.apache.tools.ant.types.resources.Sort

All Implemented Interfaces:
    ResourceCollection, Cloneable

ResourceCollection that sorts another ResourceCollection. Note that Sort must not be used in cases where the ordering of the objects being sorted might change during the sorting process.
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.types.resources.Sort Summary:
add,   dieOnCircularReference,   getCollection
Methods from org.apache.tools.ant.types.resources.BaseResourceCollectionWrapper:
add,   dieOnCircularReference,   getCollection,   getResourceCollection,   isCache,   isFilesystemOnly,   iterator,   setCache,   size,   toString
Methods from org.apache.tools.ant.types.DataType:
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.types.resources.Sort Detail:
 public synchronized  void add(ResourceComparator c) 
    Add a ResourceComparator to this Sort ResourceCollection. If multiple ResourceComparators are added, they will be processed in LIFO order.
 protected synchronized  void dieOnCircularReference(Stack stk,
    Project p) throws BuildException 
    Overrides the BaseResourceCollectionContainer version to recurse on nested ResourceComparators.
 protected synchronized Collection getCollection() 
    Sort the contained elements.