org.apache.tools.ant.types.resources
public class MappedResource extends ResourceDecorator
Strips the FileProvider interface from decorated resources since it may be used to circumvent name mapping.
Since: Ant 1.8.0
Constructor Summary | |
---|---|
MappedResource(Resource r, FileNameMapper m)
Wraps an existing resource. |
Method Summary | |
---|---|
Object | as(Class clazz)
Suppress FileProvider |
boolean | equals(Object other)
Equality check based on the resource's name in addition to the
resource itself. |
String | getName()
Maps the name. |
int | hashCode()
Get the hash code for this Resource. |
void | setRefid(Reference r)
Not really supported since mapper is never null. |
Parameters: r Resource to wrap m FileNameMapper that handles mapping
Parameters: clazz the type to implement
Since: Ant 1.8.1
Since: Ant 1.8.1
Parameters: r reference to set