|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ucl.xpath.types.AnyType
org.ucl.xpath.types.AnySimpleType
org.ucl.xpath.types.AnyAtomicType
org.ucl.xpath.types.CtrType
org.ucl.xpath.types.CalendarType
org.ucl.xpath.types.XSGYearMonth
A representation of the YearMonth datatype
Constructor Summary | |
XSGYearMonth()
Initialises a representation of the current year and month |
|
XSGYearMonth(java.util.Calendar cal,
boolean tz)
Initialises a representation of the supplied year and month |
Method Summary | |
java.util.Calendar |
calendar()
Retrieves the Calendar representation of the year and month stored |
ResultSequence |
constructor(ResultSequence arg)
Creates a new ResultSequence consisting of the extractable gYearMonth in the supplied ResultSequence |
boolean |
eq(AnyType arg)
Equality comparison between this and the supplied representation. |
int |
month()
Retrieves the actual month as an integer |
static XSGYearMonth |
parse_gYearMonth(java.lang.String str)
Parses a String representation of a year and month and constructs a new XSGYearMonth representation of it. |
java.lang.String |
string_type()
Retrieves the datatype's full pathname |
java.lang.String |
string_value()
Retrieves a String representation of the stored year and month |
boolean |
timezoned()
Check for whether a timezone was specified at creation |
java.lang.String |
type_name()
Retrieves the datatype's name |
int |
year()
Retrieves the actual year as an integer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSGYearMonth(java.util.Calendar cal, boolean tz)
cal
- Calendar representation of the year and month to be storedtz
- Timezone associated with this year and monthpublic XSGYearMonth()
Method Detail |
public java.lang.String type_name()
type_name
in class CtrType
public static XSGYearMonth parse_gYearMonth(java.lang.String str)
str
- The String representation of the year and month (and optional timezone)
public ResultSequence constructor(ResultSequence arg) throws DynamicError
constructor
in class CtrType
arg
- The ResultSequence from which the gYearMonth is to be extracted
DynamicError
public int year()
public int month()
public boolean timezoned()
public java.lang.String string_value()
string_value
in class AnyType
public java.lang.String string_type()
string_type
in class AnyType
public java.util.Calendar calendar()
public boolean eq(AnyType arg) throws DynamicError
eq
in interface CmpEq
arg
- The XSGYearMonth to compare with
DynamicError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |