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

se.l4.commons.serialization.format.Token Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package se.l4.commons.serialization.format;

/**
 * Tokens that the input can return.
 * 
 * @author Andreas Holstenson
 *
 */
public enum Token
{
	/**
	 * Start of a list.
	 */
	LIST_START,
	/**
	 * End of a list.
	 */
	LIST_END,
	/**
	 * Start of an object. 
	 */
	OBJECT_START,
	/**
	 * End of an object.
	 */
	OBJECT_END,
	/**
	 * Key, value is available via {@link StreamingInput#getString()}.
	 */
	KEY,
	/**
	 * Value, available via getters (and {@link StreamingInput#getValue()}).
	 */
	VALUE,
	/**
	 * Null, special case of {@link #VALUE}.
	 */
	NULL
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy