org.apache.isis.viewer.restfulobjects.applib
Enum RepresentationType

java.lang.Object
  extended by java.lang.Enum<RepresentationType>
      extended by org.apache.isis.viewer.restfulobjects.applib.RepresentationType
All Implemented Interfaces:
Serializable, Comparable<RepresentationType>

public enum RepresentationType
extends Enum<RepresentationType>


Enum Constant Summary
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
           
SCALAR_VALUE
           
TRANSIENT_DOMAIN_OBJECT
           
TYPE_ACTION_RESULT
           
TYPE_LIST
           
USER
           
VERSION
           
 
Method Summary
 javax.ws.rs.core.MediaType getMediaType()
           
 String getMediaTypeWithProfile()
           
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HOME_PAGE

public static final RepresentationType HOME_PAGE

USER

public static final RepresentationType USER

VERSION

public static final RepresentationType VERSION

LIST

public static final RepresentationType LIST

SCALAR_VALUE

public static final RepresentationType SCALAR_VALUE

DOMAIN_OBJECT

public static final RepresentationType DOMAIN_OBJECT

TRANSIENT_DOMAIN_OBJECT

public static final RepresentationType TRANSIENT_DOMAIN_OBJECT

OBJECT_PROPERTY

public static final RepresentationType OBJECT_PROPERTY

OBJECT_COLLECTION

public static final RepresentationType OBJECT_COLLECTION

OBJECT_ACTION

public static final RepresentationType OBJECT_ACTION

ACTION_RESULT

public static final RepresentationType ACTION_RESULT

TYPE_LIST

public static final RepresentationType TYPE_LIST

DOMAIN_TYPE

public static final RepresentationType DOMAIN_TYPE

PROPERTY_DESCRIPTION

public static final RepresentationType PROPERTY_DESCRIPTION

COLLECTION_DESCRIPTION

public static final RepresentationType COLLECTION_DESCRIPTION

ACTION_DESCRIPTION

public static final RepresentationType ACTION_DESCRIPTION

ACTION_PARAMETER_DESCRIPTION

public static final RepresentationType ACTION_PARAMETER_DESCRIPTION

TYPE_ACTION_RESULT

public static final RepresentationType TYPE_ACTION_RESULT

ERROR

public static final RepresentationType ERROR

GENERIC

public static final RepresentationType GENERIC
Method Detail

values

public static RepresentationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RepresentationType c : RepresentationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RepresentationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()

getMediaType

public final javax.ws.rs.core.MediaType getMediaType()

getMediaTypeWithProfile

public String getMediaTypeWithProfile()

getRepresentationClass

public Class<? extends JsonRepresentation> getRepresentationClass()

lookup

public static RepresentationType lookup(String name)

lookup

public static RepresentationType lookup(javax.ws.rs.core.MediaType mediaType)

parser

public static Parser<RepresentationType> parser()


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.