1 29 30 package com.caucho.jaxb.skeleton; 31 import com.caucho.jaxb.*; 32 import javax.xml.bind.*; 33 import javax.xml.namespace.*; 34 import javax.xml.stream.*; 35 import java.util.*; 36 import java.text.*; 37 38 import java.lang.reflect.*; 39 import java.io.*; 40 41 import com.caucho.vfs.WriteStream; 42 43 46 public class CalendarProperty extends CDataProperty { 47 public static final CalendarProperty PROPERTY = new CalendarProperty(); 48 49 protected String write(Object in) 50 throws IOException, XMLStreamException 51 { 52 return DatatypeConverter.printDateTime((Calendar) in); 53 } 54 55 protected Object read(String in) 56 throws IOException, XMLStreamException 57 { 58 return DatatypeConverter.parseDateTime(in); 59 } 60 61 public String getSchemaType() 62 { 63 return "xsd:dateTime"; 64 } 65 } 66 67 68 | Popular Tags |