All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcamp.parser.ASDFCheckHandler Maven / Gradle / Ivy

Go to download

The JCAMP-DX project is the reference implemention of the IUPAC JCAMP-DX spectroscopy data standard.

The newest version!
package org.jcamp.parser;

interface ASDFCheckHandler {
	public final static int ABORT = 0;
	public final static int REPLACE = 1;
	public final static int OK = 2;
	public final static int IGNORE = 2;
	/**
	* checks current parsing state for x-sequence and y-value
	* if x-sequence is wrong, set current index within state
	* to correct value via state.setCurrentIndex(int newIndex)
	* if y-value is wrong, set current y-value within state
	* to correct value via state.setCurrentY(int newY)
	* @param ASDFParsingState state the current parse state
	* @return int returns the error handling policy:
	*    OK|IGNORE: state is correct
	*    REPLACE: state is modified, do correction
	*    ABORT: state is unrecoverable, throws JCAMPException
	*/
	int check(ASDFParseState state);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy