|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbox.oracle.xpath.ext.MapperExtensionFunctions
public class MapperExtensionFunctions
Contains various extension functions that can be used in conjuction with the Oracle XSLT mapper.
Method Summary | |
---|---|
static java.lang.String |
concatTextNodesXSLImpl(oracle.xml.parser.v2.XMLNodeList tree)
Concatenates the contents of all text() nodes in the given XML tree. |
static java.lang.Long |
currentDateTimeToMillisXSLImpl()
Return the current time in milliseconds. |
static java.lang.Long |
dateTimeToMillisXSLImpl(java.lang.String dateStr)
Return the provided XSD dateTime value in milliseconds. |
static java.lang.String |
digestXSLImpl(java.lang.String message,
java.lang.String algorithm,
java.lang.String output)
Perform a one-way hash on the given string and return either a hexadecimal or base64 representation of the hash. |
static java.lang.String |
getSystemPropertyXSLImpl(java.lang.String property,
java.lang.String defaultVal)
Return the named Java System Property. |
static java.lang.String |
maskXSLImpl(java.lang.String input,
java.lang.String mode,
java.lang.String maskChar,
int count)
Perform simple String masking operations. |
static java.lang.String |
millisToDateTimeXSLImpl(java.lang.Double time)
Convert the given milliseconds value into a valid XSD dateTime string. |
static java.lang.String |
parseDateTimeXSLImpl(java.lang.String dateStr,
java.lang.String format,
java.lang.String output)
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 |
Method Detail |
---|
public static java.lang.String concatTextNodesXSLImpl(oracle.xml.parser.v2.XMLNodeList tree)
tree
- XMLNodeList containing one element that represents the XML
tree.
public static java.lang.String digestXSLImpl(java.lang.String message, java.lang.String algorithm, java.lang.String output)
message
- String containing the message to perform the hash on.algorithm
- String indicating which digest algorithm to use.output
- HEX or BASE64.
public static java.lang.String maskXSLImpl(java.lang.String input, java.lang.String mode, java.lang.String maskChar, int count)
This method can perform three types of masking operations:
input
- String containing the data that must be masked.mode
- String indicating the masking mode: first, last, all.maskChar
- String containing the masking character.count
- An int indicating the character count.
public static java.lang.String getSystemPropertyXSLImpl(java.lang.String property, java.lang.String defaultVal)
property
- String containing the name of the property that must
be returned.defaultVal
- String containing a default value if the property
does not exist.
public static java.lang.Long currentDateTimeToMillisXSLImpl()
public static java.lang.Long dateTimeToMillisXSLImpl(java.lang.String dateStr)
dateStr
- Sting containing a valid XSD dateTime value.
public static java.lang.String millisToDateTimeXSLImpl(java.lang.Double time)
time
- Double value that represents a time stamp.
public static java.lang.String parseDateTimeXSLImpl(java.lang.String dateStr, java.lang.String format, java.lang.String output)
dateStr
- String containing the XSD dateTime value to parse.format
- A valid java.text.SimpleDateFormat pattern.output
- String indicating which part of the dateTime must
returned. date|time|datetime.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |