org.mule.transport.jcr
Enum JcrContentPayloadType

java.lang.Object
  extended by java.lang.Enum<JcrContentPayloadType>
      extended by org.mule.transport.jcr.JcrContentPayloadType
All Implemented Interfaces:
Serializable, Comparable<JcrContentPayloadType>

public enum JcrContentPayloadType
extends Enum<JcrContentPayloadType>

A typesafe enum that represents the supported content paylod types for a JCR event.

Author:
David Dossot (david@dossot.net)

Enum Constant Summary
FULL
          The payload will contain event information and data from the node source of the event.
NO_BINARY
          The payload will contain event information and data from the node source of the event, only if this data is not of bynary type.
NONE
          No content will be fetched from JCR: the payload will be limited to the event information.
 
Method Summary
static JcrContentPayloadType fromString(String type)
           
 String toString()
           
static JcrContentPayloadType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JcrContentPayloadType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final JcrContentPayloadType NONE
No content will be fetched from JCR: the payload will be limited to the event information.


NO_BINARY

public static final JcrContentPayloadType NO_BINARY
The payload will contain event information and data from the node source of the event, only if this data is not of bynary type.


FULL

public static final JcrContentPayloadType FULL
The payload will contain event information and data from the node source of the event.

Method Detail

values

public static JcrContentPayloadType[] 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 (JcrContentPayloadType c : JcrContentPayloadType.values())
    System.out.println(c);

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

valueOf

public static JcrContentPayloadType 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

toString

public String toString()
Overrides:
toString in class Enum<JcrContentPayloadType>

fromString

public static JcrContentPayloadType fromString(String type)
                                        throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2011. All Rights Reserved.