Package net.sf.saxon.value
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:
java.io.Serializable
,java.lang.Comparable
,Expression
,Item
,ValueRepresentation
public class GMonthDayValue extends DateValue
Implementation of the xs:gYear data type- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.value.CalendarValue
NO_TIMEZONE
-
Fields inherited from class net.sf.saxon.value.Value
EMPTY_CLASS_ARRAY
-
Fields inherited from interface net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
-
Fields inherited from interface net.sf.saxon.om.ValueRepresentation
EMPTY_VALUE_ARRAY
-
-
Constructor Summary
Constructors Constructor Description GMonthDayValue()
GMonthDayValue(byte month, byte day, int tz)
GMonthDayValue(java.lang.CharSequence value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicValue
convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data typeCalendarValue
copy()
Make a copy of this date, time, or dateTime valueItemType
getItemType(TypeHierarchy th)
Determine the data type of the expressionjava.lang.CharSequence
getStringValueCS()
Convert to string-
Methods inherited from class net.sf.saxon.value.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, yesterday
-
Methods inherited from class net.sf.saxon.value.CalendarValue
appendString, appendTimezone, appendTimezone, appendTwoDigits, getStringValue, getTimezoneInMinutes, hasTimezone, removeTimezone, setTimezoneInMinutes
-
Methods inherited from class net.sf.saxon.value.AtomicValue
checkPermittedContents, convert, convert, display, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getImplementationMethod, getLength, getPrimitiveValue, getTypedValue, hasBuiltInType, iterate, process, toString
-
Methods inherited from class net.sf.saxon.value.Value
asItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheck
-
-
-
-
Constructor Detail
-
GMonthDayValue
public GMonthDayValue()
-
GMonthDayValue
public GMonthDayValue(java.lang.CharSequence value) throws XPathException
- Throws:
XPathException
-
GMonthDayValue
public GMonthDayValue(byte month, byte day, int tz)
-
-
Method Detail
-
getItemType
public ItemType getItemType(TypeHierarchy th)
Determine the data type of the expression- Specified by:
getItemType
in interfaceExpression
- Overrides:
getItemType
in classDateValue
- Parameters:
th
-- Returns:
- Type.G_MONTH_DAY_TYPE,
-
copy
public CalendarValue 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:
convertPrimitive
in classDateValue
- Parameters:
requiredType
- 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.- Returns:
- an AtomicValue, a value of the required type; or an ErrorValue
-
getStringValueCS
public java.lang.CharSequence getStringValueCS()
Description copied from class:DateValue
Convert to string- Specified by:
getStringValueCS
in interfaceItem
- Specified by:
getStringValueCS
in interfaceValueRepresentation
- Overrides:
getStringValueCS
in classDateValue
- Returns:
- ISO 8601 representation.
- See Also:
Item.getStringValue()
-
-