Package io.protostuff.runtime
Enum PolymorphicSchemaFactories
- java.lang.Object
-
- java.lang.Enum<PolymorphicSchemaFactories>
-
- io.protostuff.runtime.PolymorphicSchemaFactories
-
- All Implemented Interfaces:
PolymorphicSchema.Factory
,java.io.Serializable
,java.lang.Comparable<PolymorphicSchemaFactories>
public enum PolymorphicSchemaFactories extends java.lang.Enum<PolymorphicSchemaFactories> implements PolymorphicSchema.Factory
Polymorphic types.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PolymorphicSchemaFactories()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PolymorphicSchema.Factory
getFactoryFromField(java.lang.reflect.Field f, IdStrategy strategy)
static PolymorphicSchema.Factory
getFactoryFromRepeatedValueGenericType(java.lang.Class<?> clazz)
static PolymorphicSchema
getSchemaFromCollectionOrMapGenericType(java.lang.Class<?> clazz, IdStrategy strategy)
static PolymorphicSchemaFactories
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PolymorphicSchemaFactories[]
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 interface io.protostuff.runtime.PolymorphicSchema.Factory
newSchema
-
-
-
-
Enum Constant Detail
-
ARRAY
public static final PolymorphicSchemaFactories ARRAY
-
NUMBER
public static final PolymorphicSchemaFactories NUMBER
-
CLASS
public static final PolymorphicSchemaFactories CLASS
-
ENUM
public static final PolymorphicSchemaFactories ENUM
-
COLLECTION
public static final PolymorphicSchemaFactories COLLECTION
-
MAP
public static final PolymorphicSchemaFactories MAP
-
THROWABLE
public static final PolymorphicSchemaFactories THROWABLE
-
POJO
public static final PolymorphicSchemaFactories POJO
-
POJO_MAP
public static final PolymorphicSchemaFactories POJO_MAP
-
POJO_COLLECTION
public static final PolymorphicSchemaFactories POJO_COLLECTION
-
OBJECT
public static final PolymorphicSchemaFactories OBJECT
-
-
Method Detail
-
values
public static PolymorphicSchemaFactories[] 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 (PolymorphicSchemaFactories c : PolymorphicSchemaFactories.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolymorphicSchemaFactories 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 namejava.lang.NullPointerException
- if the argument is null
-
getFactoryFromField
public static PolymorphicSchema.Factory getFactoryFromField(java.lang.reflect.Field f, IdStrategy strategy)
-
getFactoryFromRepeatedValueGenericType
public static PolymorphicSchema.Factory getFactoryFromRepeatedValueGenericType(java.lang.Class<?> clazz)
-
getSchemaFromCollectionOrMapGenericType
public static PolymorphicSchema getSchemaFromCollectionOrMapGenericType(java.lang.Class<?> clazz, IdStrategy strategy)
-
-