| java.lang.Object net.sf.saxon.value.Value net.sf.saxon.value.AtomicValue net.sf.saxon.value.CalendarValue
All known Subclasses: net.sf.saxon.value.DateTimeValue, net.sf.saxon.value.DateValue, net.sf.saxon.value.TimeValue,
CalendarValue | abstract public class CalendarValue extends AtomicValue implements Comparable(Code) | | Abstract superclass for Date, Time, and DateTime.
|
NO_TIMEZONE | final public static int NO_TIMEZONE(Code) | | |
add | abstract public CalendarValue add(DurationValue duration) throws XPathException(Code) | | Add a duration to this date/time value
Parameters: duration - the duration to be added (which might be negative) a new date/time value representing the result of adding the duration. The originalobject is not modified. throws: XPathException - |
adjustTimezone | abstract public CalendarValue adjustTimezone(int tz)(Code) | | Return a new date, time, or dateTime with the same normalized value, but
in a different timezone
Parameters: tz - the new timezone, in minutes the date/time in the new timezone |
appendString | static void appendString(FastStringBuffer sb, int value, int size)(Code) | | Append an integer, formatted with leading zeros to a fixed size, to a string buffer
Parameters: sb - the string buffer Parameters: value - the integer to be formatted Parameters: size - the number of digits required (max 9) |
appendTimezone | final public void appendTimezone(FastStringBuffer sb)(Code) | | Add a string representation of the timezone, typically
formatted as "Z" or "+03:00" or "-10:00", to a supplied
string buffer
Parameters: sb - The StringBuffer that will be updated with the resulting stringrepresentation |
appendTwoDigits | static void appendTwoDigits(FastStringBuffer sb, int value)(Code) | | Append an integer, formatted as two digits, to a string buffer
Parameters: sb - the string buffer Parameters: value - the integer to be formatted (must be in the range 0..99 |
compareTo | abstract public int compareTo(CalendarValue other, XPathContext context)(Code) | | Compare this value to another value of the same type, using the supplied ConversionContext
to get the implicit timezone if required.
|
copy | abstract public CalendarValue copy()(Code) | | Make a copy of this date, time, or dateTime value
|
getCalendar | abstract public GregorianCalendar getCalendar()(Code) | | Get a Java Calendar object that represents this date/time value. The Calendar
object will be newly created for the purpose
A Calendar object representing the date and time. Note that Java can onlyrepresent the time to millisecond precision, and that it does not support the fullrange of timezones required by XPath (-14:00 to +14:00) |
getStringValue | final public String getStringValue()(Code) | | Convert the value to a string
|
getTimezoneInMinutes | final public int getTimezoneInMinutes()(Code) | | Get the timezone value held in this object.
The timezone offset from GMT in minutes, positive or negative; or the specialvalue NO_TIMEZONE indicating that the value is not in a timezone |
hasTimezone | final public boolean hasTimezone()(Code) | | Determine whether this value includes a timezone
true if there is a timezone in the value, false if not |
removeTimezone | final public CalendarValue removeTimezone()(Code) | | Return a date, time, or dateTime with the same localized value, but
without the timezone component
the result of removing the timezone |
setTimezoneInMinutes | final public void setTimezoneInMinutes(int minutes)(Code) | | Modify the timezone value held in this object. This must be done only while the value is being
constructed.
Parameters: minutes - The timezone offset from GMT in minutes, positive or negative; or the specialvalue NO_TIMEZONE indicating that the value is not in a timezone (this is the default) |
subtract | public SecondsDurationValue subtract(CalendarValue other, XPathContext context) throws XPathException(Code) | | Determine the difference between two points in time, as a duration
Parameters: other - the other point in time Parameters: context - the dynamic context, used to obtain timezone information. May be set to nullonly if both values contain an explicit timezone, or if neither does so. the duration as an xdt:dayTimeDuration throws: net.sf.saxon.trans.XPathException - for example if one value is a date and the other is a time |
toDateTime | abstract public DateTimeValue toDateTime()(Code) | | Convert the value to a DateTime, retaining all the components that are actually present, and
substituting conventional values for components that are missing
|
Fields inherited from net.sf.saxon.value.Value | final public static Class[] EMPTY_CLASS_ARRAY(Code)(Java Doc)
|
Methods inherited from net.sf.saxon.value.Value | public static Item asItem(ValueRepresentation value, XPathContext context) throws XPathException(Code)(Java Doc) public static SequenceIterator asIterator(ValueRepresentation val, XPathContext context) throws XPathException(Code)(Java Doc) public static Value asValue(ValueRepresentation val)(Code)(Java Doc) public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code)(Java Doc) public static CharSequence collapseWhitespace(CharSequence in)(Code)(Java Doc) public static Object convert(Item item) throws XPathException(Code)(Java Doc) public static Value convertJavaObjectToXPath(Object object, SequenceType requiredType, Configuration config) throws XPathException(Code)(Java Doc) public Object convertToJava(Class target, XPathContext context) throws XPathException(Code)(Java Doc) public void display(int level, NamePool pool, PrintStream out)(Code)(Java Doc) public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String evaluateAsString(XPathContext context) throws XPathException(Code)(Java Doc) public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc) public int getCardinality()(Code)(Java Doc) final public int getDependencies()(Code)(Java Doc) public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc) public static SequenceIterator getIterator(ValueRepresentation val) throws XPathException(Code)(Java Doc) public int getLength() throws XPathException(Code)(Java Doc) final public Container getParentExpression()(Code)(Java Doc) public int getSpecialProperties()(Code)(Java Doc) public String getStringValue() throws XPathException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public Item itemAt(int n) throws XPathException(Code)(Java Doc) final public Iterator iterateSubExpressions()(Code)(Java Doc) public static QNameValue makeQNameValue(Object object, Configuration config)(Code)(Java Doc) public static CharSequence normalizeWhitespace(CharSequence in)(Code)(Java Doc) final public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)(Code)(Java Doc) public void process(XPathContext context) throws XPathException(Code)(Java Doc) final public Expression promote(PromotionOffer offer)(Code)(Java Doc) public Value reduce() throws XPathException(Code)(Java Doc) public boolean schemaEquals(Value obj)(Code)(Java Doc) final public Expression simplify(StaticContext env)(Code)(Java Doc) public static double stringToNumber(CharSequence s) throws NumberFormatException(Code)(Java Doc) public String toString()(Code)(Java Doc) public static CharSequence trimWhitespace(CharSequence in)(Code)(Java Doc) final public Expression typeCheck(StaticContext env, ItemType contextItemType)(Code)(Java Doc)
|
|
|