# com.bea.xml
XmlGYear Interface

public interface XmlGYear
extends `XmlAnySimpleType`

Corresponds to the XML Schema xs:gYear type. A gYear specifies a Gregorian year (AD).

Convertible to `Calendar```, `GDate```, or an int.

Related Topics

``XmlCalendar``
``GDate``

All Superinterfaces
  `XmlAnySimpleType`, `XmlObject`, `XmlTokenSource`

## Nested Class Summary

`public static final class` | `XmlGYear.Factory` A class with methods for creating instances of `XmlGYear```.

Nested classes from interface com.bea.xml`.`XmlAnySimpleType``
``XmlAnySimpleType.Factory``

Nested classes from interface com.bea.xml`.`XmlObject``
``XmlObject.Factory``

## Field Summary

`public static final `SchemaType`` | `type` The constant `SchemaType``` object representing this schema type.

Fields from interface com.bea.xml`.`XmlAnySimpleType``
``type``

Fields from interface com.bea.xml`.`XmlObject``
``EQUAL`, `GREATER_THAN`, `LESS_THAN`, `NOT_EQUAL`, `type``

## Method Summary

`public `Calendar`` | `calendarValue`() Returns this value as a `Calendar```
`public `GDate`` | `gDateValue`() Returns this value as a `GDate```
`public `Calendar`` | `getCalendarValue`() Returns this value as a `Calendar```
`public `GDate`` | `getGDateValue`() Returns this value as a `GDate```
`public int` | `getIntValue`() Returns this value as an int from 1-31
`public int` | `intValue`() Returns this value as an int from 1-31
`public void` | `set`(`Calendar` c) Sets this value as a `Calendar```
`public void` | `set`(`GDateSpecification` gd) Sets this value as a `GDateSpecification```
`public void` | `set`(int v) Sets this value as an int from 1-31
`public void` | `setCalendarValue`(`Calendar` c) Sets this value as a `Calendar```
`public void` | `setGDateValue`(`GDate` gd) Sets this value as a `GDateSpecification```
`public void` | `setIntValue`(int v) Sets this value as an int from 1-31

Methods from interface `com.bea.xml.`XmlAnySimpleType``
``getStringValue`, `set`, `setStringValue`, `stringValue``

Methods from interface `com.bea.xml.`XmlObject``
``changeType`, `compareTo`, `compareValue`, `copy`, `execQuery`, `execQuery`, `isImmutable`, `isNil`, `schemaType`, `selectPath`, `selectPath`, `set`, `setNil`, `toString`, `validate`, `validate`, `valueEquals`, `valueHashCode``

Methods from interface `com.bea.xml.`XmlTokenSource``
``documentProperties`, `monitor`, `newCursor`, `newDomNode`, `newDomNode`, `newInputStream`, `newInputStream`, `newReader`, `newReader`, `newXMLInputStream`, `newXMLInputStream`, `save`, `save`, `save`, `save`, `save`, `save`, `save`, `save`, `xmlText`, `xmlText``

## Field Detail

### type

    public static final SchemaType type

  The constant `SchemaType``` object representing this schema type.

## Method Detail

### calendarValue() Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.getCalendarValue()```

    public Calendar calendarValue()

Returns this value as a `Calendar```

### gDateValue() Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.getGDateValue()```

    public GDate gDateValue()

Returns this value as a `GDate```

### getCalendarValue() Method

    public Calendar getCalendarValue()

Returns this value as a `Calendar```

### getGDateValue() Method

    public GDate getGDateValue()

Returns this value as a `GDate```

### getIntValue() Method

    public int getIntValue()

Returns this value as an int from 1-31

### intValue() Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.getIntValue()```

    public int intValue()

Returns this value as an int from 1-31

### set(Calendar) Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.setCalendarValue(java.util.Calendar)```

    public void set(Calendar c)

Sets this value as a `Calendar```

### set(GDateSpecification) Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.setGDateValue(com.bea.xml.GDate)```

    public void set(GDateSpecification gd)

Sets this value as a `GDateSpecification```

### set(int) Method

DEPRECATED replaced with `com.bea.xml.XmlGYear.setIntValue(int)```

    public void set(int v)

Sets this value as an int from 1-31

### setCalendarValue(Calendar) Method

    public void setCalendarValue(Calendar c)

Sets this value as a `Calendar```

### setGDateValue(GDate) Method

    public void setGDateValue(GDate gd)

Sets this value as a `GDateSpecification```

### setIntValue(int) Method

    public void setIntValue(int v)

Sets this value as an int from 1-31