@ProviderType
public class Resource
extends java.lang.Object
Only three implementations are allowed: Resource.Item
, Resource.Paged
and
Resource.Nested
.
This class should never be directly instantiated. Use one of its
descendants
static methods (Resource.Paged.of(java.lang.String)
, Resource.Item.of(java.lang.String)
and Resource.Nested.of(com.liferay.apio.architect.resource.Resource.Item, java.lang.String)
)
instead.
Resource.Item
,
Resource.Paged
,
Resource.Nested
Modifier and Type | Class and Description |
---|---|
static class |
Resource.GenericParent
Instances of this class represent a generic parent resource.
|
static class |
Resource.Id
Instances of this class represent an item's ID.
|
static class |
Resource.Item
Instances of this class represent an item resource.
|
static class |
Resource.Nested
Instances of this class represent a nested resource.
|
static class |
Resource.Paged
Instances of this class represent a paged resource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The resource's name
|