public class MappedResource extends ResourceDecorator
Strips the FileProvider interface from decorated resources since it may be used to circumvent name mapping.
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEdescription, location, project| Constructor and Description | 
|---|
| MappedResource(Resource r,
              FileNameMapper m)Wraps an existing resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | as(java.lang.Class<T> clazz)Suppress FileProvider | 
| boolean | equals(java.lang.Object other)Equality check based on the resource's name in addition to the
 resource itself. | 
| java.lang.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. | 
| java.lang.String | toString()Get the string representation of this Resource. | 
addConfigured, compareTo, dieOnCircularReference, getInputStream, getLastModified, getOutputStream, getResource, getSize, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setSizeclone, getMagicNumber, iterator, size, toLongStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic MappedResource(Resource r, FileNameMapper m)
r - Resource to wrapm - FileNameMapper that handles mappingpublic java.lang.String getName()
getName in class ResourceDecoratorpublic void setRefid(Reference r)
setRefid in class ResourceDecoratorr - reference to setpublic <T> T as(java.lang.Class<T> clazz)
as in class ResourceDecoratorclazz - the type to implementpublic int hashCode()
hashCode in class ResourceDecoratorpublic boolean equals(java.lang.Object other)