Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class Time

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

public class Time
extends Validator

A wrapper class that contains a time. 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
Time(Date value)
          Construct a time with the specified value.
Time(String value)
          Construct a time with the specified value.
 
Method Summary
 boolean equals(Object other)
           
 Date getValue()
          Get the value of this time.
 int hashCode()
           
 void setValue(Date value)
          Set the value of this time.
 String toString()
          Return string form of object
static void validate(Object object)
          Validate that a time is a proper XML Schema time.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time(String value)
     throws IllegalArgumentException
Construct a time with the specified value.

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

Time

public Time(Date value)
Construct a time with the specified value.

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

getValue

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

Returns:
the value of the time

setValue

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

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

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()
Return string form of object

Returns:
the value of the string

validate

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

Throws:
IllegalArgumentException - if the value can not be validated as a time.

Novell exteNd Web Services SDK API

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