org.fudgemsg.types.secondary
Class JavaUtilTimeZoneFieldType

java.lang.Object
  extended by org.fudgemsg.FudgeFieldType<SecondaryType>
      extended by org.fudgemsg.types.SecondaryFieldTypeBase<SecondaryType,PrimitiveType,PrimitiveType>
          extended by org.fudgemsg.types.SecondaryFieldType<TimeZone,String>
              extended by org.fudgemsg.types.secondary.JavaUtilTimeZoneFieldType
All Implemented Interfaces:
Serializable, FudgeTypeConverter<String,TimeZone>

public class JavaUtilTimeZoneFieldType
extends SecondaryFieldType<TimeZone,String>

Secondary type for TimeZone conversion to/from a String transport object.

See Also:
Serialized Form

Field Summary
static JavaUtilTimeZoneFieldType INSTANCE
          Singleton instance of the type.
 
Method Summary
 TimeZone primaryToSecondary(String object)
          Primary to secondary conversion, where the primary type is a String.
 String secondaryToPrimary(TimeZone object)
          Converts an object from the secondary type to a primitive Fudge type for writing.
 
Methods inherited from class org.fudgemsg.types.SecondaryFieldType
canConvertPrimary, readValue, writeValue
 
Methods inherited from class org.fudgemsg.types.SecondaryFieldTypeBase
getPrimaryType, getVariableSize
 
Methods inherited from class org.fudgemsg.FudgeFieldType
equals, getFixedSize, getJavaType, getTypeId, hashCode, isVariableSize, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final JavaUtilTimeZoneFieldType INSTANCE
Singleton instance of the type.

Method Detail

secondaryToPrimary

public String secondaryToPrimary(TimeZone object)
Converts an object from the secondary type to a primitive Fudge type for writing. An implementation may assume that the object parameter is not null.

Specified by:
secondaryToPrimary in class SecondaryFieldTypeBase<TimeZone,String,String>
Parameters:
object - the secondary instance
Returns:
the underlying Fudge data to write out

primaryToSecondary

public TimeZone primaryToSecondary(String object)
Primary to secondary conversion, where the primary type is a String.

Specified by:
primaryToSecondary in interface FudgeTypeConverter<String,TimeZone>
Overrides:
primaryToSecondary in class SecondaryFieldType<TimeZone,String>
Parameters:
object - primary object
Returns:
the converted TimeZone object


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0