| java.lang.Object net.sf.saxon.value.Value net.sf.saxon.value.AtomicValue net.sf.saxon.value.CalendarValue net.sf.saxon.value.TimeValue
Method Summary | |
public CalendarValue | add(DurationValue duration) | public CalendarValue | adjustTimezone(int timezone) Return a new time with the same normalized value, but
in a different timezone. | public int | compareTo(Object other) Compare the value to another dateTime value
Parameters: other - The other dateTime value negative value if this one is the earler, 0 if they are chronologically equal,positive value if this one is the later. | public int | compareTo(CalendarValue other, XPathContext context) Compare the value to another dateTime value
Parameters: other - The other dateTime value negative value if this one is the earler, 0 if they are chronologically equal,positive value if this one is the later. | public AtomicValue | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context) | public Object | convertToJava(Class target, XPathContext context) | public CalendarValue | copy() | public boolean | equals(Object other) | public GregorianCalendar | getCalendar() | public AtomicValue | getComponent(int component) Get a component of the value. | public ItemType | getItemType(TypeHierarchy th) | public CharSequence | getStringValueCS() | public int | hashCode() | public SecondsDurationValue | subtract(CalendarValue other, XPathContext context) | public DateTimeValue | toDateTime() Convert to a DateTime value. |
TimeValue | TimeValue(byte hour, byte minute, byte second, int microsecond, int tz)(Code) | | |
TimeValue | public TimeValue(GregorianCalendar calendar, int tz)(Code) | | Constructor: create a time value given a Java calendar object
Parameters: calendar - holds the date and time Parameters: tz - the timezone offset in minutes, or NO_TIMEZONE indicating that there is no timezone |
adjustTimezone | public CalendarValue adjustTimezone(int timezone)(Code) | | Return a new time with the same normalized value, but
in a different timezone. This is called only for a TimeValue that has an explicit timezone
Parameters: timezone - the new timezone offset, in minutes the time in the new timezone. This will be a new TimeValue unless no changewas required to the original value |
compareTo | public int compareTo(Object other)(Code) | | Compare the value to another dateTime value
Parameters: other - The other dateTime value negative value if this one is the earler, 0 if they are chronologically equal,positive value if this one is the later. For this purpose, dateTime values with an unknowntimezone are considered to be UTC values (the Comparable interface requiresa total ordering). throws: ClassCastException - if the other value is not a DateTimeValue (the parameteris declared as Object to satisfy the Comparable interface) |
compareTo | public int compareTo(CalendarValue other, XPathContext context)(Code) | | Compare the value to another dateTime value
Parameters: other - The other dateTime value negative value if this one is the earler, 0 if they are chronologically equal,positive value if this one is the later. For this purpose, dateTime values with an unknowntimezone are considered to be UTC values (the Comparable interface requiresa total ordering). throws: ClassCastException - if the other value is not a DateTimeValue (the parameteris declared as Object to satisfy the Comparable interface) |
convertPrimitive | public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)(Code) | | Convert to target data type
Parameters: requiredType - an integer identifying the required atomic type Parameters: context - an AtomicValue, a value of the required type; or an ErrorValue |
getCalendar | public GregorianCalendar getCalendar()(Code) | | Get a Java Calendar object corresponding to this time, on a reference date
|
getComponent | public AtomicValue getComponent(int component) throws XPathException(Code) | | Get a component of the value. Returns null if the timezone component is
requested and is not present.
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the expression
Type.TIME_TYPE, Parameters: th - |
getStringValueCS | public CharSequence getStringValueCS()(Code) | | Convert to string
ISO 8601 representation, in the localized timezone(the timezone held within the value). |
hashCode | public int hashCode()(Code) | | |
toDateTime | public DateTimeValue toDateTime()(Code) | | Convert to a DateTime value. The date components represent a reference date, as defined
in the spec for comparing times.
|
Fields inherited from net.sf.saxon.value.CalendarValue | final public static int NO_TIMEZONE(Code)(Java Doc)
|
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)
|
|
|