net.sf.saxon.value

Class GMonthValue

public class GMonthValue extends DateValue

Implementation of the xs:gMonth data type
Constructor Summary
GMonthValue()
GMonthValue(CharSequence value)
protected GMonthValue(byte month, int tz)
Method Summary
AtomicValueconvertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type
CalendarValuecopy()
Make a copy of this date, time, or dateTime value
ItemTypegetItemType(TypeHierarchy th)
Determine the data type of the expression
CharSequencegetStringValueCS()

Constructor Detail

GMonthValue

public GMonthValue()

GMonthValue

public GMonthValue(CharSequence value)

GMonthValue

protected GMonthValue(byte month, int tz)

Method Detail

convertPrimitive

public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type

Parameters: requiredType an integer identifying the required atomic type context

Returns: an AtomicValue, a value of the required type; or an ErrorValue

copy

public CalendarValue copy()
Make a copy of this date, time, or dateTime value

getItemType

public ItemType getItemType(TypeHierarchy th)
Determine the data type of the expression

Parameters: th

Returns: Type.G_MONTH_TYPE,

getStringValueCS

public CharSequence getStringValueCS()