public enum TraitType extends Enum<TraitType>
| Enum Constant and Description |
|---|
DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT |
DEFAULT_VALUE_TRAIT |
JSON_VALUE_TRAIT |
LIST_TRAIT |
LOCATION_TRAIT |
MAP_TRAIT |
PAYLOAD_TRAIT |
REQUIRED_TRAIT |
TIMESTAMP_FORMAT_TRAIT |
XML_ATTRIBUTE_TRAIT |
XML_ATTRIBUTES_TRAIT |
| Modifier and Type | Method and Description |
|---|---|
static TraitType |
from(Class<?> clazz)
Returns the type for the given class.
|
static TraitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TraitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraitType DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT
public static final TraitType DEFAULT_VALUE_TRAIT
public static final TraitType JSON_VALUE_TRAIT
public static final TraitType LIST_TRAIT
public static final TraitType LOCATION_TRAIT
public static final TraitType MAP_TRAIT
public static final TraitType PAYLOAD_TRAIT
public static final TraitType REQUIRED_TRAIT
public static final TraitType TIMESTAMP_FORMAT_TRAIT
public static final TraitType XML_ATTRIBUTE_TRAIT
public static final TraitType XML_ATTRIBUTES_TRAIT
public static TraitType[] values()
for (TraitType c : TraitType.values()) System.out.println(c);
public static TraitType 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 nullCopyright © 2026. All rights reserved.