1 55 56 package org.jboss.axis.schema; 57 58 import org.jboss.axis.Constants; 59 import org.jboss.axis.encoding.TypeMapping; 60 import org.jboss.axis.encoding.ser.CalendarDeserializerFactory; 61 import org.jboss.axis.encoding.ser.CalendarSerializerFactory; 62 63 import javax.xml.namespace.QName ; 64 65 70 public class SchemaVersion2000 implements SchemaVersion 71 { 72 public static QName QNAME_NIL = new QName (Constants.URI_2000_SCHEMA_XSI, 73 "null"); 74 75 79 SchemaVersion2000() 80 { 81 } 82 83 89 public QName getNilQName() 90 { 91 return QNAME_NIL; 92 } 93 94 99 public String getXsiURI() 100 { 101 return Constants.URI_2000_SCHEMA_XSI; 102 } 103 104 109 public String getXsdURI() 110 { 111 return Constants.URI_2000_SCHEMA_XSD; 112 } 113 114 117 public void registerSchemaSpecificTypes(TypeMapping tm) 118 { 119 120 tm.register(java.util.Calendar .class, 122 Constants.XSD_TIMEINSTANT2000, 123 new CalendarSerializerFactory(java.util.Calendar .class, 124 Constants.XSD_TIMEINSTANT2000), 125 new CalendarDeserializerFactory(java.util.Calendar .class, 126 Constants.XSD_TIMEINSTANT2000)); 127 } 128 } 129 | Popular Tags |