public class XmlStringAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<XmlString,java.lang.String>
Constructor and Description |
---|
XmlStringAdapter() |
Modifier and Type | Method and Description |
---|---|
XmlString |
marshal(java.lang.String s)
Convert a String into an XmlString.
|
XmlString[] |
marshalArray(java.util.Collection<java.lang.String> c)
Convert a collection of strings into an array of XmlStrings.
|
XmlString[] |
marshalArray(java.lang.String[] s)
Convert an array of strings into an array of XmlStrings.
|
java.lang.String |
unmarshal(XmlString xml)
Convert an XmlString into a String.
|
java.lang.String[] |
unmarshalArray(XmlString[] xml)
Convert an array of XmlString objects in an array of String objects.
|
public XmlString marshal(java.lang.String s)
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlString,java.lang.String>
s
- the stringpublic XmlString[] marshalArray(java.lang.String[] s)
s
- the arraypublic XmlString[] marshalArray(java.util.Collection<java.lang.String> c)
c
- the collectionpublic java.lang.String unmarshal(XmlString xml)
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlString,java.lang.String>
xml
- the XML stringpublic java.lang.String[] unmarshalArray(XmlString[] xml)
xml
- the XML string array