Class CommonConverter
java.lang.Object
org.entur.avro.realtime.siri.converter.CommonConverter
- Direct Known Subclasses:
Avro2JaxbConverter,Avro2JaxbEnumConverter,Jaxb2AvroConverter,Jaxb2AvroEnumConverter,ServiceConverter,ServiceConverter,SubscriptionConverter,SubscriptionConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BigDecimalprotected static BigIntegerprotected static Doubleprotected static Integerconvert(BigInteger bigInteger) protected static CharSequenceprotected static CharSequenceconvert(ZonedDateTime responseTimestamp) protected static CharSequenceprotected static uk.org.siri.siri21.FramedVehicleJourneyRefStructureconvert(org.entur.avro.realtime.siri.model.FramedVehicleJourneyRefRecord framedVehicleJourneyRef) protected static org.entur.avro.realtime.siri.model.FramedVehicleJourneyRefRecordconvert(uk.org.siri.siri21.FramedVehicleJourneyRefStructure framedVehicleJourneyRef) protected static Integerconvert(uk.org.siri.siri21.SituationVersion version) protected static ZonedDateTimeconvertDate(CharSequence responseTimestamp) protected static DurationconvertDuration(CharSequence duration) protected static List<org.entur.avro.realtime.siri.model.TranslatedStringRecord>convertNames(List names) protected static Collection<String>convertStringList(List<CharSequence> strings) protected static uk.org.siri.siri21.SituationVersionconvertVersion(Integer version) protected static List<org.entur.avro.realtime.siri.model.TranslatedStringRecord>getTranslatedValues(List items) Uses reflection to call "getValue()" to fetch actual values from provided objectprotected static CharSequenceUses reflection to call "getValue()" to fetch actual values from provided objectprotected static List<CharSequence>Uses reflection to call "getValue()" to fetch actual values from provided objectprotected static booleanisNullOrEmpty(List items) protected static <T> List<T>setTranslatedValues(Class<T> clazz, List<org.entur.avro.realtime.siri.model.TranslatedStringRecord> value) Uses reflection to call "getValue()" to fetch actual values from provided objectprotected static <T> TsetValue(Class<T> clazz, CharSequence value) Uses reflection to call "setValue()" to set actual values from provided objectprotected static <T> List<T>Uses reflection to call "setValue()" to set actual values in object of provided type
-
Field Details
-
forceTimeZone
-
-
Constructor Details
-
CommonConverter
public CommonConverter()
-
-
Method Details
-
getValue
Uses reflection to call "getValue()" to fetch actual values from provided object- Parameters:
item-- Returns:
-
isNullOrEmpty
-
getValues
Uses reflection to call "getValue()" to fetch actual values from provided object- Parameters:
items-- Returns:
-
setValue
Uses reflection to call "setValue()" to set actual values from provided object- Parameters:
clazz-value-- Returns:
-
setValues
Uses reflection to call "setValue()" to set actual values in object of provided type- Parameters:
clazz-values-- Returns:
-
getTranslatedValues
protected static List<org.entur.avro.realtime.siri.model.TranslatedStringRecord> getTranslatedValues(List items) Uses reflection to call "getValue()" to fetch actual values from provided object- Parameters:
items-- Returns:
-
setTranslatedValues
protected static <T> List<T> setTranslatedValues(Class<T> clazz, List<org.entur.avro.realtime.siri.model.TranslatedStringRecord> value) Uses reflection to call "getValue()" to fetch actual values from provided object- Parameters:
clazz-value-- Returns:
-
convert
-
convertDate
-
convertNames
-
convertVersion
-
convert
-
convertStringList
-
convert
-
convert
-
convert
-
convert
-
convert
-
convert
-
convert
protected static uk.org.siri.siri21.FramedVehicleJourneyRefStructure convert(org.entur.avro.realtime.siri.model.FramedVehicleJourneyRefRecord framedVehicleJourneyRef) -
convert
protected static org.entur.avro.realtime.siri.model.FramedVehicleJourneyRefRecord convert(uk.org.siri.siri21.FramedVehicleJourneyRefStructure framedVehicleJourneyRef) -
convertDuration
-