Enum HeaderType

    • Enum Constant Detail

      • JAVADOC_STYLE

        public static final HeaderType JAVADOC_STYLE
      • SCRIPT_STYLE

        public static final HeaderType SCRIPT_STYLE
      • HAML_STYLE

        public static final HeaderType HAML_STYLE
      • XML_STYLE

        public static final HeaderType XML_STYLE
      • SEMICOLON_STYLE

        public static final HeaderType SEMICOLON_STYLE
      • APOSTROPHE_STYLE

        public static final HeaderType APOSTROPHE_STYLE
      • EXCLAMATION_STYLE

        public static final HeaderType EXCLAMATION_STYLE
      • DOUBLEDASHES_STYLE

        public static final HeaderType DOUBLEDASHES_STYLE
      • SLASHSTAR_STYLE

        public static final HeaderType SLASHSTAR_STYLE
      • BRACESSTAR_STYLE

        public static final HeaderType BRACESSTAR_STYLE
      • SHARPSTAR_STYLE

        public static final HeaderType SHARPSTAR_STYLE
      • DOUBLETILDE_STYLE

        public static final HeaderType DOUBLETILDE_STYLE
      • DYNASCRIPT_STYLE

        public static final HeaderType DYNASCRIPT_STYLE
      • DYNASCRIPT3_STYLE

        public static final HeaderType DYNASCRIPT3_STYLE
      • PERCENT3_STYLE

        public static final HeaderType PERCENT3_STYLE
      • EXCLAMATION3_STYLE

        public static final HeaderType EXCLAMATION3_STYLE
      • DOUBLESLASH_STYLE

        public static final HeaderType DOUBLESLASH_STYLE
    • Method Detail

      • values

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

        public static HeaderType 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
      • getDefinition

        public HeaderDefinition getDefinition()
        Returns the HeaderDefinition which corresponds to this enumeration instance.
        Returns:
        The header definition.
      • fromName

        public static HeaderType fromName​(String name)
        Returns the HeaderType declared in this enumeration for the given header type name.
        Parameters:
        name - The header definition type name.
        Returns:
        The HeaderType declared in this enumeration if found or UNKNOWN.
      • defaultDefinitions

        public static Map<String,​HeaderDefinition> defaultDefinitions()
        Returns the header definitions of every default definitions declared by this enumeration as a map using the header type name as key.
        Returns:
        The default definitions declared by this enumeration.