Enum ConfigurationOption

    • Method Detail

      • values

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

        public static ConfigurationOption 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
      • getValue

        public <T> T getValue​(jakarta.ws.rs.SeBootstrap.Configuration configuration)
        Resolves the value from the configuration
        Type Parameters:
        T - the type for the value
        Parameters:
        configuration - the configuration the value is resolved from
        Returns:
        the value or the default value which may be null
      • key

        public String key()
        The key for the property.
        Returns:
        the key for the property
      • defaultValue

        public <T> T defaultValue()
        The default value.
        Type Parameters:
        T - the type of the value
        Returns:
        the default value
      • expectedType

        public <T> Class<? extends T> expectedType()
        The expected type.
        Type Parameters:
        T - the type of the value
        Returns:
        the expected type
      • validate

        public void validate​(Object value)
        Validates the value can be assigned to this configuration option.
        Parameters:
        value - the value to validate
        Throws:
        IllegalArgumentException - if the value cannot be assigned to this configuration option