Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class XSGYearMonth extends org.eclipse.wst.xml.xpath2.processor.internal.types.CalendarTypeA representation of the YearMonth datatype
Constructor Summary |
XSGYearMonth(java.util.Calendar cal
,
org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz) |
XSGYearMonth() |
Method Summary | |
public java.util.Calendar | calendar() Retrieves the Calendar representation of the year and month stored |
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 gYearMonth in the supplied ResultSequence |
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 XSGYearMonth |
public java.lang.String | getStringValue() Retrieves a String representation of the stored year and month |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getTypeDefinition() |
protected boolean | isGDataType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType aat) |
public int | month() Retrieves the actual month as an integer |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSGYearMonth | parse_gYearMonth(java.lang.String str) Parses a String representation of a year and month and constructs a new XSGYearMonth representation of it. |
public java.lang.String | string_type() Retrieves the datatype's full pathname |
public boolean | timezoned() Check for whether a timezone was specified at creation |
public java.lang.String | type_name() Retrieves the datatype's name |
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration | tz() Retrieves the timezone associated with the date stored |
public int | year() Retrieves the actual year as an integer |
Constructor Detail |
public XSGYearMonth(java.util.Calendar cal
,
org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz)
Initialises a representation of the supplied year and month
public XSGYearMonth()
Initialises a representation of the current year and month
Methods Detail |
public java.util.Calendar calendar()
Retrieves the Calendar representation of the year and month stored
java.util.Calendar
- Calendar representation of the year and month stored
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 gYearMonth in the supplied ResultSequence
arg
- The ResultSequence from which the gYearMonth is to be extracted
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New ResultSequence consisting of the supplied year and month
org.eclipse.wst.xml.xpath2.processor.DynamicError
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 XSGYearMonth
arg
- The XSGYearMonth to compare with
dynamicContext
boolean
- True if the two representations are of the same year and month. False otherwise
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String getStringValue()
Retrieves a String representation of the stored year and month
java.lang.String
- String representation of the stored year and month
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition
protected boolean isGDataType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType aat)
aat
boolean
public int month()
Retrieves the actual month as an integer
int
- The actual month as an integer
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSGYearMonth parse_gYearMonth(java.lang.String str)
Parses a String representation of a year and month and constructs a new XSGYearMonth representation of it.
str
- The String representation of the year and month (and optional timezone)
org.eclipse.wst.xml.xpath2.processor.internal.types.XSGYearMonth
- The XSGYearMonth representation of the supplied date
public java.lang.String string_type()
Retrieves the datatype's full pathname
java.lang.String
- "xs:gYearMonth" which is the datatype's full pathname
public boolean timezoned()
Check for whether a timezone was specified at creation
boolean
- True if a timezone was specified. False otherwise
public java.lang.String type_name()
Retrieves the datatype's name
java.lang.String
- "gYearMonth" which is the datatype's name
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz()
Retrieves the timezone associated with the date stored
org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration
- the timezone associated with the date stored
public int year()
Retrieves the actual year as an integer
int
- The actual year as an integer