Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 1ade40d793744736565cf5c660b99278 > files > 2

msv-1.2-0.1.20050722.3.1.5mdv2008.1.src.rpm

/*
 * @(#)$Id: DateType.java,v 1.1 2006/08/14 17:08:07 kohsuke Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.datatype.xsd;


/**
 * "date" type.
 * 
 * type of the value object is {@link com.sun.msv.datatype.xsd.datetime.IDateTimeValueType}.
 * See http://www.w3.org/TR/xmlschema-2/#dateTime for the spec
 * 
 * @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
 */
public class DateType extends DateTimeBaseType {
    
    public static final DateType theInstance = new DateType();
    private DateType() { super("date"); }
    
    protected final String getFormat() {
        return "%Y-%M-%D%z";
    }

    // serialization support
    private static final long serialVersionUID = 1;    
}