Enum SchemaUtil.CoercionOptions

    • Method Detail

      • values

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

        public static SchemaUtil.CoercionOptions 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
      • canTransformCaptures

        public static boolean canTransformCaptures​(Collection<SchemaUtil.CoercionOptions> options)
        Can coercion options transform a capture field?
        Parameters:
        options - coercion options
        Returns:
        true if options can transform a capture
      • canChangeFieldCount

        public boolean canChangeFieldCount()
        Can option change field count?
        Returns:
        true if field count can change
      • canTransformsCaptures

        public boolean canTransformsCaptures()
        Can option transform capture fields?
        Returns:
        true if option can transform captures