RepresentationTypeSimplifiedV2 (enum)

API

RepresentationTypeSimplifiedV2.java
enum RepresentationTypeSimplifiedV2 {
  OBJECT     (1)
  OBJECT_COLLECTION     (2)
  OBJECT_PROPERTY     (3)
  LIST     (4)
  VALUE     (5)
  VALUES     (6)
  VOID     (7)
  @Getter
final String typeLiteral;
  boolean isObject()
  boolean isObjectCollection()
  boolean isObjectProperty()
  boolean isList()
  boolean isValue()
  boolean isValues()
  boolean isVoid()
  String getContentTypeHeaderValue(String profileName)
  Optional<RepresentationTypeSimplifiedV2> parse(String typeLiteral)
  Optional<RepresentationTypeSimplifiedV2> parseContentTypeHeaderString(String contentTypeHeaderString)
}
1 OBJECT

The media type used as content-Type header when a domain object is rendered.

2 OBJECT_COLLECTION

The media type used as content-Type header when a parented collection is rendered.

3 OBJECT_PROPERTY

The media type used as content-Type header when an object property is rendered.

4 LIST

The media type used as content-Type header when a standalone collection is rendered.

5 VALUE

The media type used as content-Type header when a single (nullable) value is rendered.

6 VALUES

The media type used as content-Type header when a list of values is rendered.

7 VOID

The media type used as content-Type header when a void action result is rendered.

Members

OBJECT

The media type used as content-Type header when a domain object is rendered.

OBJECT_COLLECTION

The media type used as content-Type header when a parented collection is rendered.

OBJECT_PROPERTY

The media type used as content-Type header when an object property is rendered.

LIST

The media type used as content-Type header when a standalone collection is rendered.

VALUE

The media type used as content-Type header when a single (nullable) value is rendered.

VALUES

The media type used as content-Type header when a list of values is rendered.

VOID

The media type used as content-Type header when a void action result is rendered.