com.wles.util
Class StringTypeConverter

java.lang.Object
  extended bycom.wles.util.StringTypeConverter
All Implemented Interfaces:
com.wles.util.TypeConverter

public class StringTypeConverter
extends java.lang.Object
implements com.wles.util.TypeConverter


Field Summary
static StringTypeConverter singleton
           
 
Constructor Summary
StringTypeConverter()
           
 
Method Summary
 java.lang.Object convertFromASI(java.lang.String asiType)
          Converts an ASI string to a Java Object.
 java.lang.String convertToASI(java.lang.Object javaType)
          Converts a java object into an ASI string.
static java.lang.String fromASI(java.lang.String asiType)
           
 java.lang.String getASITypeName()
          Returns the ASI type name.
 java.lang.Class getType()
          Returns the type which this converter converts.
static java.lang.String toASI(java.lang.String javaType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static final StringTypeConverter singleton
Constructor Detail

StringTypeConverter

public StringTypeConverter()
Method Detail

convertFromASI

public java.lang.Object convertFromASI(java.lang.String asiType)
                                throws TypeConversionException
Description copied from interface: com.wles.util.TypeConverter
Converts an ASI string to a Java Object.

Specified by:
convertFromASI in interface com.wles.util.TypeConverter
Throws:
TypeConversionException

convertToASI

public java.lang.String convertToASI(java.lang.Object javaType)
                              throws UnsupportedTypeException
Description copied from interface: com.wles.util.TypeConverter
Converts a java object into an ASI string.

Specified by:
convertToASI in interface com.wles.util.TypeConverter
Throws:
UnsupportedTypeException

fromASI

public static java.lang.String fromASI(java.lang.String asiType)

getASITypeName

public java.lang.String getASITypeName()
Description copied from interface: com.wles.util.TypeConverter
Returns the ASI type name.

Specified by:
getASITypeName in interface com.wles.util.TypeConverter

getType

public java.lang.Class getType()
Description copied from interface: com.wles.util.TypeConverter
Returns the type which this converter converts.

Specified by:
getType in interface com.wles.util.TypeConverter

toASI

public static java.lang.String toASI(java.lang.String javaType)


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.