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 SchemaVersion1999 implements SchemaVersion 71 { 72 public static QName QNAME_NIL = new QName (Constants.URI_1999_SCHEMA_XSI, 73 "null"); 74 75 79 SchemaVersion1999() 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_1999_SCHEMA_XSI; 102 } 103 104 109 public String getXsdURI() 110 { 111 return Constants.URI_1999_SCHEMA_XSD; 112 } 113 114 117 public void registerSchemaSpecificTypes(TypeMapping tm) 118 { 119 120 tm.register(java.util.Calendar .class, 122 Constants.XSD_TIMEINSTANT1999, 123 new CalendarSerializerFactory(java.util.Calendar .class, 124 Constants.XSD_TIMEINSTANT1999), 125 new CalendarDeserializerFactory(java.util.Calendar .class, 126 Constants.XSD_TIMEINSTANT1999)); 127 } 128 } 129 | Popular Tags |