public static class EmptyInventory.ResourcesSingle extends Object implements Resources.Single
| Constructor and Description |
|---|
ResourcesSingle() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
entity()
Resolves the entity and returns it.
|
Metrics.ReadAssociate |
metrics() |
Relationships.ReadWrite |
relationships() |
Relationships.ReadWrite |
relationships(Relationships.Direction direction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexistspublic Metrics.ReadAssociate metrics()
public Relationships.ReadWrite relationships()
public Relationships.ReadWrite relationships(Relationships.Direction direction)
direction - the direction of the relation (aka edge) This is needed because relationships are not
bidirectional.public Resource entity() throws EntityNotFoundException, RelationNotFoundException
ResolvableToSingleEntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversalCopyright © 2015 Red Hat, Inc.. All rights reserved.