com.quartzdesk.service.api.jaxb
Class JaxbDatatypeConverter

java.lang.Object
  extended by com.quartzdesk.service.api.jaxb.JaxbDatatypeConverter

public final class JaxbDatatypeConverter
extends Object

Custom JAXB data type converter for JAXB objects.

Version:
$Id:$
Author:
Jan Moravec

Method Summary
static Boolean parseBoolean(String value)
          Parses the specified string value and returns an Boolean.
static Integer parseInteger(String value)
          Parses the specified string value and returns an Integer.
static Long parseLong(String value)
          Parses the specified string value and returns an Long.
static String printBoolean(Boolean value)
          Converts the specified Boolean value to a string value.
static String printInteger(Integer value)
          Converts the specified Integer value to a string value.
static String printLong(Long value)
          Converts the specified Long value to a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseInteger

public static Integer parseInteger(String value)
Parses the specified string value and returns an Integer.

Parameters:
value - a string value.
Returns:
the Integer value.

printInteger

public static String printInteger(Integer value)
Converts the specified Integer value to a string value.

Parameters:
value - an Integer value.
Returns:
the string value.

parseLong

public static Long parseLong(String value)
Parses the specified string value and returns an Long.

Parameters:
value - a string value.
Returns:
the Long value.

printLong

public static String printLong(Long value)
Converts the specified Long value to a string value.

Parameters:
value - an Long value.
Returns:
the string value.

parseBoolean

public static Boolean parseBoolean(String value)
Parses the specified string value and returns an Boolean.

Parameters:
value - a string value.
Returns:
the Boolean value.

printBoolean

public static String printBoolean(Boolean value)
Converts the specified Boolean value to a string value.

Parameters:
value - an Boolean value.
Returns:
the string value.


Copyright © 2013–2017 QuartzDesk.com. All rights reserved.