toolbox.oracle.xpath.ext
Class ParseDateTimeXPathImpl
java.lang.Object
toolbox.oracle.xpath.ext.ParseDateTimeXPathImpl
- All Implemented Interfaces:
- oracle.fabric.common.xml.xpath.IXPathFunction
public class ParseDateTimeXPathImpl
- extends java.lang.Object
- implements oracle.fabric.common.xml.xpath.IXPathFunction
XPath function implementation to convert (parse) the given string into a
valid XSD dateTime string using the provided format string.
The function accepts 3 argument:
- dateStr - String containing date time value to parse.
- format - A valid java.text.SimpleDateFormat pattern.
- output - String indicating which part of the dateTime must be
returned. date|time|datetime.
Method Summary |
java.lang.Object |
call(oracle.fabric.common.xml.xpath.IXPathContext context,
java.util.List args)
Convert (parse) the given string into a
valid XSD dateTime string using the provided format string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseDateTimeXPathImpl
public ParseDateTimeXPathImpl()
- Default constructor.
call
public java.lang.Object call(oracle.fabric.common.xml.xpath.IXPathContext context,
java.util.List args)
throws oracle.fabric.common.xml.xpath.XPathFunctionException
- Convert (parse) the given string into a
valid XSD dateTime string using the provided format string.
- Specified by:
call
in interface oracle.fabric.common.xml.xpath.IXPathFunction
- Parameters:
context
- The context at the point in the expression when
the function is called.args
- The list of arguments.
- Returns:
- Object containing the concatenated string.
- Throws:
oracle.fabric.common.xml.xpath.XPathFunctionException