public class ResourceLineage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceLineage.LineagePath
A node in the lineage that includes the resource and the link to the next node.
|
Constructor and Description |
---|
ResourceLineage()
Empty lineage for objects rooted in the URL.
|
ResourceLineage(ResourceLineage sharedLineage,
PersistentResource next,
String relationship)
Extends a lineage with a new resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object input) |
List<String> |
getKeys()
Gets keys.
|
PersistentResource |
getParent()
Returns the immediate parent resource if one exists.
|
List<PersistentResource> |
getRecord(String name)
Gets record.
|
List<ResourceLineage.LineagePath> |
getResourcePath() |
int |
hashCode() |
public ResourceLineage()
public ResourceLineage(ResourceLineage sharedLineage, PersistentResource next, String relationship)
sharedLineage
- the shared lineagenext
- the nextrelationship
- The relationship name that links the lineage with the next element.public List<PersistentResource> getRecord(String name)
name
- the namepublic PersistentResource getParent()
public List<ResourceLineage.LineagePath> getResourcePath()
Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.