Enum TraitType

    • Enum Constant Detail

      • DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT

        public static final TraitType DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT
      • DEFAULT_VALUE_TRAIT

        public static final TraitType DEFAULT_VALUE_TRAIT
      • JSON_VALUE_TRAIT

        public static final TraitType JSON_VALUE_TRAIT
      • LIST_TRAIT

        public static final TraitType LIST_TRAIT
      • LOCATION_TRAIT

        public static final TraitType LOCATION_TRAIT
      • MAP_TRAIT

        public static final TraitType MAP_TRAIT
      • PAYLOAD_TRAIT

        public static final TraitType PAYLOAD_TRAIT
      • REQUIRED_TRAIT

        public static final TraitType REQUIRED_TRAIT
      • TIMESTAMP_FORMAT_TRAIT

        public static final TraitType TIMESTAMP_FORMAT_TRAIT
      • XML_ATTRIBUTE_TRAIT

        public static final TraitType XML_ATTRIBUTE_TRAIT
      • XML_ATTRIBUTES_TRAIT

        public static final TraitType XML_ATTRIBUTES_TRAIT
    • Method Detail

      • values

        public static TraitType[] 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 (TraitType c : TraitType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TraitType 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
      • from

        public static TraitType from​(Class<?> clazz)
        Returns the type for the given class.