public interface Resource
Modifier and Type | Method and Description |
---|---|
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.
|
Resource |
getParent() |
ResourcePath |
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.
|
Date |
getTimestamp()
Returns the
Date to use for attributes associated with this resource. |
String |
getTypeName()
Returns the type name associated with the resource.
|
String |
getUnmodifiedInstance()
Returns the original unmodified unique name for the instance of this resource.
|
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.
|
Resource getParent()
String getTypeName()
String getInstance()
IndexStorageStrategy
String getUnmodifiedInstance()
ObjectNameStorageStrategy
String getLabel(CollectionResource resource)
CollectionResourceWrapper
String
object.ResourcePath getPath(CollectionResource resource)
resource
- Used by the GenericTypeResource
in order to determine the instance name.Date getTimestamp()
Date
to use for attributes associated with this resource.Date
or null if the current time should be used.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.
See DeferredGenericTypeResource.resolve()
.
This method should only be called when running in the context of the OpenNMS JVM (and not the Minion).
Copyright © 2021. All rights reserved.