deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.commons.types
Class XMLValueMangler

java.lang.Object
  extended by org.deegree.commons.types.XMLValueMangler

public class XMLValueMangler
extends Object

Converts between internal object values and XML strings.

Version:
$Revision: 22129 $, $Date: 2010-01-21 19:03:13 +0100 (Do, 21 Jan 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
XMLValueMangler()
           
 
Method Summary
static PrimitiveType getPrimitiveType(org.apache.xerces.impl.dv.XSSimpleType xsdTypeDef)
          Returns the best matching PrimitiveType for the given XSD simple type definition.
static String internalToXML(Object o)
           
static Object xmlToInternal(String s, PrimitiveType pt)
          Returns the internal representation for the given XML string and PrimitiveType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValueMangler

public XMLValueMangler()
Method Detail

xmlToInternal

public static Object xmlToInternal(String s,
                                   PrimitiveType pt)
                            throws IllegalArgumentException
Returns the internal representation for the given XML string and PrimitiveType.

Parameters:
s -
pt -
Returns:
Throws:
IllegalArgumentException

internalToXML

public static String internalToXML(Object o)

getPrimitiveType

public static PrimitiveType getPrimitiveType(org.apache.xerces.impl.dv.XSSimpleType xsdTypeDef)
Returns the best matching PrimitiveType for the given XSD simple type definition.

Parameters:
xsdTypeDef -
Returns:
best matching PrimitiveType, never null

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>