Enum DataFileElementReader

    • Field Detail

      • STRING_DELIMITER

        public static String STRING_DELIMITER
      • DOUBLE_PATTERN

        public static String DOUBLE_PATTERN
      • INT_PATTERN

        public static String INT_PATTERN
      • tag

        public final String tag
    • Method Detail

      • values

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

        public static DataFileElementReader 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
      • getElementHandler

        public static DataFileElementReader getElementHandler​(org.jdom.Element nodeToHandle)
      • handle

        public abstract Object[] handle​(DataFileReader parserInst,
                                        OutputBuilder<?,​?> outWriter,
                                        org.jdom.Element nodeToHandle)
                                 throws IOException
        Handles the specified node. Any elements to be added to the data tree should be added in this method and also returned by this method.
        Parameters:
        parserInst - the instance of the reader that this is working with
        OutputBuilder - the writer to use for writing
        nodeToHandle - the node providing data
        Returns:
        any elements added to the data tree
        Throws:
        IOException - when there is an error reading