Package com.api.jsonata4java.testerui
Enum TesterUIJsonataExample
- java.lang.Object
-
- java.lang.Enum<TesterUIJsonataExample>
-
- com.api.jsonata4java.testerui.TesterUIJsonataExample
-
- All Implemented Interfaces:
Serializable,Comparable<TesterUIJsonataExample>
public enum TesterUIJsonataExample extends Enum<TesterUIJsonataExample>
Defines a set of examples that can be used to demonstrate JSONata4Java's capabilities. One example consists in 2 files in folder src/test/resources/exerciser.- File 1: <example name in lower case>.json or .xml
- File 2: <example name in lower case>.jsonata
- Author:
- Martin Bluemel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESSINVOICENONESCHEMAXMLADDRESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TesterUIJsonataExamplefromContent(String input, String jsonata)PathgetPathInput()PathgetPathJsonata()StringtoString()static TesterUIJsonataExamplevalueOf(String name)Returns the enum constant of this type with the specified name.static TesterUIJsonataExample[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TesterUIJsonataExample NONE
-
INVOICE
public static final TesterUIJsonataExample INVOICE
-
ADDRESS
public static final TesterUIJsonataExample ADDRESS
-
SCHEMA
public static final TesterUIJsonataExample SCHEMA
-
XMLADDRESS
public static final TesterUIJsonataExample XMLADDRESS
-
-
Method Detail
-
values
public static TesterUIJsonataExample[] 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 (TesterUIJsonataExample c : TesterUIJsonataExample.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TesterUIJsonataExample 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<TesterUIJsonataExample>
-
getPathInput
public Path getPathInput()
-
getPathJsonata
public Path getPathJsonata()
-
fromContent
public static TesterUIJsonataExample fromContent(String input, String jsonata) throws IOException
- Throws:
IOException
-
-