Enum DataFileElementReader

    • Field Detail


        public static String STRING_DELIMITER

        public static String DOUBLE_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())
        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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        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.
        parserInst - the instance of the reader that this is working with
        OutputBuilder - the writer to use for writing
        nodeToHandle - the node providing data
        any elements added to the data tree
        IOException - when there is an error reading