JsonDomType.java

// Generated by delombok at Fri Nov 29 09:48:08 UTC 2024
package de.larssh.json.dom;

/**
 * JSON data types
 */
public enum JsonDomType {
	/**
	 * JSON array
	 */
	ARRAY("array", true), /**
	 * JSON boolean
	 */
	BOOLEAN("boolean", false), /**
	 * JSON null
	 */
	NULL("null", false), /**
	 * JSON number
	 */
	NUMBER("number", false), /**
	 * JSON object
	 */
	OBJECT("object", true), /**
	 * JSON string
	 */
	STRING("string", false);
	/**
	 * String representation of the JSON type
	 */
	private final String value;
	/**
	 * Tells if this type is complex. Types are complex if they might contain
	 * further elements.
	 */
	private final boolean complex;

	/**
	 * String representation of the JSON type
	 *
	 * @return string representation
	 */
	@java.lang.SuppressWarnings("all")
	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
	@lombok.Generated
	public String getValue() {
		return this.value;
	}

	/**
	 * Tells if this type is complex. Types are complex if they might contain
	 * further elements.
	 *
	 * @return {@code true} if this is a complex type
	 */
	@java.lang.SuppressWarnings("all")
	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
	@lombok.Generated
	public boolean isComplex() {
		return this.complex;
	}

	@java.lang.SuppressWarnings("all")
	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
	@lombok.Generated
	private JsonDomType(final String value, final boolean complex) {
		this.value = value;
		this.complex = complex;
	}
}