public enum PolymorphicSchemaFactories extends Enum<PolymorphicSchemaFactories> implements PolymorphicSchema.Factory
| Enum Constant and Description |
|---|
ARRAY |
CLASS |
COLLECTION |
ENUM |
MAP |
NUMBER |
OBJECT |
POJO |
POJO_COLLECTION |
POJO_MAP |
THROWABLE |
| Modifier and Type | Method and Description |
|---|---|
static PolymorphicSchema.Factory |
getFactoryFromField(Field f,
IdStrategy strategy) |
static PolymorphicSchema.Factory |
getFactoryFromRepeatedValueGenericType(Class<?> clazz) |
static PolymorphicSchema |
getSchemaFromCollectionOrMapGenericType(Class<?> clazz,
IdStrategy strategy) |
static PolymorphicSchemaFactories |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnewSchemapublic static final PolymorphicSchemaFactories ARRAY
public static final PolymorphicSchemaFactories NUMBER
public static final PolymorphicSchemaFactories CLASS
public static final PolymorphicSchemaFactories ENUM
public static final PolymorphicSchemaFactories COLLECTION
public static final PolymorphicSchemaFactories MAP
public static final PolymorphicSchemaFactories THROWABLE
public static final PolymorphicSchemaFactories POJO
public static final PolymorphicSchemaFactories POJO_MAP
public static final PolymorphicSchemaFactories POJO_COLLECTION
public static final PolymorphicSchemaFactories OBJECT
public static PolymorphicSchemaFactories[] values()
for (PolymorphicSchemaFactories c : PolymorphicSchemaFactories.values()) System.out.println(c);
public static PolymorphicSchemaFactories valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PolymorphicSchema.Factory getFactoryFromField(Field f, IdStrategy strategy)
public static PolymorphicSchema.Factory getFactoryFromRepeatedValueGenericType(Class<?> clazz)
public static PolymorphicSchema getSchemaFromCollectionOrMapGenericType(Class<?> clazz, IdStrategy strategy)
Copyright © 2009–2018. All rights reserved.