Package net.solarnetwork.codec
Enum Class BasicInstructionStatusField
- All Implemented Interfaces:
Serializable,Comparable<BasicInstructionStatusField>,Constable,IndexedField
public enum BasicInstructionStatusField
extends Enum<BasicInstructionStatusField>
implements IndexedField
Fields for
BasicInstructionStatus de/serialization.- Since:
- 2.0
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<String,BasicInstructionStatusField> A field map. -
Method Summary
Modifier and TypeMethodDescriptionGet the field name.intgetIndex()Get the index.parseValue(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt) Parse a value from a parser.static BasicInstructionStatusFieldReturns the enum constant of this class with the specified name.static BasicInstructionStatusField[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteValue(com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider provider, Object value) Write a value to a generator.
-
Enum Constant Details
-
InstructionId
-
StatusDate
-
InstructionState
-
ResultParameters
-
-
Field Details
-
FIELD_MAP
A field map.
-
-
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
-
getIndex
public int getIndex()Description copied from interface:IndexedFieldGet the index.- Specified by:
getIndexin interfaceIndexedField- Returns:
- the index
-
getFieldName
Description copied from interface:IndexedFieldGet the field name.- Specified by:
getFieldNamein interfaceIndexedField- Returns:
- the fieldName
-
parseValue
public Object parseValue(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException Description copied from interface:IndexedFieldParse a value from a parser.- Specified by:
parseValuein interfaceIndexedField- Parameters:
parser- the parserctxt- the context- Returns:
- the parsed object
- Throws:
IOException- if any IO error occurscom.fasterxml.jackson.core.JsonProcessingException- if any JSON processing error occurs
-
writeValue
public void writeValue(com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider provider, Object value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException Description copied from interface:IndexedFieldWrite a value to a generator.- Specified by:
writeValuein interfaceIndexedField- Parameters:
generator- the generatorprovider- the providervalue- the value to write- Throws:
IOException- if any IO error occurscom.fasterxml.jackson.core.JsonProcessingException- if any JSON processing error occurs
-