public enum RepresentationType extends Enum<RepresentationType>
| Enum Constant and Description |
|---|
ACTION_DESCRIPTION |
ACTION_PARAMETER_DESCRIPTION |
ACTION_RESULT |
COLLECTION_DESCRIPTION |
DOMAIN_OBJECT |
DOMAIN_TYPE |
ERROR |
GENERIC |
HOME_PAGE |
LIST |
OBJECT_ACTION |
OBJECT_COLLECTION |
OBJECT_PROPERTY |
PROPERTY_DESCRIPTION |
TYPE_ACTION_RESULT |
TYPE_LIST |
USER |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MediaType |
getMediaType() |
javax.ws.rs.core.MediaType |
getMediaType(Map<String,String> mediaTypeParams)
Clones the (immutable)
media type, adding all provided
parameters. |
javax.ws.rs.core.MediaType |
getMediaType(String parameter,
String paramValue)
Clones the (immutable)
media type, adding in one additional
parameter value. |
String |
getMediaTypeProfile() |
String |
getName() |
Class<? extends JsonRepresentation> |
getRepresentationClass() |
static RepresentationType |
lookup(javax.ws.rs.core.MediaType mediaType) |
static RepresentationType |
lookup(String name) |
static Parser<RepresentationType> |
parser() |
static RepresentationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RepresentationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RepresentationType HOME_PAGE
public static final RepresentationType USER
public static final RepresentationType VERSION
public static final RepresentationType LIST
public static final RepresentationType DOMAIN_OBJECT
public static final RepresentationType OBJECT_PROPERTY
public static final RepresentationType OBJECT_COLLECTION
public static final RepresentationType OBJECT_ACTION
public static final RepresentationType ACTION_RESULT
public static final RepresentationType TYPE_LIST
public static final RepresentationType DOMAIN_TYPE
public static final RepresentationType PROPERTY_DESCRIPTION
public static final RepresentationType COLLECTION_DESCRIPTION
public static final RepresentationType ACTION_DESCRIPTION
public static final RepresentationType ACTION_PARAMETER_DESCRIPTION
public static final RepresentationType TYPE_ACTION_RESULT
public static final RepresentationType ERROR
public static final RepresentationType GENERIC
public static RepresentationType[] values()
for (RepresentationType c : RepresentationType.values()) System.out.println(c);
public static RepresentationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final javax.ws.rs.core.MediaType getMediaType()
public javax.ws.rs.core.MediaType getMediaType(String parameter, String paramValue)
media type, adding in one additional
parameter value.public javax.ws.rs.core.MediaType getMediaType(Map<String,String> mediaTypeParams)
media type, adding all provided
parameters.public String getMediaTypeProfile()
public Class<? extends JsonRepresentation> getRepresentationClass()
public static RepresentationType lookup(String name)
public static RepresentationType lookup(javax.ws.rs.core.MediaType mediaType)
public static Parser<RepresentationType> parser()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.