org.n52.wps.util
Class BasicXMLTypeFactory
java.lang.Object
org.n52.wps.util.BasicXMLTypeFactory
public class BasicXMLTypeFactory
- extends java.lang.Object
|
Method Summary |
static IData |
getBasicJavaObject(java.lang.String xmlDataTypeURI,
java.lang.String obj)
This is a helper method to create always the correct Java Type out of a string. |
static java.lang.String |
getStringRepresentation(java.lang.String xmlDataTypeURI,
IData obj)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOUBLE_URI
public static final java.lang.String DOUBLE_URI
- See Also:
- Constant Field Values
FLOAT_URI
public static final java.lang.String FLOAT_URI
- See Also:
- Constant Field Values
INTEGER_URI
public static final java.lang.String INTEGER_URI
- See Also:
- Constant Field Values
LONG_URI
public static final java.lang.String LONG_URI
- See Also:
- Constant Field Values
INT_URI
public static final java.lang.String INT_URI
- See Also:
- Constant Field Values
SHORT_URI
public static final java.lang.String SHORT_URI
- See Also:
- Constant Field Values
BYTE_URI
public static final java.lang.String BYTE_URI
- See Also:
- Constant Field Values
BOOLEAN_URI
public static final java.lang.String BOOLEAN_URI
- See Also:
- Constant Field Values
STRING_URI
public static final java.lang.String STRING_URI
- See Also:
- Constant Field Values
DATETIME_URI
public static final java.lang.String DATETIME_URI
- See Also:
- Constant Field Values
DATE_URI
public static final java.lang.String DATE_URI
- See Also:
- Constant Field Values
BASE64BINARY_URI
public static final java.lang.String BASE64BINARY_URI
- See Also:
- Constant Field Values
getBasicJavaObject
public static IData getBasicJavaObject(java.lang.String xmlDataTypeURI,
java.lang.String obj)
- This is a helper method to create always the correct Java Type out of a string.
It is based on the basic schema datatypes.
If xmlDataTypeURI is null, string dataType will be assumed.
- Parameters:
xmlDataTypeURI - the expected XML basicDataTypeobj - the XML object String
getStringRepresentation
public static java.lang.String getStringRepresentation(java.lang.String xmlDataTypeURI,
IData obj)
Copyright © 2007-2011 52north.org. All Rights Reserved.