public class GenericTypeResource extends Object implements Resource
Constructor and Description |
---|
GenericTypeResource(NodeLevelResource node,
ResourceType resourceType,
String instance) |
Modifier and Type | Method and Description |
---|---|
String |
getInstance()
Returns a unique name for the instance of this resource.
|
NodeLevelResource |
getParent() |
Path |
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.
|
PersistenceSelectorStrategy |
getPersistenceSelectorStrategy() |
StorageStrategy |
getStorageStrategy() |
String |
toString() |
public GenericTypeResource(NodeLevelResource node, ResourceType resourceType, String instance)
public NodeLevelResource getParent()
public String getInstance()
Resource
IndexStorageStrategy
getInstance
in interface Resource
public Path getPath(CollectionResource resource)
Resource
getPath
in interface Resource
resource
- Used by the GenericTypeResource
in order to determine the instance name.public StorageStrategy getStorageStrategy()
public PersistenceSelectorStrategy getPersistenceSelectorStrategy()
Copyright © 2016. All rights reserved.