public class MutableResourceMetadataImpl<T extends Enum<T>> extends Object implements MutableResourceMetadata<T>
Constructor and Description |
---|
MutableResourceMetadataImpl() |
MutableResourceMetadataImpl(ResourceMetadata<T> from) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ResourceMetadata<T> o) |
boolean |
equals(Object obj) |
Location |
getLocation()
Physical location of the resource, or null if n/a
ex.
|
String |
getName()
Name of this resource.
|
String |
getProviderId()
Unique identifier of this resource within its enclosing namespace.
|
T |
getType()
Whether this resource is a container, file, node, queue, etc.
|
URI |
getUri()
URI used to access this resource
|
Map<String,String> |
getUserMetadata()
Any key-value pairs associated with the resource.
|
int |
hashCode() |
void |
setId(String id) |
void |
setLocation(Location location) |
void |
setName(String name) |
void |
setType(T type) |
void |
setUri(URI uri) |
void |
setUserMetadata(Map<String,String> userMetadata) |
String |
toString() |
public MutableResourceMetadataImpl()
public MutableResourceMetadataImpl(ResourceMetadata<T> from)
public int compareTo(ResourceMetadata<T> o)
compareTo
in interface Comparable<ResourceMetadata<T extends Enum<T>>>
public T getType()
getType
in interface ResourceMetadata<T extends Enum<T>>
public String getName()
getName
in interface ResourceMetadata<T extends Enum<T>>
public String getProviderId()
getProviderId
in interface ResourceMetadata<T extends Enum<T>>
public URI getUri()
getUri
in interface ResourceMetadata<T extends Enum<T>>
public Map<String,String> getUserMetadata()
getUserMetadata
in interface ResourceMetadata<T extends Enum<T>>
public void setName(String name)
setName
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getName()
public void setType(T type)
setType
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getType()
public void setUserMetadata(Map<String,String> userMetadata)
setUserMetadata
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getUserMetadata()
public void setId(String id)
setId
in interface MutableResourceMetadata<T extends Enum<T>>
#getId
public void setUri(URI uri)
setUri
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getUri()
public void setLocation(Location location)
setLocation
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getLocation()
public Location getLocation()
getLocation
in interface ResourceMetadata<T extends Enum<T>>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.