Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class GYear

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

public class GYear
extends Validator

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

Constructor Detail

GYear

public GYear(String value)
      throws IllegalArgumentException
Construct an gYear with the specified value.

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

getValue

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

Returns:
the value of the gYear

getYear

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

Returns:
the year of the gYear

setValue

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

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

setValue

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

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

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

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

Novell exteNd Web Services SDK API

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