View Javadoc
1   // Generated by delombok at Fri Nov 29 09:48:08 UTC 2024
2   package de.larssh.json.dom;
3   
4   /**
5    * JSON data types
6    */
7   public enum JsonDomType {
8   	/**
9   	 * JSON array
10  	 */
11  	ARRAY("array", true), /**
12  	 * JSON boolean
13  	 */
14  	BOOLEAN("boolean", false), /**
15  	 * JSON null
16  	 */
17  	NULL("null", false), /**
18  	 * JSON number
19  	 */
20  	NUMBER("number", false), /**
21  	 * JSON object
22  	 */
23  	OBJECT("object", true), /**
24  	 * JSON string
25  	 */
26  	STRING("string", false);
27  	/**
28  	 * String representation of the JSON type
29  	 */
30  	private final String value;
31  	/**
32  	 * Tells if this type is complex. Types are complex if they might contain
33  	 * further elements.
34  	 */
35  	private final boolean complex;
36  
37  	/**
38  	 * String representation of the JSON type
39  	 *
40  	 * @return string representation
41  	 */
42  	@java.lang.SuppressWarnings("all")
43  	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
44  	@lombok.Generated
45  	public String getValue() {
46  		return this.value;
47  	}
48  
49  	/**
50  	 * Tells if this type is complex. Types are complex if they might contain
51  	 * further elements.
52  	 *
53  	 * @return {@code true} if this is a complex type
54  	 */
55  	@java.lang.SuppressWarnings("all")
56  	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
57  	@lombok.Generated
58  	public boolean isComplex() {
59  		return this.complex;
60  	}
61  
62  	@java.lang.SuppressWarnings("all")
63  	@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
64  	@lombok.Generated
65  	private JsonDomType(final String value, final boolean complex) {
66  		this.value = value;
67  		this.complex = complex;
68  	}
69  }