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


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



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

Constructor Summary

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

Method Summary

public java.util.Calendarcalendar()
     Retrieves the Calendar representation of the month and day 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 gMonthDay in the supplied ResultSequence
public intday()
     Retrieves the actual day as an integer
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 XSGMonthDay
public java.lang.StringgetStringValue()
     Retrieves a String representation of the stored month and day
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.XSGMonthDayparse_gMonthDay(java.lang.String str)
     Parses a String representation of a month and day and constructs a new XSGMonthDay 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

XSGMonthDay

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

Initialises a representation of the supplied month and day


XSGMonthDay

public XSGMonthDay()

Initialises a representation of the current month and day


Methods Detail

calendar

public java.util.Calendar calendar()

Retrieves the Calendar representation of the month and day stored

Returns

java.util.Calendar - Calendar representation of the month and day 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 gMonthDay in the supplied ResultSequence

Parameters

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

Returns

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

Throws:

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


day

public int day()

Retrieves the actual day as an integer

Returns

int - The actual day as an integer


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 XSGMonthDay

Parameters

arg - The XSGMonthDay to compare with

dynamicContext

Returns

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

Throws:

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


getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the stored month and day

Returns

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


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_gMonthDay

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

Parses a String representation of a month and day and constructs a new XSGMonthDay representation of it.

Parameters

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

Returns

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


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

java.lang.String - "xs:gMonthDay" 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 - "gMonthDay" 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