public class DeferredGenericTypeResource extends AbstractResource
Constructor and Description |
---|
DeferredGenericTypeResource(NodeLevelResource node,
String resourceTypeName,
String instance) |
DeferredGenericTypeResource(NodeLevelResource node,
String resourceTypeName,
String fallbackResourceTypeName,
String instance) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFallbackTypeName() |
String |
getInstance()
Returns a unique name for the instance of this resource.
|
String |
getLabel(CollectionResource resource)
Returns a unique label for the instance of this resource.
|
NodeLevelResource |
getParent() |
ResourcePath |
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.
|
String |
getTypeName()
Returns the type name associated with the resource.
|
String |
getUnmodifiedInstance()
Returns the original unmodified unique name for the instance of this 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.
|
String |
toString() |
getTimestamp, setTimestamp
public DeferredGenericTypeResource(NodeLevelResource node, String resourceTypeName, String instance)
public DeferredGenericTypeResource(NodeLevelResource node, String resourceTypeName, String fallbackResourceTypeName, String instance)
public NodeLevelResource getParent()
public String getTypeName()
Resource
public String getFallbackTypeName()
public String getInstance()
Resource
IndexStorageStrategy
public String getUnmodifiedInstance()
Resource
ObjectNameStorageStrategy
public String getLabel(CollectionResource resource)
Resource
CollectionResourceWrapper
String
object.public ResourcePath getPath(CollectionResource resource)
Resource
resource
- Used by the GenericTypeResource
in order to determine the instance name.public Resource resolve()
Resource
Used to lookup additional resource related information that may not have been available when the resource was created, and optionally return a new resource.
See resolve()
.
This method should only be called when running in the context of the OpenNMS JVM (and not the Minion).
resolve
in interface Resource
resolve
in class AbstractResource
Copyright © 2020. All rights reserved.