Enum Class Rule
- All Implemented Interfaces:
Serializable, Comparable<Rule>, Constable
A rule of the
JsonModel contract that ModelVerifier checks.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJsonModel.compareNumbers(ca.marcusdunn.jsonlens.model.JsonNumber, ca.marcusdunn.jsonlens.model.JsonNumber)has the sign of the comparison of the exact values.JsonModel.element(Object, int)gives an element for each index below the length, and none outside the array.JsonModel.equal(Object, Object)gives the result of the default method.Two reads of the same value give equal nodes with equal hash codes.JsonModel.hasDuplicate(Object, ca.marcusdunn.jsonlens.model.JsonString)tells if the cursor gives two or more members with the name.JsonModel.member(Object, ca.marcusdunn.jsonlens.model.JsonString)gives the value of the first member of the cursor with the name.JsonModel.memberCount(Object)gives the number of members of the cursor.The cursor gives the same members in the same order each time, and stays at the end.JsonModel.members(Object)gives the members of the cursor, in order.No method throws an exception.No method returnsnull.JsonModel.numberValue(Object)gives the same exact value each time.JsonModel.stringValue(Object)gives the same scalar values each time. -
Method Summary
-
Enum Constant Details
-
NO_EXCEPTIONS
No method throws an exception. -
NO_NULLS
No method returnsnull. -
ELEMENTS
JsonModel.element(Object, int)gives an element for each index below the length, and none outside the array. -
MEMBER_CURSOR
The cursor gives the same members in the same order each time, and stays at the end. -
MEMBER_COUNT
JsonModel.memberCount(Object)gives the number of members of the cursor. -
MEMBER
JsonModel.member(Object, ca.marcusdunn.jsonlens.model.JsonString)gives the value of the first member of the cursor with the name. -
MEMBERS
JsonModel.members(Object)gives the members of the cursor, in order. -
HAS_DUPLICATE
JsonModel.hasDuplicate(Object, ca.marcusdunn.jsonlens.model.JsonString)tells if the cursor gives two or more members with the name. -
EQUAL_NODES
Two reads of the same value give equal nodes with equal hash codes. -
STRING_VALUE
JsonModel.stringValue(Object)gives the same scalar values each time. -
NUMBER_VALUE
JsonModel.numberValue(Object)gives the same exact value each time. -
COMPARE_NUMBERS
JsonModel.compareNumbers(ca.marcusdunn.jsonlens.model.JsonNumber, ca.marcusdunn.jsonlens.model.JsonNumber)has the sign of the comparison of the exact values. -
EQUAL
JsonModel.equal(Object, Object)gives the result of the default method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
text
-