Package org.eclipse.wst.xml.xpath2.processor.internal.types


org.eclipse.wst.xml.xpath2.processor.internal.types
Class XSGMonth



public class XSGMonth
extends org.eclipse.wst.xml.xpath2.processor.internal.types.CalendarType
A representation of the gMonth datatype

Constructor Summary

XSGMonth(java.util.Calendar cal , org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz)
XSGMonth()

Method Summary

public java.util.Calendarcalendar()
     Retrieves the Calendar representation of the month stored
public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Creates a new ResultSequence consisting of the extractable gMonth in the supplied ResultSequence
public booleaneq(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext)
     Equality comparison between this and the supplied representation. This representation must be of type XSGMonth
public java.lang.StringgetStringValue()
     Retrieves a String representation of the stored month
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
protected booleanisGDataType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType aat)
    
public intmonth()
     Retrieves the actual month as an integer
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSGMonthparse_gMonth(java.lang.String str)
     Parses a String representation of a month and constructs a new XSGMonth representation of it.
public java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public booleantimezoned()
     Check for whether a timezone was specified at creation
public java.lang.Stringtype_name()
     Retrieves the datatype's name
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDurationtz()
     Retrieves the timezone associated with the date stored

Constructor Detail

XSGMonth

public XSGMonth(java.util.Calendar cal , org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz)

Initializes a representation of the supplied month


XSGMonth

public XSGMonth()

Initialises a representation of the current month


Methods Detail

calendar

public java.util.Calendar calendar()

Retrieves the Calendar representation of the month stored

Returns

java.util.Calendar - Calendar representation of the month stored


constructor

public org.eclipse.wst.xml.xpath2.api.ResultSequence constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Creates a new ResultSequence consisting of the extractable gMonth in the supplied ResultSequence

Parameters

arg - The ResultSequence from which the gMonth is to be extracted

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New ResultSequence consisting of the supplied month

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


eq

public boolean eq(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext)

Equality comparison between this and the supplied representation. This representation must be of type XSGMonth

Parameters

arg - The XSGMonth to compare with

dynamicContext

Returns

boolean - True if the two representations are of the same month. False otherwise

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the stored month

Returns

java.lang.String - String representation of the stored month


getTypeDefinition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition


isGDataType

protected boolean isGDataType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType aat)

Parameters

aat

Returns

boolean


month

public int month()

Retrieves the actual month as an integer

Returns

int - The actual month as an integer


parse_gMonth

public org.eclipse.wst.xml.xpath2.processor.internal.types.XSGMonth parse_gMonth(java.lang.String str)

Parses a String representation of a month and constructs a new XSGMonth representation of it.

Parameters

str - The String representation of the month (and optional timezone)

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.XSGMonth - The XSGMonth representation of the supplied date


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

java.lang.String - "xs:gMonth" which is the datatype's full pathname


timezoned

public boolean timezoned()

Check for whether a timezone was specified at creation

Returns

boolean - True if a timezone was specified. False otherwise


type_name

public java.lang.String type_name()

Retrieves the datatype's name

Returns

java.lang.String - "gMonth" which is the datatype's name


tz

public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz()

Retrieves the timezone associated with the date stored

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration - the timezone associated with the date stored