Package net.solarnetwork.codec
Enum Class BasicLocationField
- All Implemented Interfaces:
Serializable,Comparable<BasicLocationField>,Constable,IndexedField
Fields for
BasicLocation.- Since:
- 1.72
- Version:
- 1.1
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe country.The elevation.The latitude.The locality.The longitude.The name.The postal code.The region.The state or province.The street.The time zone ID. -
Field Summary
Fields -
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 BasicLocationFieldReturns the enum constant of this class with the specified name.static BasicLocationField[]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
-
Name
The name. -
Country
The country. -
Region
The region. -
StateOrProvince
The state or province. -
PostalCode
The postal code. -
Locality
The locality. -
Street
The street. -
Latitude
The latitude. -
Longitude
The longitude. -
Elevation
The elevation. -
TimeZoneId
The time zone ID.
-
-
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
-