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 SchemaVersion2000 implements SchemaVersion { 32 public static QName QNAME_NIL = new QName (Constants.URI_2000_SCHEMA_XSI, 33 "null"); 34 38 SchemaVersion2000() { 39 } 40 41 46 public QName getNilQName() { 47 return QNAME_NIL; 48 } 49 50 54 public String getXsiURI() { 55 return Constants.URI_2000_SCHEMA_XSI; 56 } 57 58 62 public String getXsdURI() { 63 return Constants.URI_2000_SCHEMA_XSD; 64 } 65 68 public void registerSchemaSpecificTypes(TypeMappingImpl tm) { 69 70 tm.register(java.util.Calendar .class, 72 Constants.XSD_TIMEINSTANT2000, 73 new CalendarSerializerFactory(java.util.Calendar .class, 74 Constants.XSD_TIMEINSTANT2000), 75 new CalendarDeserializerFactory(java.util.Calendar .class, 76 Constants.XSD_TIMEINSTANT2000)); 77 } 78 } 79 | Popular Tags |