public class ResourceElement<SYMBOL extends Symbol,VALUE>
extends java.lang.Object
| Constructor and Description |
|---|
ResourceElement(SYMBOL symbol) |
ResourceElement(SYMBOL symbol,
VALUE value) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getMetadata(java.lang.Class<T> type)
Returns metadata associated with the resource element or null.
|
Resource |
getResource()
Returns the resource this element is contained in.
|
SYMBOL |
getSymbol()
Returns the symbol the resource element is indexed by.
|
VALUE |
getValue()
Returns the actual resource element.
|
void |
setMetadata(java.lang.Object metadata)
Sets metadata for the resource element.
|
void |
setResource(Resource resource)
Sets the resource this element is contained in.
|
void |
setValue(VALUE value)
Sets the actual resource element.
|
public ResourceElement(SYMBOL symbol)
public Resource getResource()
public void setResource(Resource resource)
resource - the resource this element is contained in.public SYMBOL getSymbol()
public VALUE getValue()
public void setValue(VALUE value)
value - the resource elementpublic <T> T getMetadata(java.lang.Class<T> type)
type - the metadata typepublic void setMetadata(java.lang.Object metadata)
metadata - the metadata