org.deegree.commons.types
Class XMLValueMangler
java.lang.Object
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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLValueMangler
public XMLValueMangler()
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>