org.apache.tools.ant.types

Class Path.PathElement

public class Path.PathElement extends Object implements ResourceCollection

Helper class, holds the nested <pathelement> values.
Method Summary
String[]getParts()
Return the converted pathelements.
booleanisFilesystemOnly()
Check if this resource is only for filesystems.
Iteratoriterator()
Create an iterator.
voidsetLocation(File loc)
Set the location.
voidsetPath(String path)
Set the path.
intsize()
Get the number of resources.

Method Detail

getParts

public String[] getParts()
Return the converted pathelements.

Returns: a String[] value

isFilesystemOnly

public boolean isFilesystemOnly()
Check if this resource is only for filesystems.

Returns: true.

iterator

public Iterator iterator()
Create an iterator.

Returns: an iterator.

setLocation

public void setLocation(File loc)
Set the location.

Parameters: loc a File value

setPath

public void setPath(String path)
Set the path.

Parameters: path a String value

size

public int size()
Get the number of resources.

Returns: the number of parts.