Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class GYearMonth

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

public class GYearMonth
extends Validator

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

Constructor Detail

GYearMonth

public GYearMonth(String value)
           throws IllegalArgumentException
Construct an gYearMonth with the specified value.

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

getValue

public String getValue()
Get the value of this gYearMonth.

Returns:
the value of the gYearMonth

getYear

public int getYear()
Get the year of this gYearMonth.

Returns:
the year of the gYearMonth

getMonth

public int getMonth()
Get the Month of this gYearMonth.

Returns:
the month of the gYearMonth

setValue

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

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

setValue

public void setValue(String value)
              throws IllegalArgumentException
Set the value of this gYearMonth.

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

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 gYearMonth is a proper XML Schema gYearMonth.

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

Novell exteNd Web Services SDK API

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