public class EntryResource<K,V> extends VirtualResource<Map.Entry<K,V>>
flags, parent, resourceFactory| Constructor and Description |
|---|
EntryResource(Resource<?> parent,
K key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete this resource, return true if successful, false if not.
|
boolean |
delete(boolean recursive)
Delete this resource, return true if successful, false if not.
|
protected List<Resource<?>> |
doListResources()
Strategy method for returning child resources.
|
K |
getKey() |
String |
getName()
Return the common name of the resource.
|
Map.Entry<K,V> |
getUnderlyingResourceObject()
Get the underlying object represented by this
Resource |
V |
getValue() |
createFrom, exists, getChild, getResourceInputStreamequals, getFlags, getFullyQualifiedName, getParent, getResourceFactory, hashCode, isFlagSet, listResources, listResources, reify, setFlag, unsetFlagpublic K getKey()
public V getValue()
public boolean delete()
throws UnsupportedOperationException
ResourceUnsupportedOperationException - if deleting is not supported by the underlying implementation.public boolean delete(boolean recursive)
throws UnsupportedOperationException
Resourcerecursive - if false and this resource both supports recursive deletion and contains children, deletion will
not occur; otherwise, if true, deletion will propagate to all child resources. Implementations may
choose simply to delegate to Resource.delete()UnsupportedOperationException - if deleting is not supported by the underlying implementation.public String getName()
Resourcepublic Map.Entry<K,V> getUnderlyingResourceObject()
ResourceResourceprotected List<Resource<?>> doListResources()
AbstractResourcedoListResources in class AbstractResource<Map.Entry<K,V>>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.