org.deegree.commons.tom.primitive
Class XMLValueMangler

java.lang.Object
  extended by org.deegree.commons.tom.primitive.XMLValueMangler

public class XMLValueMangler
extends java.lang.Object

Converts between internal object values and XML strings.

Version:
$Revision: 27596 $, $Date: 2010-10-28 16:37:20 +0200 (Do, 28. Okt 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
XMLValueMangler()
           
 
Method Summary
static PrimitiveType getPrimitiveType(org.apache.xerces.xs.XSSimpleTypeDefinition xsdTypeDef)
          Returns the best matching PrimitiveType for the given XSD simple type definition.
static java.lang.String internalToXML(java.lang.Object o)
           
static java.lang.Object xmlToInternal(java.lang.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 java.lang.Object xmlToInternal(java.lang.String s,
                                             PrimitiveType pt)
                                      throws java.lang.IllegalArgumentException
Returns the internal representation for the given XML string and PrimitiveType.

Parameters:
s -
pt -
Returns:
Throws:
java.lang.IllegalArgumentException

internalToXML

public static java.lang.String internalToXML(java.lang.Object o)

getPrimitiveType

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

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


Copyright © 2011. All Rights Reserved.