org.apache.tools.ant.types

Class Path.PathElement

Enclosing Class:
Path
Implemented Interfaces:
ResourceCollection

public class Path.PathElement
extends java.lang.Object
implements ResourceCollection

Helper class, holds the nested <pathelement> values.

Method Summary

String[]
getParts()
Return the converted pathelements.
boolean
isFilesystemOnly()
Check if this resource is only for filesystems.
Iterator
iterator()
Create an iterator.
void
setLocation(File loc)
Set the location.
void
setPath(String path)
Set the path.
int
size()
Get the number of resources.

Method Details

getParts

public String[] getParts()
Return the converted pathelements.
Returns:
a String[] value

isFilesystemOnly

public boolean isFilesystemOnly()
Check if this resource is only for filesystems.
Specified by:
isFilesystemOnly in interface ResourceCollection
Returns:
true.

iterator

public Iterator iterator()
Create an iterator.
Specified by:
iterator in interface ResourceCollection
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.
Specified by:
size in interface ResourceCollection
Returns:
the number of parts.