Class GMonthDayValue
java.lang.Object
net.sf.saxon.value.Value
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.CalendarValue
net.sf.saxon.value.DateValue
net.sf.saxon.value.GMonthDayValue
- All Implemented Interfaces:
Serializable, Comparable, Expression, Item, ValueRepresentation
-
Field Summary
Fields inherited from class CalendarValue
NO_TIMEZONEFields inherited from class Value
EMPTY_CLASS_ARRAYFields inherited from interface Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODFields inherited from interface ValueRepresentation
EMPTY_VALUE_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionGMonthDayValue(byte month, byte day, int tz) GMonthDayValue(CharSequence value) -
Method Summary
Modifier and TypeMethodDescriptionconvertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context) Convert to target data typecopy()Make a copy of this date, time, or dateTime valueDetermine the data type of the expressionConvert to stringMethods inherited from class DateValue
add, adjustTimezone, compareTo, compareTo, convertToJava, dateFromJulianDayNumber, equals, getCalendar, getComparisonKey, getComponent, getDay, getDayOfWeek, getDayWithinYear, getJulianDayNumber, getMonth, getWeekNumber, getWeekNumberWithinMonth, getYear, hashCode, isLeapYear, isValidDate, main, setLexicalValue, subtract, toDateTime, tomorrow, yesterdayMethods inherited from class CalendarValue
appendString, appendTimezone, appendTimezone, appendTwoDigits, getStringValue, getTimezoneInMinutes, hasTimezone, removeTimezone, setTimezoneInMinutesMethods inherited from class AtomicValue
checkPermittedContents, convert, convert, display, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getImplementationMethod, getLength, getPrimitiveValue, getTypedValue, hasBuiltInType, iterate, process, toStringMethods inherited from class Value
asItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheck
-
Constructor Details
-
GMonthDayValue
public GMonthDayValue() -
GMonthDayValue
- Throws:
XPathException
-
GMonthDayValue
public GMonthDayValue(byte month, byte day, int tz)
-
-
Method Details
-
getItemType
Determine the data type of the expression- Specified by:
getItemTypein interfaceExpression- Overrides:
getItemTypein classDateValue- Parameters:
th-- Returns:
- Type.G_MONTH_DAY_TYPE,
-
copy
Make a copy of this date, time, or dateTime value -
convertPrimitive
public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context) Convert to target data type- Overrides:
convertPrimitivein classDateValue- Parameters:
requiredType- an integer identifying the required atomic typevalidate- 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.context-- Returns:
- an AtomicValue, a value of the required type; or an ErrorValue
-
getStringValueCS
Description copied from class:DateValueConvert to string- Specified by:
getStringValueCSin interfaceItem- Specified by:
getStringValueCSin interfaceValueRepresentation- Overrides:
getStringValueCSin classDateValue- Returns:
- ISO 8601 representation.
- See Also:
-