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 SchemaVersion2001 implements SchemaVersion 71 { 72 public static QName QNAME_NIL = new QName (Constants.URI_2001_SCHEMA_XSI, 73 "nil"); 74 75 79 SchemaVersion2001() 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_2001_SCHEMA_XSI; 102 } 103 104 109 public String getXsdURI() 110 { 111 return Constants.URI_2001_SCHEMA_XSD; 112 } 113 114 117 public void registerSchemaSpecificTypes(TypeMapping tm) 118 { 119 120 tm.register(java.util.Date .class, 122 Constants.XSD_DATETIME, 123 new CalendarSerializerFactory(java.util.Date .class, 124 Constants.XSD_DATETIME), 125 new CalendarDeserializerFactory(java.util.Date .class, 126 Constants.XSD_DATETIME)); 127 128 tm.register(java.util.Calendar .class, 131 Constants.XSD_DATETIME, 132 new CalendarSerializerFactory(java.util.Calendar .class, 133 Constants.XSD_DATETIME), 134 new CalendarDeserializerFactory(java.util.Calendar .class, 135 Constants.XSD_DATETIME)); 136 137 } 138 } 139 | Popular Tags |