IRIS Adapter1
Tree
+- root: Adapter1
Flattened
Adapter1
Java Code
package modelsiris; import java.util.Calendar; import javax.xml.bind.annotation.adapters.XmlAdapter; public class Adapter1 extends XmlAdapter<String, Calendar> { public Calendar unmarshal(String value) { return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); } public String marshal(Calendar value) { if (value == null) { return null; } return (javax.xml.bind.DatatypeConverter.printDateTime(value)); } }