public class GeolocationConverter extends AbstractConverter implements com.google.gson.JsonSerializer<Geolocation>
configuration| Constructor and Description |
|---|
GeolocationConverter(org.apache.commons.configuration.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class klass) |
void |
marshal(Object object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
com.google.gson.JsonElement |
serialize(Geolocation geolocation,
Type type,
com.google.gson.JsonSerializationContext context) |
protected void |
writeAccuracy(Long accuracy,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeAccuracy(Long accuracy,
com.google.gson.JsonObject object) |
protected void |
writeAgeOfLocationInfo(Integer ageOfLocationInfo,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeAgeOfLocationInfo(Integer ageOfLocationInfo,
com.google.gson.JsonObject object) |
protected void |
writeCause(String cause,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeCause(String cause,
com.google.gson.JsonObject object) |
protected void |
writeCellId(String cellId,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeCellId(String cellId,
com.google.gson.JsonObject object) |
protected void |
writeDateExecuted(org.joda.time.DateTime dateExecuted,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeDateExecuted(org.joda.time.DateTime dateExecuted,
com.google.gson.JsonObject object) |
protected void |
writeDeviceIdentifier(String deviceIdentifier,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeDeviceIdentifier(String deviceIdentifier,
com.google.gson.JsonObject object) |
protected void |
writeDeviceLatitude(String deviceLatitude,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeDeviceLatitude(String deviceLatitude,
com.google.gson.JsonObject object) |
protected void |
writeDeviceLongitude(String deviceLongitude,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeDeviceLongitude(String deviceLongitude,
com.google.gson.JsonObject object) |
protected void |
writeEventGeofenceLatitude(String eventGeofenceLatitude,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeEventGeofenceLatitude(String eventGeofenceLatitude,
com.google.gson.JsonObject object) |
protected void |
writeEventGeofenceLongitude(String eventGeofenceLongitude,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeEventGeofenceLongitude(String eventGeofenceLongitude,
com.google.gson.JsonObject object) |
protected void |
writeFormattedAddress(String formattedAddress,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeFormattedAddress(String formattedAddress,
com.google.gson.JsonObject object) |
protected void |
writeGeolocationData(Geolocation geolocation,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeGeolocationData(Geolocation geolocation,
com.google.gson.JsonObject object) |
protected void |
writeGeolocationPositioningType(String geolocationPositioningType,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeGeolocationPositioningType(String geolocationPositioningType,
com.google.gson.JsonObject object) |
protected void |
writeGeolocationType(Geolocation.GeolocationType geolocationType,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeGeolocationType(Geolocation.GeolocationType geolocationType,
com.google.gson.JsonObject object) |
protected void |
writeInternetAddress(String internetAddress,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeInternetAddress(String internetAddress,
com.google.gson.JsonObject object) |
protected void |
writeLastGeolocationResponse(String lastGeolocationResponse,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeLastGeolocationResponse(String lastGeolocationResponse,
com.google.gson.JsonObject object) |
protected void |
writeLocationAreaCode(String locationAreaCode,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeLocationAreaCode(String locationAreaCode,
com.google.gson.JsonObject object) |
protected void |
writeLocationTimestamp(org.joda.time.DateTime locationTimestamp,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeLocationTimestamp(org.joda.time.DateTime locationTimestamp,
com.google.gson.JsonObject object) |
protected void |
writeMobileCountryCode(Integer mobileCountryCode,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeMobileCountryCode(Integer mobileCountryCode,
com.google.gson.JsonObject object) |
protected void |
writeMobileNetworkCode(String mobileNetworkCode,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeMobileNetworkCode(String mobileNetworkCode,
com.google.gson.JsonObject object) |
protected void |
writeNetworkEntityAddress(Long networkEntityAddress,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeNetworkEntityAddress(Long networkEntityAddress,
com.google.gson.JsonObject object) |
protected void |
writePhysicalAddress(String physicalAddress,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writePhysicalAddress(String physicalAddress,
com.google.gson.JsonObject object) |
protected void |
writeRadius(Long radius,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeRadius(Long radius,
com.google.gson.JsonObject object) |
protected void |
writeResponseStatus(String responseStatus,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeResponseStatus(String responseStatus,
com.google.gson.JsonObject object) |
protected void |
writeSource(String source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
protected void |
writeSource(String source,
com.google.gson.JsonObject object) |
unmarshal, writeAccountSid, writeAccountSid, writeApiVersion, writeApiVersion, writeCallSid, writeCallSid, writeCapabilities, writeCapabilities, writeDateCreated, writeDateCreated, writeDateUpdated, writeDateUpdated, writeDuration, writeDuration, writeFaxCapability, writeFaxCapability, writeFriendlyName, writeFriendlyName, writeFrom, writeFrom, writeMmsCapability, writeMmsCapability, writePhoneNumber, writePhoneNumber, writePrice, writePrice, writePriceUnit, writePriceUnit, writeReferMethod, writeReferMethod, writeReferUrl, writeReferUrl, writeSid, writeSid, writeSmsCapability, writeSmsCapability, writeSmsFallbackMethod, writeSmsFallbackMethod, writeSmsFallbackUrl, writeSmsFallbackUrl, writeSmsMethod, writeSmsMethod, writeSmsUrl, writeSmsUrl, writeStatus, writeStatus, writeStatusCallback, writeStatusCallback, writeStatusCallbackMethod, writeStatusCallbackMethod, writeTimeToLive, writeTimeToLive, writeTo, writeTo, writeType, writeType, writeUri, writeUri, writeUserName, writeUserName, writeUssdFallbackMethod, writeUssdFallbackMethod, writeUssdFallbackUrl, writeUssdFallbackUrl, writeUssdMethod, writeUssdMethod, writeUssdUrl, writeUssdUrl, writeVoiceApplicationSid, writeVoiceApplicationSid, writeVoiceCallerIdLookup, writeVoiceCallerIdLookup, writeVoiceCapability, writeVoiceCapability, writeVoiceFallbackMethod, writeVoiceFallbackMethod, writeVoiceFallbackUrl, writeVoiceFallbackUrl, writeVoiceMethod, writeVoiceMethod, writeVoiceUrl, writeVoiceUrlpublic GeolocationConverter(org.apache.commons.configuration.Configuration configuration)
public boolean canConvert(Class klass)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class AbstractConverterpublic void marshal(Object object, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Convertermarshal in class AbstractConverterpublic com.google.gson.JsonElement serialize(Geolocation geolocation, Type type, com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<Geolocation>protected void writeDateExecuted(org.joda.time.DateTime dateExecuted,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeDateExecuted(org.joda.time.DateTime dateExecuted,
com.google.gson.JsonObject object)
protected void writeSource(String source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeSource(String source, com.google.gson.JsonObject object)
protected void writeDeviceIdentifier(String deviceIdentifier, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeDeviceIdentifier(String deviceIdentifier, com.google.gson.JsonObject object)
protected void writeGeolocationType(Geolocation.GeolocationType geolocationType, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeGeolocationType(Geolocation.GeolocationType geolocationType, com.google.gson.JsonObject object)
protected void writeResponseStatus(String responseStatus, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeResponseStatus(String responseStatus, com.google.gson.JsonObject object)
protected void writeGeolocationData(Geolocation geolocation, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeGeolocationData(Geolocation geolocation, com.google.gson.JsonObject object)
protected void writeCellId(String cellId, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeCellId(String cellId, com.google.gson.JsonObject object)
protected void writeLocationAreaCode(String locationAreaCode, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeLocationAreaCode(String locationAreaCode, com.google.gson.JsonObject object)
protected void writeMobileCountryCode(Integer mobileCountryCode, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeMobileCountryCode(Integer mobileCountryCode, com.google.gson.JsonObject object)
protected void writeMobileNetworkCode(String mobileNetworkCode, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeMobileNetworkCode(String mobileNetworkCode, com.google.gson.JsonObject object)
protected void writeNetworkEntityAddress(Long networkEntityAddress, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeNetworkEntityAddress(Long networkEntityAddress, com.google.gson.JsonObject object)
protected void writeAgeOfLocationInfo(Integer ageOfLocationInfo, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeAgeOfLocationInfo(Integer ageOfLocationInfo, com.google.gson.JsonObject object)
protected void writeDeviceLatitude(String deviceLatitude, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeDeviceLatitude(String deviceLatitude, com.google.gson.JsonObject object)
protected void writeDeviceLongitude(String deviceLongitude, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeDeviceLongitude(String deviceLongitude, com.google.gson.JsonObject object)
protected void writeAccuracy(Long accuracy, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeAccuracy(Long accuracy, com.google.gson.JsonObject object)
protected void writePhysicalAddress(String physicalAddress, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writePhysicalAddress(String physicalAddress, com.google.gson.JsonObject object)
protected void writeInternetAddress(String internetAddress, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeInternetAddress(String internetAddress, com.google.gson.JsonObject object)
protected void writeFormattedAddress(String formattedAddress, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeFormattedAddress(String formattedAddress, com.google.gson.JsonObject object)
protected void writeLocationTimestamp(org.joda.time.DateTime locationTimestamp,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeLocationTimestamp(org.joda.time.DateTime locationTimestamp,
com.google.gson.JsonObject object)
protected void writeEventGeofenceLatitude(String eventGeofenceLatitude, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeEventGeofenceLatitude(String eventGeofenceLatitude, com.google.gson.JsonObject object)
protected void writeEventGeofenceLongitude(String eventGeofenceLongitude, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeEventGeofenceLongitude(String eventGeofenceLongitude, com.google.gson.JsonObject object)
protected void writeRadius(Long radius, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeRadius(Long radius, com.google.gson.JsonObject object)
protected void writeGeolocationPositioningType(String geolocationPositioningType, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeGeolocationPositioningType(String geolocationPositioningType, com.google.gson.JsonObject object)
protected void writeLastGeolocationResponse(String lastGeolocationResponse, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeLastGeolocationResponse(String lastGeolocationResponse, com.google.gson.JsonObject object)
protected void writeCause(String cause, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
protected void writeCause(String cause, com.google.gson.JsonObject object)
Copyright © 2017. All Rights Reserved.