public class SimpleResourceDefinition extends BaseResourceDefinition
BaseResourceDefinition.DirectiveType
ResourceDefinition.PostProcessor
Constructor and Description |
---|
SimpleResourceDefinition(Resource.Type resourceType,
String singularName,
String pluralName,
Collection<Resource.Type> subTypes,
Map<BaseResourceDefinition.DirectiveType,? extends Collection<String>> directives)
Constructor.
|
SimpleResourceDefinition(Resource.Type resourceType,
String singularName,
String pluralName,
Resource.Type... subTypes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPluralName()
Obtain the plural name of the resource.
|
String |
getSingularName()
Obtain the singular name of the resource.
|
equals, getCreateDirectives, getDeleteDirectives, getPostProcessors, getReadDirectives, getRenderer, getSubResourceDefinitions, getType, getUpdateDirectives, hashCode, isCreatable
public SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName, Resource.Type... subTypes)
resourceType
- the resource typesingularName
- the resource singular namepluralName
- the resource plural namesubTypes
- the sub-resource typesSimpleResourceDefinition(Resource.Type, String, String, Collection, Map)
public SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName, Collection<Resource.Type> subTypes, Map<BaseResourceDefinition.DirectiveType,? extends Collection<String>> directives)
resourceType
- the resource typesingularName
- the resource singular namepluralName
- the resource plural namesubTypes
- the sub-resource typesdirectives
- the a map of directives for the different request typespublic String getPluralName()
ResourceDefinition
public String getSingularName()
ResourceDefinition
Copyright © 2022 Apache Software Foundation. All rights reserved.