java.io.Serializable, PullEvent, SequenceIterable, GroundedValue, Item, ValueRepresentation, ConversionResultpublic class GYearMonthValue extends GDateValue
typeLabelNO_TIMEZONEday, daysPerMonth, month, monthData, yearEMPTY_CLASS_ARRAY, INDETERMINATE_ORDERINGEMPTY_VALUE_ARRAY| Constructor | Description |
|---|---|
GYearMonthValue(int year,
byte month,
int tz) |
|
GYearMonthValue(int year,
byte month,
int tz,
AtomicType type) |
| Modifier and Type | Method | Description |
|---|---|---|
CalendarValue |
add(DurationValue duration) |
Add a duration to this date/time value
|
CalendarValue |
adjustTimezone(int tz) |
Return a new date, time, or dateTime with the same normalized value, but
in a different timezone
|
ConversionResult |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context) |
Convert to target data type
|
AtomicValue |
copyAsSubType(AtomicType typeLabel) |
Make a copy of this date, time, or dateTime value
|
BuiltInAtomicType |
getPrimitiveType() |
Determine the primitive type of the value.
|
java.lang.CharSequence |
getStringValueCS() |
Get the value of the item as a CharSequence.
|
static ConversionResult |
makeGYearMonthValue(java.lang.CharSequence value) |
asAtomic, checkPermittedContents, convert, convert, effectiveBooleanValue, getCardinality, getItemType, getLength, getTypedValue, getTypeLabel, isNaN, itemAt, iterate, process, setTypeLabel, subsequence, toStringadjustTimezone, appendTimezone, appendTimezone, getStringValue, getTimezoneInMinutes, getXPathComparable, hasTimezone, removeTimezone, setTimezoneInMinutes, subtractcompareTo, equals, getCalendar, getComparisonKey, getComponent, getDay, getMonth, getSchemaComparable, getYear, hashCode, isLeapYear, isValidDate, setLexicalValue, toDateTimeclone, finalize, getClass, notify, notifyAll, wait, wait, waitasItem, asItem, asIterator, asValue, convertToJava, fromItem, getCanonicalLexicalRepresentation, getIterator, iterate, makeQNameValue, reduce, stringToNumberpublic GYearMonthValue(int year,
byte month,
int tz)
public GYearMonthValue(int year,
byte month,
int tz,
AtomicType type)
public static ConversionResult makeGYearMonthValue(java.lang.CharSequence value)
public AtomicValue copyAsSubType(AtomicType typeLabel)
copyAsSubType in class AtomicValuetypeLabel - public BuiltInAtomicType getPrimitiveType()
getPrimitiveType in class AtomicValuepublic ConversionResult convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive in class AtomicValuerequiredType - an integer identifying the required atomic typecontext - validate - true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation
is therefore not required.
Note that a validation failure may be reported even if validation was not requested.public java.lang.CharSequence getStringValueCS()
AtomicValuegetStringValueCS in interface ItemgetStringValueCS in interface ValueRepresentationgetStringValueCS in class AtomicValueItem.getStringValue()public CalendarValue add(DurationValue duration) throws XPathException
add in class CalendarValueduration - the duration to be added (which might be negative)XPathExceptionpublic CalendarValue adjustTimezone(int tz)
adjustTimezone in class CalendarValuetz - the new timezone, in minutes