Package org.apache.tools.ant.types
Class Path.PathElement
- java.lang.Object
- 
- org.apache.tools.ant.types.Path.PathElement
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<Resource>,- ResourceCollection
 - Enclosing class:
- Path
 
 public class Path.PathElement extends java.lang.Object implements ResourceCollection Helper class, holds the nested<pathelement>values.
- 
- 
Constructor SummaryConstructors Constructor Description PathElement()
 - 
Method SummaryModifier and Type Method Description java.lang.String[]getParts()Return the converted pathelements.booleanisFilesystemOnly()Check if this resource is only for filesystems.java.util.Iterator<Resource>iterator()Create an iterator.voidsetLocation(java.io.File loc)Set the location.voidsetPath(java.lang.String path)Set the path.intsize()Get the number of resources.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
 
- 
 
- 
- 
- 
Method Detail- 
setLocationpublic void setLocation(java.io.File loc) Set the location.- Parameters:
- loc- a- Filevalue
 
 - 
setPathpublic void setPath(java.lang.String path) Set the path.- Parameters:
- path- a- Stringvalue
 
 - 
getPartspublic java.lang.String[] getParts() Return the converted pathelements.- Returns:
- a String[]value
 
 - 
iteratorpublic java.util.Iterator<Resource> iterator() Create an iterator.- Specified by:
- iteratorin interface- java.lang.Iterable<Resource>
- Returns:
- an iterator.
 
 - 
isFilesystemOnlypublic boolean isFilesystemOnly() Check if this resource is only for filesystems.- Specified by:
- isFilesystemOnlyin interface- ResourceCollection
- Returns:
- true.
 
 - 
sizepublic int size() Get the number of resources.- Specified by:
- sizein interface- ResourceCollection
- Returns:
- the number of parts.
 
 
- 
 
-