org.apache.tools.ant.taskdefs
Class PathConvert.MapEntry

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.PathConvert.MapEntry
Enclosing class:
PathConvert

public class PathConvert.MapEntry
extends java.lang.Object

Helper class, holds the nested values. Elements will look like this: <map from="d:" to="/foo"/>

When running on windows, the prefix comparison will be case insensitive.


Constructor Summary
PathConvert.MapEntry()
           
 
Method Summary
 java.lang.String apply(java.lang.String elem)
          Apply this map entry to a given path element
 void setFrom(java.lang.String from)
          Set the "from" attribute of the map entry
 void setTo(java.lang.String to)
          Set the "to" attribute of the map entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathConvert.MapEntry

public PathConvert.MapEntry()
Method Detail

setFrom

public void setFrom(java.lang.String from)
Set the "from" attribute of the map entry

setTo

public void setTo(java.lang.String to)
Set the "to" attribute of the map entry

apply

public java.lang.String apply(java.lang.String elem)
Apply this map entry to a given path element
Parameters:
elem - Path element to process
Returns:
String Updated path element after mapping


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.