public class XmlIntegerAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<XmlInteger,java.lang.Integer>
Constructor and Description |
---|
XmlIntegerAdapter() |
Modifier and Type | Method and Description |
---|---|
XmlInteger |
marshal(java.lang.Integer n)
Convert a Integer into an XmlInteger.
|
XmlInteger[] |
marshalArray(java.util.Collection<java.lang.Integer> c)
Convert a collection of Integers into an array of XmlIntegers.
|
XmlInteger[] |
marshalArray(java.lang.Integer[] n)
Convert an array of Integers into an array of XmlIntegers.
|
java.lang.Integer |
unmarshal(XmlInteger xml)
Convert an XmlInteger into a Integer.
|
java.lang.Integer[] |
unmarshalArray(XmlInteger[] xml)
Convert an array of XmlInteger objects in an array of Integer objects.
|
java.util.List<java.lang.Integer> |
unmarshalList(java.util.List<XmlInteger> xmlInts)
Convert a list of XmlInteger objects into a list of Integer objects
|
public XmlInteger marshal(java.lang.Integer n)
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlInteger,java.lang.Integer>
n
- the Integerpublic XmlInteger[] marshalArray(java.lang.Integer[] n)
n
- the arraypublic XmlInteger[] marshalArray(java.util.Collection<java.lang.Integer> c)
c
- the collectionpublic java.lang.Integer unmarshal(XmlInteger xml)
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlInteger,java.lang.Integer>
xml
- the XML Integerpublic java.lang.Integer[] unmarshalArray(XmlInteger[] xml)
xml
- the XML Integer arraypublic java.util.List<java.lang.Integer> unmarshalList(java.util.List<XmlInteger> xmlInts)
xmlInts
- the list