Enum HeaderKey

    • Enum Constant Detail

      • COMMENT

        public static final HeaderKey COMMENT
        Header comment.
      • CLASSIFICATION

        public static final HeaderKey CLASSIFICATION
        Classification.
        Since:
        12.0
      • CREATION_DATE

        public static final HeaderKey CREATION_DATE
        Creation date.
      • ORIGINATOR

        public static final HeaderKey ORIGINATOR
        Creating agency or operator.
      • MESSAGE_ID

        public static final HeaderKey MESSAGE_ID
        ID that uniquely identifies a message from a given originator.
    • Method Detail

      • values

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

        public static HeaderKey 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
      • process

        public boolean process​(ParseToken token,
                               ContextBinding context,
                               Header header)
        Process an token.
        Parameters:
        token - token to process
        context - context binding
        header - header to fill
        Returns:
        true of token was accepted