Marshalling API version 1.0.0.Beta1

org.jboss.marshalling.reflect
Enum SerializableField.Kind

java.lang.Object
  extended by java.lang.Enum<SerializableField.Kind>
      extended by org.jboss.marshalling.reflect.SerializableField.Kind
All Implemented Interfaces:
Serializable, Comparable<SerializableField.Kind>
Enclosing class:
SerializableField

public static enum SerializableField.Kind
extends Enum<SerializableField.Kind>

The kind of type for this field.


Enum Constant Summary
BOOLEAN
          A boolean-type primitive field.
BYTE
          A byte-type primitive field.
CHAR
          A char-type primitive field.
DOUBLE
          A double-type primitive field.
FLOAT
          A float-type primitive field.
INT
          An int-type primitive field.
LONG
          A long-type primitive field.
OBJECT
          An object field.
SHORT
          A short-type primitive field.
 
Method Summary
static SerializableField.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SerializableField.Kind[] 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

BOOLEAN

public static final SerializableField.Kind BOOLEAN
A boolean-type primitive field.


BYTE

public static final SerializableField.Kind BYTE
A byte-type primitive field.


SHORT

public static final SerializableField.Kind SHORT
A short-type primitive field.


INT

public static final SerializableField.Kind INT
An int-type primitive field.


LONG

public static final SerializableField.Kind LONG
A long-type primitive field.


CHAR

public static final SerializableField.Kind CHAR
A char-type primitive field.


FLOAT

public static final SerializableField.Kind FLOAT
A float-type primitive field.


DOUBLE

public static final SerializableField.Kind DOUBLE
A double-type primitive field.


OBJECT

public static final SerializableField.Kind OBJECT
An object field.

Method Detail

values

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

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

valueOf

public static SerializableField.Kind 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

Marshalling API version 1.0.0.Beta1

Copyright © 2008 JBoss, a division of Red Hat, Inc.