net.sf.saxon.value
Class GYearMonthValue
- ConversionResult, GroundedValue, Item, PullEvent, Serializable, SequenceIterable, Serializable, ValueRepresentation
public class GYearMonthValue
Implementation of the xs:gYearMonth data type
compareTo , convertToJava , equals , getCalendar , getComparisonKey , getDay , getMonth , getSchemaComparable , getYear , hashCode , isLeapYear , isValidDate , setLexicalValue , toDateTime |
add , adjustTimezone , adjustTimezone , appendTimezone , appendTimezone , compareTo , getCalendar , getComparisonKey , getStringValue , getTimezoneInMinutes , getXPathComparable , hasTimezone , removeTimezone , setTimezoneInMinutes , subtract , toDateTime |
asAtomic , checkPermittedContents , convert , convert , convertPrimitive , copyAsSubType , effectiveBooleanValue , equals , getCardinality , getComponent , getItemType , getLength , getPrimitiveType , getSchemaComparable , getStringValue , getStringValueCS , getTypeLabel , getTypedValue , getXPathComparable , isNaN , itemAt , iterate , process , setTypeLabel , subsequence , toString |
asItem , asItem , asIterator , asValue , checkPermittedContents , convertJavaObjectToXPath , convertToJava , convertToJava , effectiveBooleanValue , equals , fromItem , getCanonicalLexicalRepresentation , getCardinality , getItemType , getIterator , getLength , getSchemaComparable , getStringValue , getStringValueCS , itemAt , iterate , iterate , makeQNameValue , process , reduce , stringToNumber , toString |
GYearMonthValue
public GYearMonthValue(int year,
byte month,
int tz)
GYearMonthValue
public GYearMonthValue(int year,
byte month,
int tz,
AtomicType type)
add
public CalendarValue add(DurationValue duration)
throws XPathException
Add a duration to this date/time value
- add in interface CalendarValue
duration
- the duration to be added (which might be negative)
- a new date/time value representing the result of adding the duration. The original
object is not modified.
adjustTimezone
public CalendarValue adjustTimezone(int tz)
Return a new date, time, or dateTime with the same normalized value, but
in a different timezone
- adjustTimezone in interface CalendarValue
tz
- the new timezone, in minutes
- the date/time in the new timezone
getPrimitiveType
public BuiltInAtomicType getPrimitiveType()
Determine the primitive type of the value. This delivers the same answer as
getItemType().getPrimitiveItemType(). The primitive types are
the 19 primitive types of XML Schema, plus xs:integer, xs:dayTimeDuration and xs:yearMonthDuration,
and xs:untypedAtomic. For external objects, the result is AnyAtomicType.
- getPrimitiveType in interface AtomicValue
makeGYearMonthValue
public static ConversionResult makeGYearMonthValue(CharSequence value)