Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class Date

java.lang.Object
  extended bycom.sssw.jbroker.web.xsd.Validator
      extended bycom.sssw.jbroker.web.xsd.Date
All Implemented Interfaces:
Serializable

public class Date
extends Validator

A wrapper class that contains a date. Please refer to the XML Schema for the complete definition of this simple type.

Since:
jBroker Web 2.0
See Also:
Serialized Form

Constructor Summary
Date(Date value)
          Construct a date with the specified value.
Date(String value)
          Construct an date with the specified value.
 
Method Summary
 boolean equals(Object other)
           
 Date getValue()
          Get the value of this date.
 int hashCode()
           
 void setValue(Date value)
          Set the value of this date.
 String toString()
          Return string form of object
static void validate(Object object)
          Validate that a date is a proper XML Schema date.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date(String value)
     throws IllegalArgumentException
Construct an date with the specified value.

Parameters:
value - the value of the date
Throws:
IllegalArgumentException - if the value can not be validated as an date.

Date

public Date(Date value)
Construct a date with the specified value.

Parameters:
value - the value of the date
Throws:
IllegalArgumentException - if the value can not be validated as a date.
Method Detail

getValue

public Date getValue()
Get the value of this date.

Returns:
the value of the date

setValue

public void setValue(Date value)
              throws IllegalArgumentException
Set the value of this date.

Parameters:
value - the value of the date
Throws:
IllegalArgumentException - if the value can not be validated as an date.

toString

public String toString()
Return string form of object

Returns:
the value of the string

equals

public boolean equals(Object other)

hashCode

public int hashCode()

validate

public static void validate(Object object)
                     throws IllegalArgumentException
Validate that a date is a proper XML Schema date.

Throws:
IllegalArgumentException - if the value can not be validated as an date.

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.