java.lang.Cloneable, java.lang.Comparable<Resource>, java.lang.Iterable<Resource>, ResourceCollectionpublic class MappedResource extends ResourceDecorator
Strips the FileProvider interface from decorated resources since it may be used to circumvent name mapping.
description, location, projectMAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE| Constructor | Description |
|---|---|
MappedResource(Resource r,
FileNameMapper m) |
Wraps an existing resource.
|
| Modifier and Type | Method | 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.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectasOptional, clone, getCheckedRef, getMagicNumber, iterator, size, toLongStringisEmpty, streamaddConfigured, compareTo, dieOnCircularReference, getInputStream, getLastModified, getOutputStream, getResource, getSize, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setSizepublic 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 ResourceDecoratorT - desired typeclazz - the type to implementpublic int hashCode()
hashCode in class ResourceDecoratorpublic boolean equals(java.lang.Object other)