net.sf.saxon.value
Class GMonthDayValue
- ConversionResult, GroundedValue, Item, PullEvent, Serializable, SequenceIterable, Serializable, ValueRepresentation
public class GMonthDayValue
Implementation of the xs:gYear 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 |
GMonthDayValue
public GMonthDayValue(byte month,
byte day,
int tz)
GMonthDayValue
public GMonthDayValue(byte month,
byte day,
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
makeGMonthDayValue
public static ConversionResult makeGMonthDayValue(CharSequence value)