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


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



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

Constructor Summary

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

Method Summary

public java.util.Calendarcalendar()
     Retrieves the Calendar representation of the 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 gDay 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 XSGDay
public java.lang.StringgetStringValue()
     Retrieves a String representation of the stored day
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
protected booleanisGDataType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType aat)
    
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSGDayparse_gDay(java.lang.String str)
     Parses a String representation of a day and constructs a new XSGDay 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

XSGDay

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

Initializes a representation of the supplied day


XSGDay

public XSGDay()

Initialises a representation of the current day


Methods Detail

calendar

public java.util.Calendar calendar()

Retrieves the Calendar representation of the day stored

Returns

java.util.Calendar - Calendar representation of the 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 gDay in the supplied ResultSequence

Parameters

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

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New ResultSequence consisting of the supplied 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 XSGDay

Parameters

arg - The XSGDay to compare with

dynamicContext

Returns

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

Throws:

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


getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the stored day

Returns

java.lang.String - String representation of the stored 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


parse_gDay

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

Parses a String representation of a day and constructs a new XSGDay representation of it.

Parameters

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

Returns

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


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

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