Package net.sf.saxon.value
Class GMonthDayValue
java.lang.Object
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.CalendarValue
net.sf.saxon.value.GDateValue
net.sf.saxon.value.GMonthDayValue
- All Implemented Interfaces:
- Iterable<AtomicValue>,- AtomicMatchKey,- AtomicSequence,- GroundedValue,- IdentityComparable,- Item,- Sequence,- ConversionResult
Implementation of the xs:gYear data type
- 
Nested Class SummaryNested classes/interfaces inherited from class net.sf.saxon.value.GDateValueGDateValue.GDateComparable, GDateValue.MutableGDateValue
- 
Field SummaryFields inherited from class net.sf.saxon.value.GDateValueday, daysPerMonth, hasNoYearZero, month, monthData, yearFields inherited from class net.sf.saxon.value.CalendarValueMISSING_TIMEZONE, NO_TIMEZONEFields inherited from class net.sf.saxon.value.AtomicValuetypeLabel
- 
Constructor SummaryConstructorsConstructorDescriptionGMonthDayValue(byte month, byte day, int tz) GMonthDayValue(byte month, byte day, int tz, AtomicType type) 
- 
Method SummaryModifier and TypeMethodDescriptionadd(DurationValue duration) Add a duration to this date/time valueadjustTimezone(int tz) Return a new date, time, or dateTime with the same normalized value, but in a different timezonecopyAsSubType(AtomicType typeLabel) Make a copy of this date, time, or dateTime valueConvert the value to a string, using the serialization rules for the primitive type.Determine the primitive type of the value.static ConversionResultmakeGMonthDayValue(UnicodeString value) Methods inherited from class net.sf.saxon.value.GDateValuecheckValidInJavascript, compareTo, equals, getCalendar, getComponent, getDay, getMonth, getSchemaComparable, getXPathComparable, getYear, hashCode, isLeapYear, isValidDate, makeMutableCopy, setLexicalValue, toDateTimeMethods inherited from class net.sf.saxon.value.CalendarValueadjustTimezone, appendString, appendTimezone, appendTimezone, appendTwoDigits, asMapKey, getTimezoneInMinutes, getXMLGregorianCalendar, getXPathMatchKey, hasTimezone, identityHashCode, isIdentical, makeCalendarValue, removeTimezone, subtractMethods inherited from class net.sf.saxon.value.AtomicValueasAtomic, atomize, checkPermittedContents, effectiveBooleanValue, getCanonicalLexicalRepresentation, getCardinality, getGenre, getItemType, getLength, getUnicodeStringValue, getUType, head, isIdentical, isNaN, isUntypedAtomic, itemAt, iterate, iterator, show, toShortString, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.expr.sort.AtomicMatchKeyasAtomicMethods inherited from interface net.sf.saxon.om.GroundedValueasIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.ItemgetStringValue, isStreamed, reduce, subsequenceMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface net.sf.saxon.om.SequencemakeRepeatable
- 
Constructor Details- 
GMonthDayValuepublic GMonthDayValue(byte month, byte day, int tz) 
- 
GMonthDayValue
 
- 
- 
Method Details- 
makeGMonthDayValue
- 
copyAsSubTypeMake a copy of this date, time, or dateTime value- Specified by:
- copyAsSubTypein class- AtomicValue
- Parameters:
- typeLabel- the type label of the new copy. The caller is responsible for checking that the value actually conforms to this type.
- Returns:
- the copied value
 
- 
getPrimitiveTypeDetermine 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.- Specified by:
- getPrimitiveTypein class- AtomicValue
- Returns:
- the primitive type
 
- 
getPrimitiveStringValueDescription copied from class:AtomicValueConvert the value to a string, using the serialization rules for the primitive type. This is the result of conversion to a string except that postprocessing defined by the saxon:preprocess facet is not (yet) applied.- Specified by:
- getPrimitiveStringValuein class- AtomicValue
- Returns:
- the value converted to a string according to the rules for the primitive type
 
- 
addAdd a duration to this date/time value- Specified by:
- addin class- CalendarValue
- Parameters:
- duration- the duration to be added (which might be negative)
- Returns:
- a new date/time value representing the result of adding the duration. The original object is not modified.
- Throws:
- XPathException- if an error is detected
 
- 
adjustTimezoneReturn a new date, time, or dateTime with the same normalized value, but in a different timezone- Specified by:
- adjustTimezonein class- CalendarValue
- Parameters:
- tz- the new timezone, in minutes
- Returns:
- the date/time in the new timezone
 
 
-