public abstract class JSONDecoder<T> extends AbstractDelegatingDecoder<T,com.fasterxml.jackson.databind.JsonNode>
| Constructor and Description |
|---|
JSONDecoder(Class<T> type) |
JSONDecoder(DecoderKey... keys) |
JSONDecoder(Set<DecoderKey> keys) |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(com.fasterxml.jackson.databind.JsonNode objectToDecode) |
abstract T |
decodeJSON(com.fasterxml.jackson.databind.JsonNode node,
boolean validate) |
protected <T> T |
decodeJsonToObject(com.fasterxml.jackson.databind.JsonNode json,
Class<T> type) |
protected <T> List<T> |
decodeJsonToObjectList(com.fasterxml.jackson.databind.JsonNode node,
Class<T> type) |
Set<DecoderKey> |
getKeys() |
protected CodeType |
parseCodeType(com.fasterxml.jackson.databind.JsonNode node) |
protected CodeWithAuthority |
parseCodeWithAuthority(com.fasterxml.jackson.databind.JsonNode node) |
protected org.joda.time.DateTime |
parseDateTime(String time) |
protected Time |
parseTime(com.fasterxml.jackson.databind.JsonNode node) |
protected TimeInstant |
parseTimeInstant(com.fasterxml.jackson.databind.JsonNode node) |
protected TimePeriod |
parseTimePeriod(com.fasterxml.jackson.databind.JsonNode node) |
getDecoder, getDecoderRepository, setDecoderRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedTypespublic JSONDecoder(DecoderKey... keys)
public JSONDecoder(Set<DecoderKey> keys)
protected <T> T decodeJsonToObject(com.fasterxml.jackson.databind.JsonNode json,
Class<T> type)
throws DecodingException
DecodingExceptionprotected <T> List<T> decodeJsonToObjectList(com.fasterxml.jackson.databind.JsonNode node, Class<T> type) throws DecodingException
DecodingExceptionpublic Set<DecoderKey> getKeys()
public T decode(com.fasterxml.jackson.databind.JsonNode objectToDecode) throws DecodingException
DecodingExceptionprotected TimeInstant parseTimeInstant(com.fasterxml.jackson.databind.JsonNode node) throws DateTimeParseException
DateTimeParseExceptionprotected TimePeriod parseTimePeriod(com.fasterxml.jackson.databind.JsonNode node) throws DateTimeParseException
DateTimeParseExceptionprotected org.joda.time.DateTime parseDateTime(String time) throws DateTimeParseException
DateTimeParseExceptionprotected Time parseTime(com.fasterxml.jackson.databind.JsonNode node) throws DateTimeParseException
DateTimeParseExceptionprotected CodeWithAuthority parseCodeWithAuthority(com.fasterxml.jackson.databind.JsonNode node)
protected CodeType parseCodeType(com.fasterxml.jackson.databind.JsonNode node)
public abstract T decodeJSON(com.fasterxml.jackson.databind.JsonNode node, boolean validate) throws DecodingException
DecodingExceptionCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.