FileDocCategorySizeDatePackage
SchemaVersion2001.javaAPI DocApache Axis 1.42989Sat Apr 22 18:57:28 BST 2006org.apache.axis.schema

SchemaVersion2001

public class SchemaVersion2001 extends Object implements SchemaVersion
2001 Schema characteristics.
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
public static QName
QNAME_NIL
Constructors Summary
SchemaVersion2001()
Package-access constructor - access this through SchemaVersion constants.


                 
     
    
Methods Summary
public javax.xml.namespace.QNamegetNilQName()
Get the appropriate QName for the "null"/"nil" attribute for this Schema version.

return
{http://www.w3.org/2001/XMLSchema-instance}nil

        return QNAME_NIL;
    
public java.lang.StringgetXsdURI()
The XSD URI

return
the XSD URI

        return Constants.URI_2001_SCHEMA_XSD;
    
public java.lang.StringgetXsiURI()
The XSI URI

return
the XSI URI

        return Constants.URI_2001_SCHEMA_XSI;
    
public voidregisterSchemaSpecificTypes(org.apache.axis.encoding.TypeMappingImpl tm)
Register the schema specific type mappings

        
        // This mapping will convert a Java 'Date' type to a dateTime
        tm.register(java.util.Date.class,
                    Constants.XSD_DATETIME,
                   new CalendarSerializerFactory(java.util.Date.class,
                                             Constants.XSD_DATETIME),
                   new CalendarDeserializerFactory(java.util.Date.class,
                                               Constants.XSD_DATETIME)
                   );
        
        // This is the preferred mapping per JAX-RPC.
        // Last one registered take priority
        tm.register(java.util.Calendar.class,
                    Constants.XSD_DATETIME,
                   new CalendarSerializerFactory(java.util.Calendar.class,
                                             Constants.XSD_DATETIME),
                   new CalendarDeserializerFactory(java.util.Calendar.class,
                                               Constants.XSD_DATETIME)
                   );