Enum Class BasicLocationField

java.lang.Object
java.lang.Enum<BasicLocationField>
net.solarnetwork.codec.BasicLocationField
All Implemented Interfaces:
Serializable, Comparable<BasicLocationField>, Constable, IndexedField

public enum BasicLocationField extends Enum<BasicLocationField> implements IndexedField
Fields for BasicLocation.
Since:
1.72
Version:
1.1
Author:
matt
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static BasicLocationField[] 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

      public static BasicLocationField valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIndex

      public int getIndex()
      Description copied from interface: IndexedField
      Get the index.
      Specified by:
      getIndex in interface IndexedField
      Returns:
      the index
    • getFieldName

      public String getFieldName()
      Description copied from interface: IndexedField
      Get the field name.
      Specified by:
      getFieldName in interface IndexedField
      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: IndexedField
      Parse a value from a parser.
      Specified by:
      parseValue in interface IndexedField
      Parameters:
      parser - the parser
      ctxt - the context
      Returns:
      the parsed object
      Throws:
      IOException - if any IO error occurs
      com.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: IndexedField
      Write a value to a generator.
      Specified by:
      writeValue in interface IndexedField
      Parameters:
      generator - the generator
      provider - the provider
      value - the value to write
      Throws:
      IOException - if any IO error occurs
      com.fasterxml.jackson.core.JsonProcessingException - if any JSON processing error occurs