1 16 17 package org.apache.axis.schema; 18 19 import org.apache.axis.Constants; 20 import org.apache.axis.encoding.TypeMappingImpl; 21 import org.apache.axis.encoding.ser.CalendarDeserializerFactory; 22 import org.apache.axis.encoding.ser.CalendarSerializerFactory; 23 24 import javax.xml.namespace.QName ; 25 26 31 public class SchemaVersion2001 implements SchemaVersion { 32 public static QName QNAME_NIL = new QName (Constants.URI_2001_SCHEMA_XSI, 33 "nil"); 34 35 39 SchemaVersion2001() { 40 } 41 42 47 public QName getNilQName() { 48 return QNAME_NIL; 49 } 50 51 55 public String getXsiURI() { 56 return Constants.URI_2001_SCHEMA_XSI; 57 } 58 59 63 public String getXsdURI() { 64 return Constants.URI_2001_SCHEMA_XSD; 65 } 66 67 70 public void registerSchemaSpecificTypes(TypeMappingImpl tm) { 71 72 tm.register(java.util.Date .class, 74 Constants.XSD_DATETIME, 75 new CalendarSerializerFactory(java.util.Date .class, 76 Constants.XSD_DATETIME), 77 new CalendarDeserializerFactory(java.util.Date .class, 78 Constants.XSD_DATETIME) 79 ); 80 81 tm.register(java.util.Calendar .class, 84 Constants.XSD_DATETIME, 85 new CalendarSerializerFactory(java.util.Calendar .class, 86 Constants.XSD_DATETIME), 87 new CalendarDeserializerFactory(java.util.Calendar .class, 88 Constants.XSD_DATETIME) 89 ); 90 91 } 92 } 93 | Popular Tags |