Enum XBParserState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<XBParserState>

    public enum XBParserState
    extends java.lang.Enum<XBParserState>
    Enumeration of possible parsing states.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATTRIBUTE_PART
      Inside or at the end of attribute part.
      BLOCK_BEGIN
      Start of block or block expected.
      BLOCK_END
      End of block or end of multiple blocks.
      BLOCK_TYPE
      Inside or at the end of block type.
      DATA_PART
      Inside or at the end of data part.
      EOF
      End of parsing.
      CHILDREN_PART
      Inside or at the end of children part.
      START
      Start of file (before Head).
      TAIL_DATA
      Inside tail data.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static XBParserState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static XBParserState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • START

        public static final XBParserState START
        Start of file (before Head).
      • BLOCK_BEGIN

        public static final XBParserState BLOCK_BEGIN
        Start of block or block expected.
      • BLOCK_TYPE

        public static final XBParserState BLOCK_TYPE
        Inside or at the end of block type.
      • ATTRIBUTE_PART

        public static final XBParserState ATTRIBUTE_PART
        Inside or at the end of attribute part.
      • DATA_PART

        public static final XBParserState DATA_PART
        Inside or at the end of data part.
      • CHILDREN_PART

        public static final XBParserState CHILDREN_PART
        Inside or at the end of children part.
      • TAIL_DATA

        public static final XBParserState TAIL_DATA
        Inside tail data.
      • BLOCK_END

        public static final XBParserState BLOCK_END
        End of block or end of multiple blocks.
    • Method Detail

      • values

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

        public static XBParserState valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null