public class GenericTypeResource extends DeferredGenericTypeResource
| Constructor and Description |
|---|
GenericTypeResource(NodeLevelResource node,
ResourceType resourceType,
String instance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLabel(CollectionResource resource)
Returns a unique label for the instance of this resource.
|
ResourcePath |
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.
|
PersistenceSelectorStrategy |
getPersistenceSelectorStrategy() |
ResourceType |
getResourceType() |
StorageStrategy |
getStorageStrategy() |
String |
getTypeName()
Returns the type name associated with the resource.
|
int |
hashCode() |
Resource |
resolve()
Used to lookup additional resource related information that may not
have been available when the resource was created, and optionally return a
new resource.
|
protected static String |
sanitizeInstance(String instance) |
String |
toString() |
getFallbackTypeName, getInstance, getParentgetTimestamp, setTimestamppublic GenericTypeResource(NodeLevelResource node, ResourceType resourceType, String instance)
public ResourceType getResourceType()
public String getLabel(CollectionResource resource)
ResourceCollectionResourceWrappergetLabel in interface ResourcegetLabel in class DeferredGenericTypeResourceString object.public ResourcePath getPath(CollectionResource resource)
ResourcegetPath in interface ResourcegetPath in class DeferredGenericTypeResourceresource - Used by the GenericTypeResource in order to determine the instance name.public Resource resolve()
ResourceUsed to lookup additional resource related information that may not have been available when the resource was created, and optionally return a new resource.
See DeferredGenericTypeResource.resolve().
This method should only be called when running in the context of the OpenNMS JVM (and not the Minion).
resolve in interface Resourceresolve in class DeferredGenericTypeResourcepublic StorageStrategy getStorageStrategy()
public PersistenceSelectorStrategy getPersistenceSelectorStrategy()
public String getTypeName()
ResourcegetTypeName in interface ResourcegetTypeName in class DeferredGenericTypeResourcepublic String toString()
toString in class DeferredGenericTypeResourcepublic int hashCode()
hashCode in class DeferredGenericTypeResourcepublic boolean equals(Object obj)
equals in class DeferredGenericTypeResourceCopyright © 2018. All rights reserved.