XML simple values

Gosu uses the gw.xml.XmlSimpleValue type to represent the XML format of simple values. An XmlSimpleValue object stores a value and provides the logic to serialize that value into XML. Until serialization occurs, Gosu may internally store the value in a format other than java.lang.String.

For example, XML represents hexadecimal-encoded binary data using the xsd:hexBinary type, representing such values with an XmlSimpleValue object whose backing storage is a byte[] array. Gosu converts the byte array to hexadecimal digits when it serializes the XML element.

The following properties are provided by XmlSimpleValue:

GosuValueType
The IType of the Gosu value
GosuValue
The type-specific Gosu value, such as a javax.xml.namespace.QName for an xsd:QName
StringValue
A String representation of the simple value, such as for a QName, which might not be the string that is actually serialized

See also