com.stackmob.sdk.util
Enum SerializationMetadata
java.lang.Object
java.lang.Enum<SerializationMetadata>
com.stackmob.sdk.util.SerializationMetadata
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SerializationMetadata>
public enum SerializationMetadata
- extends java.lang.Enum<SerializationMetadata>
This class stores some information about classes in an easily queriable form
| 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 |
PRIMITIVE
public static final SerializationMetadata PRIMITIVE
OBJECT
public static final SerializationMetadata OBJECT
MODEL
public static final SerializationMetadata MODEL
PRIMITIVE_ARRAY
public static final SerializationMetadata PRIMITIVE_ARRAY
OBJECT_ARRAY
public static final SerializationMetadata OBJECT_ARRAY
MODEL_ARRAY
public static final SerializationMetadata MODEL_ARRAY
values
public static SerializationMetadata[] 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 (SerializationMetadata c : SerializationMetadata.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SerializationMetadata valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getSerializationMetadata
public static SerializationMetadata getSerializationMetadata(java.lang.Class<?> actualClass,
java.lang.String fieldName)
getFieldNameFromJsonName
public static java.lang.String getFieldNameFromJsonName(java.lang.Class<?> actualClass,
java.lang.String jsonName)
ensureMetadata
public static void ensureMetadata(java.lang.Class<?> actualClass)
getComponentClass
public static java.lang.Class<?> getComponentClass(java.lang.reflect.Field field)
Copyright © 2012 StackMob. All Rights Reserved.