|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.apps.xdo.template.rtf.XSLTFunctions
public class XSLTFunctions
Nested Class Summary | |
---|---|
static class |
XSLTFunctions.MySequenceNumber
my implmentation of sequence number |
Field Summary | |
---|---|
static java.util.Hashtable |
DATE_FORMAT_MAP_PLSQL
|
static int |
DATE_FORMAT_TYPE_JAVA
|
static int |
DATE_FORMAT_TYPE_MS
|
static int |
DATE_FORMAT_TYPE_PLSQL
|
static int |
DATE_FORMAT_TYPE_XSL
|
static java.lang.String |
DEFAULT_DATE_FORMAT
|
static java.lang.String |
GROUPING_ROOT_KEY
|
static java.lang.String |
RCS_ID
|
static boolean |
RCS_ID_RECORDED
|
static java.lang.String |
TRANS_TEMP_NAME
|
static char[] |
TRANS_TOKEN_END
|
static char[] |
TRANS_TOKEN_START
|
static java.lang.String |
TRANS_TPL_PREFIX
|
Constructor Summary | |
---|---|
XSLTFunctions()
|
Method Summary | |
---|---|
static double |
abs(double num)
Method to get the absolute value of a number. |
static java.lang.String |
add_group_array(org.w3c.dom.NodeList nl,
java.lang.String variableName,
org.w3c.dom.NodeList currentGroup)
|
static java.lang.String |
add_intersect_nodelists_array(org.w3c.dom.NodeList nl,
java.lang.String name,
org.w3c.dom.NodeList nl1,
org.w3c.dom.NodeList nl2)
combine intersect and store together |
static java.lang.String |
append_to(java.lang.String ctxs,
java.lang.String name,
java.lang.String value)
This class append a string to a existing variable string in the context |
static java.lang.Object |
attach_glyphs(java.lang.String ctx,
java.lang.Object node,
java.lang.String todo)
wrap glyph along with the svg output |
static java.lang.String |
bcd_to_ascii(java.lang.String value,
int length,
int charCodeLength,
int padding,
java.lang.String paddingChar)
Convert BCD to Ascii function |
static java.lang.String |
bidi(java.lang.String str)
# kgao bugfix 5937887 convert bidi string to its correct order ... |
static int |
block_counter(java.lang.String ctx,
java.lang.String name)
generate a block counter |
static java.lang.Object |
call_extension(java.lang.String ctx,
java.lang.String classKey,
java.lang.Object params)
calling an external system and pass property for external string handling the callee should implement oracle.apps.xdo.common.xml.XSLTExtHandler interface |
static java.lang.String |
chart_svg(java.lang.String ctx,
org.w3c.dom.Element node,
int width,
int height,
int inshape,
java.lang.String contentType,
java.lang.String outputFormat)
create a base64 encoded png chart based on given xml node |
static java.lang.String |
chart(org.w3c.dom.Element node,
int width,
int height)
create a base64 encoded png chart based on given xml node |
static java.lang.String |
chr(java.lang.String chrcode)
Return the character for the given code in UTF-8 |
static java.lang.String |
chr(java.lang.String chrcode,
java.lang.String encodingScheme)
Return the character for the given code in the given encoding, which must be one of Java's encoding. |
static java.lang.String |
clean_cache(org.w3c.dom.NodeList nl)
Call this method if you used sequence_number or set/get_variable in this transformation this method clean up all the static cache of these variables |
static java.lang.String |
clear_group_array(org.w3c.dom.NodeList nl,
java.lang.String variableName)
|
static boolean |
contains_node(org.w3c.dom.NodeList nl1,
org.w3c.dom.NodeList nl2)
|
protected static org.w3c.dom.NodeList |
convert_base_nl(org.w3c.dom.NodeList nl,
java.lang.String base,
java.lang.String inBase)
|
static java.lang.String |
convert_base_s(java.lang.String value,
java.lang.String base)
Convert Number from one Base type to another function |
static java.lang.String |
convert_base_s(java.lang.String value,
java.lang.String base,
java.lang.String inBase)
Convert Number from one Base type to another function |
static java.lang.Object |
convert_base(java.lang.Object obj,
java.lang.String base,
java.lang.String inBase)
|
static java.lang.String |
convert_case(java.lang.String source,
java.lang.String aCase)
Convert Case for converting case of strings |
static java.lang.String |
count(java.lang.Object nlo,
boolean isPositive)
return a sum of a nodelist |
static java.lang.String |
create_block_counter(java.lang.String ctxs,
java.lang.String name,
int start,
int current,
int increment)
create a new block counter |
static org.w3c.dom.NodeList |
create_groups(java.lang.String ctxs,
org.w3c.dom.NodeList nl,
java.lang.String sequence,
java.lang.String prefix)
|
static java.lang.String |
create_sequence_number(java.lang.String ctxs,
java.lang.String name,
int start,
int max,
int current,
int increment)
create a new sequence number |
static java.lang.String |
current_date(java.lang.String locStr,
java.lang.String tzID)
Returns the current date in "yyyy-MM-dd" format in the given locale and timezone. |
static java.lang.String |
current_time(java.lang.String locStr,
java.lang.String tzID)
Returns the current time in the given locale and timezone. |
static long |
date_diff(java.lang.String format,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String locStr,
java.lang.String tzID)
Method to get the difference between two dates in the given locale. |
static java.lang.String |
date_to_millis(java.lang.String date)
|
static org.w3c.dom.NodeList |
decimal_part_nl(org.w3c.dom.NodeList nl)
return the decimal of the text |
static java.lang.String |
decimal_part_s(java.lang.String s)
|
static java.lang.Object |
decimal_part(java.lang.Object o)
|
static org.w3c.dom.NodeList |
distinct_values(org.w3c.dom.NodeList nl)
|
static java.lang.String |
div(java.lang.String dividend,
java.lang.String divisor)
|
protected static java.lang.String |
evaluateGroupValue(org.w3c.dom.Element e,
java.lang.String[] groupKeys)
validate element's group value based on given array of child elements |
static java.lang.String |
fill_block(java.lang.String source,
java.lang.String fillChar,
int recordLength)
Fill block with on record of filler characters |
static org.w3c.dom.NodeList |
foreach_number(java.lang.String key,
java.lang.String start,
java.lang.String end,
java.lang.String interval)
This function create a nodelist of series of counting numbers |
static java.lang.String |
format_barcode(java.lang.String key,
java.lang.String orig,
java.lang.String barcode,
java.lang.String vendor)
|
static java.lang.String |
format_date(java.lang.String d,
java.lang.String locStr,
java.lang.String tzID)
Method to convert date to string in Java's native format. |
static java.lang.String |
format_date(java.lang.String d,
java.lang.String f,
java.lang.String locStr,
java.lang.String tzID)
Method to convert date to string in given format. |
static java.lang.String |
format_date(java.lang.String d,
java.lang.String f,
java.lang.String e,
java.lang.String locStr,
java.lang.String tzID)
Method to convert date in given format to string in given format. |
static java.lang.String |
format_number(double d,
int len,
java.lang.String locStr)
Convert a number to string with Java's default symbols. |
static java.lang.String |
format_number(double d,
int len,
java.lang.String s1,
java.lang.String s2,
java.lang.String locStr)
Convert a number to string with the specified separators. |
static java.lang.String |
formatCurrency(float number,
java.lang.String locale)
convert a number into currency |
protected static java.lang.String |
formatDate(int num)
return a well-formated string by given a date value, e.g. |
static java.lang.String |
gauge_svg(java.lang.String ctx,
org.w3c.dom.Element node,
int width,
int height,
int inshape,
java.lang.String contentType,
java.lang.String outputFormat)
create a base64 encoded png chart based on given xml node |
static java.lang.String |
german_eft_string(java.lang.String orig)
German EFT charset |
static java.lang.String |
get_array(java.lang.String ctxs,
java.lang.String varName,
int index)
Set a value in an hash table. |
static int |
get_day(java.lang.String date,
java.lang.String locStr)
Method to get the day part of a date in "yyyy-MM-dd" in the given locale. |
static org.w3c.dom.NodeList |
get_dummy_document()
return a duumy xml document |
static int |
get_group_array_size(org.w3c.dom.NodeList nl,
java.lang.String variableName)
|
static org.w3c.dom.NodeList |
get_group_array(org.w3c.dom.NodeList nl,
java.lang.String variableName,
int index)
|
static org.w3c.dom.NodeList |
get_groups(java.lang.String ctxs,
java.lang.String prefix,
java.lang.String level,
java.lang.String value)
|
static int |
get_month(java.lang.String date,
java.lang.String locStr)
Method to get the month part of a date in "yyyy-MM-dd" in the given locale. |
static java.lang.Object |
get_variable(java.lang.String ctxs,
java.lang.String name)
an implementation of getting variable in XSLT, suggest not to use this feature except for EFT template's needs |
static int |
get_year(java.lang.String date,
java.lang.String locStr)
Method to get the year part of a date in "yyyy-MM-dd" in the given locale. |
static java.lang.String |
getHourRange(java.lang.String sDate,
java.lang.String tzID)
Returns the current hour to next hour range only for US. |
protected static java.lang.String |
getNodeText(org.w3c.dom.Node n)
|
protected static java.lang.String |
getValidNumber(java.lang.String param)
return a valid number by given string The method remove any formatting symbols, such as space |
static java.lang.String |
getWeekRange(java.lang.String sDate,
java.lang.String tzID)
Returns the week range in which the given date falls, only for US. |
static java.lang.String |
greeting(java.lang.String name)
Testing function |
static org.w3c.dom.NodeList |
group(java.lang.Object nl,
java.lang.String groupKey)
|
static java.lang.String |
ifelse(boolean cond,
java.lang.String pt,
java.lang.String pf)
return the second parameter if the first parameter is true or return 3rd parameter |
static java.lang.String |
image_extension(java.lang.String ctx,
org.w3c.dom.Element node,
java.lang.String clazz,
int width,
int height)
create a base64 encoded png or other encoded images by an extension |
static java.lang.String |
increment_block_counter(java.lang.String ctx,
java.lang.String name)
increase a block counter |
static int |
index_of(java.lang.Object nl1,
org.w3c.dom.NodeList nl2)
check the index of a node inside a node list |
static java.lang.String |
init_cap(java.lang.String s)
init cap |
static int |
instr(java.lang.String str,
java.lang.String ptn,
int st,
int idx)
instr, implements the pl/sql instr |
static org.w3c.dom.NodeList |
integer_part_nl(org.w3c.dom.NodeList nl)
return the integer of the text |
static java.lang.String |
integer_part_s(java.lang.String s)
|
static java.lang.Object |
integer_part(java.lang.Object o)
|
static org.w3c.dom.NodeList |
intersect_nodelists(org.w3c.dom.NodeList nl1,
org.w3c.dom.NodeList nl2)
eeeh, this is a dumb implementation of find the same set of nodes in two different NodeList by comparing each one of one NodeLine to every one in another NodeList. |
static boolean |
is_bidi_locale(java.lang.String locale)
check if a locale is bidi locale or not |
static boolean |
is_numeric(java.lang.String s)
check if a string is a numeric value |
static java.lang.String |
left(java.lang.String text,
int numChars)
Method to get a left substring of a text. |
static java.lang.String |
log(java.lang.String log)
log a string |
static java.lang.String |
lognode(org.w3c.dom.NodeList nl)
|
static java.lang.String |
lpad_fix(java.lang.String src,
int len,
java.lang.String pad)
mimic PL/SQL LPAD function |
static java.lang.String |
lpad(java.lang.String src,
int len,
java.lang.String pad)
mimic PL/SQL LPAD function |
static java.lang.String |
lpadext(java.lang.String src,
int len,
java.lang.String pad)
|
static java.lang.String |
ltrim(java.lang.String text)
Method to remove the leading white spaces in a string |
protected static java.lang.Object |
makeKey(org.w3c.dom.NodeList nl)
|
protected static java.lang.Object |
makeKey(java.lang.String ctx)
|
static int |
max_group_array_size(org.w3c.dom.NodeList nl,
java.lang.String variableName)
|
static float |
max(float v1,
float v2)
calculate the maximum value of the input values |
static java.lang.String |
maximum_date(java.lang.Object o)
cauclate the maximum value of the input node list |
static java.lang.String |
maximum(java.lang.Object o)
calculate the maximum value of the input node list |
static java.lang.String |
millis_to_date(java.lang.String millis)
|
static float |
min(float v1,
float v2)
calculate the minimum value of the input values |
static java.lang.String |
minimum_date(java.lang.Object o)
cauclate the maximum value of the input node list |
static java.lang.String |
minimum(java.lang.Object o)
cauclate the maximum value of the input node list |
static java.lang.String |
month_name(int month,
boolean abbreviate,
java.lang.String locStr)
Method to get the name of the month in the given locale. |
static java.lang.String |
ms_format_date_tz(java.lang.String key,
java.lang.String ds,
java.lang.String fmt,
java.lang.String tz)
return a Microsoft date string based on the given xml schema dateTime string and the format string and the timezone |
static java.lang.String |
ms_format_date(java.lang.String key,
java.lang.String ds,
java.lang.String fmt)
return a Microsoft date string based on the given xml schema dataTime string and the format string |
static java.lang.String |
ms_format_number(java.lang.String ns,
java.lang.String fmt)
return a Microsoft number string based on the number and the format string |
static java.lang.String |
ms_format_number(java.lang.String key,
java.lang.String ns,
java.lang.String fmt)
return a Microsoft number string based on the number and the format string |
static java.lang.String |
ms_format_string(java.lang.String key,
java.lang.String s,
java.lang.String fmt)
return a Microsoft string based on the given string and the format string |
static java.lang.String |
ms_sysdate(java.lang.String key,
java.lang.String format)
get a sysdate as string by given ms format |
static java.lang.String |
mtranslate(java.lang.String s,
java.lang.String locale)
translate a string based on memory by given original string and locale |
static java.lang.String |
next_element(org.w3c.dom.NodeList currentGrouping,
org.w3c.dom.NodeList currentGroup,
java.lang.String name)
Method to get the next element value in the current group. |
static java.lang.String |
next_sequence_number(java.lang.String ctx,
java.lang.String name)
increase a sequence number |
static java.lang.String |
normalize_string(java.lang.String ctx,
java.lang.String orig)
normalize the string based on registered replacement string in the context |
protected static org.w3c.dom.NodeList |
number_part(org.w3c.dom.NodeList nl,
boolean ip)
return a new node set with either int or decimal part of the text |
static java.lang.Object |
offset_variable(java.lang.String ctxs,
java.lang.String name,
java.lang.String value)
offset a variable in XSLT, suggest not to use this feature except for special cases |
static java.lang.String |
ora_format_date_offset(java.lang.String gs,
int offset,
java.lang.String operator)
|
static java.lang.String |
ora_format_date_tz(java.lang.String gs,
java.lang.String fmt,
java.lang.String tzstring)
return an oracle date string based on the given xml schema datTime string, format string and the tz |
static java.lang.String |
ora_format_date(java.lang.String gs,
java.lang.String fmt)
return an oracle date string based on the given xml schema dateTime string and the format string |
static java.lang.String |
ora_format_date(java.lang.String gs,
java.lang.String fmt,
java.lang.String baseType)
|
static java.lang.String |
ora_translate(java.lang.String source,
java.lang.String search,
java.lang.String replacement)
Create xsl node containing call for xdoxslt:ora_translate function |
protected static java.lang.String |
parsePLSQLDateFormat(java.lang.String format)
evaluate an xpath's value on current nodeList |
static java.lang.String |
pat_format_number(double d,
java.lang.String pat,
java.lang.String locStr)
Method to format a number with a pattern. |
static float |
pow(float n1,
float n2)
mimic PL/SQL ** calcuation |
static java.lang.String |
prev_element(org.w3c.dom.NodeList currentGrouping,
org.w3c.dom.NodeList currentGroup,
java.lang.String name)
Method to get the previous element value in the current group. |
static java.lang.String |
questionMark(int len)
Output ? characters |
static java.lang.String |
register_barcode_vendor(java.lang.String key,
java.lang.String className,
java.lang.String id)
|
static java.lang.String |
register_replace_string(java.lang.String ctx,
java.lang.String orig,
java.lang.String dest)
register a new replacable character for this context |
static org.w3c.dom.NodeList |
regroup(org.w3c.dom.NodeList nl,
java.lang.String groupKey,
boolean clone)
generate a group nodelist |
static java.lang.String |
remove_group_array(org.w3c.dom.NodeList nl,
java.lang.String variableName)
|
static java.lang.String |
removeAll(java.lang.String stringList,
java.lang.String message)
return a string after removing all strings in the stringList from the message |
static java.lang.String |
replace(java.lang.String src,
java.lang.String pat,
java.lang.String to)
replace all same patterns in a string with another pattern |
static java.lang.String |
replicate(java.lang.String text,
int times)
Method to replicate a string n times. |
static java.lang.String |
reset_sequence_number(java.lang.String ctx,
java.lang.String name)
reset a sequence number |
static java.lang.String |
right(java.lang.String text,
int numChars)
Method to get a right substring of a text. |
static double |
round(double value)
Rounds a value with 0 precision |
static double |
round(double value,
int precision)
Round a value with the given precision |
static java.lang.String |
rpad_fix(java.lang.String src,
int len,
java.lang.String pad)
mimic PL/SQL RPAD function |
static java.lang.String |
rpad(java.lang.String src,
int len,
java.lang.String pad)
mimic PL/SQL RPAD function |
static java.lang.String |
rpadext(java.lang.String src,
int len,
java.lang.String pad)
|
static java.lang.String |
rtrim(java.lang.String text)
Method to remove the trailing white spaces in a string |
static long |
sec_diff(java.lang.String dateA,
java.lang.String dateB,
java.lang.String locStr,
java.lang.String tzID)
Method to get the difference between two dates in seconds in the given locale. |
protected static void |
selectNodes(oracle.apps.xdo.template.rtf.XSLTFunctions.MyNodeList nl,
org.w3c.dom.Node n,
java.lang.String path)
select nodes from a Node based on given pseudo-xpath |
static int |
sequence_number(java.lang.String ctx,
java.lang.String name)
generate a sequence number |
static void |
set_array(java.lang.String ctxs,
java.lang.String varName,
int index,
java.lang.String value)
Set a value in an hash table. |
static java.lang.String |
set_variable(java.lang.String ctxs,
java.lang.String name,
java.lang.Object o)
an implementation of setting variable in XSLT, suggest not to use this feature except for EFT template's needs |
static java.lang.String |
set_xslt_locale(java.lang.String ctx,
java.lang.String locale,
java.lang.String tz,
java.lang.String calendar,
java.lang.String additionalInfo)
Set xslt locale information for data/number/currency formatting support by using apps i18n library |
static java.lang.String |
space(int i)
Mimic PL/SQL space() function |
static java.lang.String |
specialProcess(java.lang.String src)
this function is to convert all the \n or \r character to \r\n this is to make line terminatior visible in window notepad |
static java.lang.String |
stopwatch_start(java.lang.String ks,
java.lang.String name)
|
static java.lang.String |
stopwatch_stop(java.lang.String ks,
java.lang.String name)
|
static org.w3c.dom.NodeList |
string_to_nodelist(java.lang.Object nl,
java.lang.String trans)
|
static java.lang.String |
sum(org.w3c.dom.NodeList nl)
return a sum of a nodelist |
static java.lang.String |
sysdate_as_xsdformat()
|
static java.lang.String |
sysdate()
get a sysdate as string |
static java.lang.String |
sysdate(java.lang.String format)
get a sysdate as string |
static java.lang.String |
sysdate(java.lang.String format,
int type)
get a sysdate as string by given format |
static long |
time_in_millis(java.lang.String date)
|
static java.lang.String |
to_char(java.lang.String date,
java.lang.String mask)
Convert a date string in a format date string using the mask as the mask string |
static java.lang.String |
to_number(java.lang.String s)
|
static java.lang.String |
toWordsAmt(double amount)
Returns the string which is the corrosponding amount in words in indian currency system. |
static java.lang.String |
trim(java.lang.String text)
Remove spaces in a string. |
static double |
truncate(double value)
Method to truncate a value |
static double |
truncate(double value,
int precision)
Method to truncate a value |
static org.w3c.dom.NodeList |
wrap_node(org.w3c.dom.NodeList nl)
wrap current nodelist into a single node and return the nodelist which contains the node |
static java.lang.String |
xdo_format_currency(java.lang.String key,
java.lang.String param,
java.lang.String mask,
java.lang.String symbolFlag)
|
static java.lang.String |
xdo_format_date_c_tz(java.lang.String key,
java.lang.String date,
java.lang.String mask,
java.lang.String calendar,
java.lang.String tz)
XDO Date format routine |
static java.lang.String |
xdo_format_date_c(java.lang.String key,
java.lang.String date,
java.lang.String mask,
java.lang.String calendar)
XDO Date format routine |
static java.lang.String |
xdo_format_date_l(java.lang.String key,
java.lang.String date,
java.lang.String mask,
java.lang.String locale,
java.lang.String tz)
format a sysdate with locale and timezone |
static java.lang.String |
xdo_format_date_tz(java.lang.String key,
java.lang.String date,
java.lang.String mask,
java.lang.String tz)
XDO Date format routine |
static java.lang.String |
xdo_format_date(java.lang.String key,
java.lang.String date,
java.lang.String mask)
XDO Date format routine |
static java.lang.String |
xdo_format_number_l(java.lang.String param,
java.lang.String mask,
java.lang.String locale)
|
static java.lang.String |
xdo_format_number_lc(java.lang.String param,
java.lang.String mask,
java.lang.String locale,
java.lang.String nfcs)
|
static java.lang.String |
xdo_format_number(java.lang.String key,
java.lang.String param,
java.lang.String mask)
|
static java.lang.String |
xdo_format_sysdate(java.lang.String key,
java.lang.String mask)
Format a sysdate |
static java.lang.Object |
xl(java.lang.String ks,
java.lang.String biff,
java.lang.Object params)
Excel-alike formula's runtime calculation support |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
public static final boolean RCS_ID_RECORDED
public static final java.util.Hashtable DATE_FORMAT_MAP_PLSQL
public static final java.lang.String GROUPING_ROOT_KEY
public static final java.lang.String DEFAULT_DATE_FORMAT
public static final int DATE_FORMAT_TYPE_PLSQL
public static final int DATE_FORMAT_TYPE_MS
public static final int DATE_FORMAT_TYPE_JAVA
public static final int DATE_FORMAT_TYPE_XSL
public static final char[] TRANS_TOKEN_START
public static final char[] TRANS_TOKEN_END
public static final java.lang.String TRANS_TEMP_NAME
public static final java.lang.String TRANS_TPL_PREFIX
Constructor Detail |
---|
public XSLTFunctions()
Method Detail |
---|
public static final java.lang.String greeting(java.lang.String name)
name
- string of name
public static final java.lang.String log(java.lang.String log)
public static final java.lang.String lognode(org.w3c.dom.NodeList nl)
public static final java.lang.String stopwatch_start(java.lang.String ks, java.lang.String name)
public static final java.lang.String stopwatch_stop(java.lang.String ks, java.lang.String name)
public static final java.lang.Object xl(java.lang.String ks, java.lang.String biff, java.lang.Object params)
public static final java.lang.String chart_svg(java.lang.String ctx, org.w3c.dom.Element node, int width, int height, int inshape, java.lang.String contentType, java.lang.String outputFormat)
node
- the xml element node
public static final java.lang.String gauge_svg(java.lang.String ctx, org.w3c.dom.Element node, int width, int height, int inshape, java.lang.String contentType, java.lang.String outputFormat)
node
- the xml element node
public static final java.lang.Object attach_glyphs(java.lang.String ctx, java.lang.Object node, java.lang.String todo)
node
- the xml element node
public static final java.lang.String image_extension(java.lang.String ctx, org.w3c.dom.Element node, java.lang.String clazz, int width, int height)
node
- the xml element node
public static final java.lang.Object call_extension(java.lang.String ctx, java.lang.String classKey, java.lang.Object params)
oracle.apps.xdo.common.xml.XSLTExtHandler
interface
public static final java.lang.String chart(org.w3c.dom.Element node, int width, int height)
node
- the xml element node
public static final java.lang.String formatCurrency(float number, java.lang.String locale)
number
- as currencylocale
- the locale of the currencyprotected static java.lang.String formatDate(int num)
num
- the date value
public static final java.lang.String ora_format_date_offset(java.lang.String gs, int offset, java.lang.String operator)
public static final java.lang.String ora_format_date(java.lang.String gs, java.lang.String fmt)
ds
- the xml schema dateTime stringfmt
- the format stringpublic static final java.lang.String ora_format_date(java.lang.String gs, java.lang.String fmt, java.lang.String baseType)
public static final java.lang.String ora_format_date_tz(java.lang.String gs, java.lang.String fmt, java.lang.String tzstring)
ds
- the xml schema dateTime stringfmt
- the format stringtz
- the time zone stringpublic static final java.lang.String ms_format_string(java.lang.String key, java.lang.String s, java.lang.String fmt)
key
- context keys
- the stringfmt
- to formatpublic static final java.lang.String set_xslt_locale(java.lang.String ctx, java.lang.String locale, java.lang.String tz, java.lang.String calendar, java.lang.String additionalInfo)
ctx
- the ctx keylocale
- the locale informationtz
- the timezone informationcalendar
- the calendar to be usedadditionalInfo
- includes date format overridings and currency masks
public static final java.lang.String xdo_format_sysdate(java.lang.String key, java.lang.String mask)
key
- the context keymask
- the formatting mask to be used for the sysdate
public static final java.lang.String xdo_format_date_l(java.lang.String key, java.lang.String date, java.lang.String mask, java.lang.String locale, java.lang.String tz)
key
- the context keymask
- the formatting mask to be used for the sysdatelocale
- the locale informationtz
- the time zone information
public static final java.lang.String xdo_format_date(java.lang.String key, java.lang.String date, java.lang.String mask)
key
- the context keydate
- the date string in xsd:dateTime formatmask
- the formatting mask
public static final java.lang.String xdo_format_date_tz(java.lang.String key, java.lang.String date, java.lang.String mask, java.lang.String tz)
key
- the context keydate
- date string in xsd:dateTime formatmask
- the formatting masktz
- the timezone string
public static final java.lang.String xdo_format_date_c(java.lang.String key, java.lang.String date, java.lang.String mask, java.lang.String calendar)
key
- the context keydate
- date string in xsd:dateTime formatmask
- the formatting maskcalendar
- the name of the calendar to be used
public static final java.lang.String xdo_format_date_c_tz(java.lang.String key, java.lang.String date, java.lang.String mask, java.lang.String calendar, java.lang.String tz)
key
- the context keydate
- date string in xsd:dateTime formatmask
- the formatting maskcalendar
- the name of the calendar to be usedtz
- the timezone strign
public static final java.lang.String xdo_format_number(java.lang.String key, java.lang.String param, java.lang.String mask)
public static final java.lang.String xdo_format_currency(java.lang.String key, java.lang.String param, java.lang.String mask, java.lang.String symbolFlag)
public static final java.lang.String xdo_format_number_l(java.lang.String param, java.lang.String mask, java.lang.String locale)
public static final java.lang.String xdo_format_number_lc(java.lang.String param, java.lang.String mask, java.lang.String locale, java.lang.String nfcs)
protected static final java.lang.String getValidNumber(java.lang.String param)
param
- the number as a string
public static final java.lang.String ifelse(boolean cond, java.lang.String pt, java.lang.String pf)
cond
- conditionpt
- true's valuepf
- false's valuepublic static final java.lang.String init_cap(java.lang.String s)
s
- init cap the s
public static final java.lang.Object integer_part(java.lang.Object o)
public static final java.lang.Object decimal_part(java.lang.Object o)
public static final org.w3c.dom.NodeList integer_part_nl(org.w3c.dom.NodeList nl)
nl
- the node set
public static final org.w3c.dom.NodeList decimal_part_nl(org.w3c.dom.NodeList nl)
nl
- the node set
protected static final org.w3c.dom.NodeList number_part(org.w3c.dom.NodeList nl, boolean ip)
nl
- the node settrue
- if integer part, false if decimal part
public static final java.lang.String integer_part_s(java.lang.String s)
public static final java.lang.String decimal_part_s(java.lang.String s)
public static final java.lang.String sum(org.w3c.dom.NodeList nl)
nl
- the node settrue
- if integer part, false if decimal part
public static final java.lang.String ms_sysdate(java.lang.String key, java.lang.String format)
key
- the keyformat
- the date maskpublic static final java.lang.String ms_format_date(java.lang.String key, java.lang.String ds, java.lang.String fmt)
ds
- the xml schema dateTime stringfmt
- the format stringpublic static final java.lang.String ms_format_date_tz(java.lang.String key, java.lang.String ds, java.lang.String fmt, java.lang.String tz)
ds
- the xml schema dateTime stringfmt
- the format stringtz
- the timezonepublic static final java.lang.String ms_format_number(java.lang.String ns, java.lang.String fmt)
ns
- the numberfmt
- the format stringpublic static final java.lang.String ms_format_number(java.lang.String key, java.lang.String ns, java.lang.String fmt)
ns
- the numberfmt
- the format stringpublic static final org.w3c.dom.NodeList get_dummy_document()
public static final java.lang.String mtranslate(java.lang.String s, java.lang.String locale)
s
- the original stringlocale
- the locale of translated textpublic static final java.lang.String sysdate()
public static final java.lang.String sysdate_as_xsdformat()
public static final java.lang.String sysdate(java.lang.String format)
public static final java.lang.String sysdate(java.lang.String format, int type)
format
- the date format in pl/sql format
public static final long time_in_millis(java.lang.String date)
public static final java.lang.String date_to_millis(java.lang.String date)
public static final java.lang.String millis_to_date(java.lang.String millis)
protected static final java.lang.String parsePLSQLDateFormat(java.lang.String format)
nl
- the node listxpath
- the xpath
public static final boolean is_bidi_locale(java.lang.String locale)
locale
- the locale as a string
public static final java.lang.String replace(java.lang.String src, java.lang.String pat, java.lang.String to)
src
- source stringpat
- pattern stringto
- new pattern string
public static final int instr(java.lang.String str, java.lang.String ptn, int st, int idx)
str,
- the oringal stringptn,
- the patternst,
- the start pointidx,
- the number of occurencepublic static final java.lang.String lpad_fix(java.lang.String src, int len, java.lang.String pad)
src
- the source stringlen
- length of the dest stringpad
- the padding stringpublic static final java.lang.String lpad(java.lang.String src, int len, java.lang.String pad)
src
- the source stringlen
- length of the dest stringpad
- the padding stringpublic static final java.lang.String rpadext(java.lang.String src, int len, java.lang.String pad)
public static final java.lang.String lpadext(java.lang.String src, int len, java.lang.String pad)
public static final java.lang.String rpad_fix(java.lang.String src, int len, java.lang.String pad)
src
- the source stringlen
- length of the dest stringpad
- the padding stringpublic static final java.lang.String rpad(java.lang.String src, int len, java.lang.String pad)
src
- the source stringlen
- length of the dest stringpad
- the padding stringpublic static java.lang.String specialProcess(java.lang.String src)
src
-
public static final float max(float v1, float v2)
v1
- the first valuev2
- the second value
public static final float min(float v1, float v2)
v1
- the first valuev2
- the seocnd value
public static final java.lang.String maximum_date(java.lang.Object o)
v1
- the node list
public static final java.lang.String maximum(java.lang.Object o)
v1
- the node list
public static final java.lang.String questionMark(int len)
len
- number of ? characters to output
public static final java.lang.String minimum_date(java.lang.Object o)
v1
- the node list
public static final java.lang.String minimum(java.lang.Object o)
v1
- the node list
public static final java.lang.String space(int i)
i
- the number of spacespublic static final float pow(float n1, float n2)
n1
- the base numbern2
- the power numberpublic static final java.lang.String german_eft_string(java.lang.String orig)
orig
- the original string
public static final java.lang.String register_replace_string(java.lang.String ctx, java.lang.String orig, java.lang.String dest)
nl
- the context node listorig
- the original stringdest
- the new String
public static final java.lang.String normalize_string(java.lang.String ctx, java.lang.String orig)
nl
- the contet node listorig
- the orignal string
public static final boolean is_numeric(java.lang.String s)
s
- the string
protected static final java.lang.Object makeKey(org.w3c.dom.NodeList nl)
protected static final java.lang.Object makeKey(java.lang.String ctx)
public static final java.lang.String create_sequence_number(java.lang.String ctxs, java.lang.String name, int start, int max, int current, int increment)
root
- the root element of stylesheet, use as the key of the cache (use '/node()', to get the element)name
- the sequence number generator's nameint
- the start numbermax
- the maximam number of the generator, will wrap if reachs thispublic static final int sequence_number(java.lang.String ctx, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()', to get the element)name
- the sequence number generator's name
public static final java.lang.String next_sequence_number(java.lang.String ctx, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()'), to get the element)name
- the sequence number generator's name
public static final java.lang.String create_block_counter(java.lang.String ctxs, java.lang.String name, int start, int current, int increment)
root
- the root element of stylesheet, use as the key of the cache (use '/node()', to get the element)name
- the block counter's nameint
- the start numberpublic static final int block_counter(java.lang.String ctx, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()', to get the element)name
- the block counter's name
public static final java.lang.String increment_block_counter(java.lang.String ctx, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()'), to get the element)name
- the block counter name
public static final org.w3c.dom.NodeList wrap_node(org.w3c.dom.NodeList nl)
nl
- the original nodelist
public static final java.lang.String reset_sequence_number(java.lang.String ctx, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()'), to get the element)name
- the sequence number generator's name
public static final java.lang.String set_variable(java.lang.String ctxs, java.lang.String name, java.lang.Object o)
root
- the root element of stylesheet, use as the key of the cache (use '/node()' to get the element)name
- the name of the variablevalue
- the new value of the variablereturn
- the orignal value of the variablepublic static final java.lang.Object get_variable(java.lang.String ctxs, java.lang.String name)
root
- the root element of stylesheet, use as the key of the cache (use '/node()' to get the element)name
- the name of the variable
public static final java.lang.Object offset_variable(java.lang.String ctxs, java.lang.String name, java.lang.String value)
root
- the root element of stylesheet, use as the key of the cache(use '/nose()' to get to element)name
- the name of the variablevalue
- the new value of the variablereturn
- the updated value of the variablepublic static final java.lang.String append_to(java.lang.String ctxs, java.lang.String name, java.lang.String value)
root
- the root element of stylesheet, use as the key of the cache(use '/nose()' to get to element)name
- the name of the variablevalue
- the appended string of the variablepublic static final java.lang.String clean_cache(org.w3c.dom.NodeList nl)
root
- the root element of stylesheet, use as the key of the cache (use '/node()' to get the elemen)return
- an empty stringpublic static final int index_of(java.lang.Object nl1, org.w3c.dom.NodeList nl2)
nl1
- the node list that contains the node to be checked, if it's a list, pick the very first onenl2
- the node list that contains a list of node
public static final org.w3c.dom.NodeList foreach_number(java.lang.String key, java.lang.String start, java.lang.String end, java.lang.String interval)
key
- the key object to help us find the xmldocstart
- the start numberend
- the end number that the nodelist will not reach, i.e. i=start; iinterval
- the interval
public static final org.w3c.dom.NodeList regroup(org.w3c.dom.NodeList nl, java.lang.String groupKey, boolean clone)
nl
- grouping node listgroupKey
- the key to use to group the elementspublic static final org.w3c.dom.NodeList group(java.lang.Object nl, java.lang.String groupKey)
protected static final java.lang.String getNodeText(org.w3c.dom.Node n)
public static final org.w3c.dom.NodeList distinct_values(org.w3c.dom.NodeList nl)
public static final org.w3c.dom.NodeList get_groups(java.lang.String ctxs, java.lang.String prefix, java.lang.String level, java.lang.String value)
public static final org.w3c.dom.NodeList create_groups(java.lang.String ctxs, org.w3c.dom.NodeList nl, java.lang.String sequence, java.lang.String prefix)
protected static final java.lang.String evaluateGroupValue(org.w3c.dom.Element e, java.lang.String[] groupKeys)
element
- the elementgroupKeys
- the keyspublic static final java.lang.String to_number(java.lang.String s)
public static final org.w3c.dom.NodeList string_to_nodelist(java.lang.Object nl, java.lang.String trans)
protected static final void selectNodes(oracle.apps.xdo.template.rtf.XSLTFunctions.MyNodeList nl, org.w3c.dom.Node n, java.lang.String path)
nl
- the node list we add ton
- the nodepath
- the pseodo-xpath, i.e. only node/node/... supportedpublic static final java.lang.String add_group_array(org.w3c.dom.NodeList nl, java.lang.String variableName, org.w3c.dom.NodeList currentGroup)
public static final org.w3c.dom.NodeList get_group_array(org.w3c.dom.NodeList nl, java.lang.String variableName, int index)
public static final int get_group_array_size(org.w3c.dom.NodeList nl, java.lang.String variableName)
public static final java.lang.String clear_group_array(org.w3c.dom.NodeList nl, java.lang.String variableName)
public static final java.lang.String remove_group_array(org.w3c.dom.NodeList nl, java.lang.String variableName)
public static final int max_group_array_size(org.w3c.dom.NodeList nl, java.lang.String variableName)
public static final boolean contains_node(org.w3c.dom.NodeList nl1, org.w3c.dom.NodeList nl2)
public static final org.w3c.dom.NodeList intersect_nodelists(org.w3c.dom.NodeList nl1, org.w3c.dom.NodeList nl2)
nl1
- the first nodelistnl2
- the second nodelist
public static final java.lang.String add_intersect_nodelists_array(org.w3c.dom.NodeList nl, java.lang.String name, org.w3c.dom.NodeList nl1, org.w3c.dom.NodeList nl2)
public static final java.lang.String ora_translate(java.lang.String source, java.lang.String search, java.lang.String replacement)
source
- the source stringsearch
- the search stringreplacement
- the replacement stringpublic static final java.lang.String register_barcode_vendor(java.lang.String key, java.lang.String className, java.lang.String id)
public static final java.lang.String format_barcode(java.lang.String key, java.lang.String orig, java.lang.String barcode, java.lang.String vendor)
public static final java.lang.Object convert_base(java.lang.Object obj, java.lang.String base, java.lang.String inBase)
protected static final org.w3c.dom.NodeList convert_base_nl(org.w3c.dom.NodeList nl, java.lang.String base, java.lang.String inBase)
public static java.lang.String convert_base_s(java.lang.String value, java.lang.String base, java.lang.String inBase)
source
- the source stringbase
- base of the output valuebase
- base of the input valuepublic static java.lang.String convert_base_s(java.lang.String value, java.lang.String base)
source
- the source stringbase
- base of the output valuepublic static java.lang.String bcd_to_ascii(java.lang.String value, int length, int charCodeLength, int padding, java.lang.String paddingChar)
source
- the source stringlength
- of the output valueAscii
- code byte lengthpublic static java.lang.String fill_block(java.lang.String source, java.lang.String fillChar, int recordLength)
source
- the source stringfillChar
- filler characterrecordLength
- size of the recordpublic static final java.lang.String count(java.lang.Object nlo, boolean isPositive)
nl
- the node settrue
- if integer part, false if decimal part
public static java.lang.String removeAll(java.lang.String stringList, java.lang.String message)
stringList
- comma delimited list of strings to be replacedmessage
- string from which to remove the strings in the string list
public static java.lang.String convert_case(java.lang.String source, java.lang.String aCase)
source
- the source stringaCase
- case of the reulting stringpublic static java.lang.String to_char(java.lang.String date, java.lang.String mask)
date
- the date as an stringmask
- the formatting mask
public static java.lang.String chr(java.lang.String chrcode)
chrcode
- character code string
public static java.lang.String chr(java.lang.String chrcode, java.lang.String encodingScheme)
chrcode
- character code stringencodingScheme
- one of the character encodings available in Java
public static java.lang.String div(java.lang.String dividend, java.lang.String divisor)
public static java.lang.String current_date(java.lang.String locStr, java.lang.String tzID)
locStr
- string representing a localetzID
- timezone ID
public static java.lang.String current_time(java.lang.String locStr, java.lang.String tzID)
locStr
- string representing a localetzID
- timezone ID
public static java.lang.String trim(java.lang.String text)
text
- the text to be trimmed
public static java.lang.String ltrim(java.lang.String text)
text
- the text to be trimmed
public static java.lang.String rtrim(java.lang.String text)
text
- the text to be trimmed
public static double abs(double num)
num
- the number for which the absolute value is required.
public static java.lang.String left(java.lang.String text, int numChars)
text
- the input textnumChars
- the number of characters in the left substring.
public static java.lang.String right(java.lang.String text, int numChars)
text
- the input textnumChars
- the number of characters in the right substring.
public static double round(double value)
value
- the value to be rounded
public static double round(double value, int precision)
value
- the value to be roundedprecision
- the rounding precision
public static double truncate(double value)
value
- the value to be truncated.
public static double truncate(double value, int precision)
value
- the value to be truncated.precision
- the precision of truncation.
public static java.lang.String replicate(java.lang.String text, int times)
text
- the text to be replicatedtimes
- the number of times the string needs to be replicated.
public static long date_diff(java.lang.String format, java.lang.String fromDate, java.lang.String toDate, java.lang.String locStr, java.lang.String tzID)
format
- the format to which the difference is required; allowed
formats are y (for Year), m(for month), w(for week), d(for day),
h(for hour), mi(for minute), s(for seconds) and ms(for
milliseconds)fromDate
- the first datetoDate
- the second datelocStr
- locale stringtzID
- timezone ID
public static long sec_diff(java.lang.String dateA, java.lang.String dateB, java.lang.String locStr, java.lang.String tzID)
dateA
- the first datedateB
- the second datelocStr
- locale stringtzID
- timezone ID
public static int get_day(java.lang.String date, java.lang.String locStr)
date
- the input date stringlocStr
- locale string
public static int get_month(java.lang.String date, java.lang.String locStr)
date
- the input date stringlocStr
- locale string
public static int get_year(java.lang.String date, java.lang.String locStr)
date
- the input date stringlocStr
- locale string
public static java.lang.String month_name(int month, boolean abbreviate, java.lang.String locStr)
month
- the input monthabbreviate
- whether to abbreviate the month namelocStr
- locale string
public static java.lang.String next_element(org.w3c.dom.NodeList currentGrouping, org.w3c.dom.NodeList currentGroup, java.lang.String name)
currentGrouping
- the current grouping nodelistcurrentGroup
- the current nodename
- the name of the XML tag.
public static java.lang.String prev_element(org.w3c.dom.NodeList currentGrouping, org.w3c.dom.NodeList currentGroup, java.lang.String name)
currentGrouping
- the current grouping nodelistcurrentGroup
- the current nodename
- the name of the XML tag.
public static java.lang.String format_number(double d, int len, java.lang.String locStr)
d
- the input numberlen
- the minimum number of decimal positions to include.locStr
- locale string
public static java.lang.String format_number(double d, int len, java.lang.String s1, java.lang.String s2, java.lang.String locStr)
d
- the input numberlen
- the minimum number of decimal positions to include.s1
- the thousand seperators2
- the decimal seperatorlocStr
- locale string
public static java.lang.String pat_format_number(double d, java.lang.String pat, java.lang.String locStr)
d
- the input numberpat
- the desired number format.locStr
- locale string
public static java.lang.String format_date(java.lang.String d, java.lang.String locStr, java.lang.String tzID)
d
- the input date stringlocStr
- locale stringtzID
- timezone ID
public static java.lang.String format_date(java.lang.String d, java.lang.String f, java.lang.String locStr, java.lang.String tzID)
d
- the input date stringf
- the date format required.locStr
- locale stringtzID
- timezone ID
public static java.lang.String format_date(java.lang.String d, java.lang.String f, java.lang.String e, java.lang.String locStr, java.lang.String tzID)
d
- the input date stringf
- the date format required.e
- tge date format of the input stringlocStr
- locale stringtzID
- timezone
public static final void set_array(java.lang.String ctxs, java.lang.String varName, int index, java.lang.String value)
ctxs
- context keyvarName
- name of the hash tableindex
- index of the hash tablevalue
- value to be setpublic static final java.lang.String get_array(java.lang.String ctxs, java.lang.String varName, int index)
ctxs
- context keyvarName
- name of the hash tableindex
- index of the hash table
public static java.lang.String toWordsAmt(double amount)
amount
- the amount
public static java.lang.String getHourRange(java.lang.String sDate, java.lang.String tzID)
sDate
- input date string
public static java.lang.String getWeekRange(java.lang.String sDate, java.lang.String tzID)
sDate
- input date stringtzID
- timezone ID
public static java.lang.String bidi(java.lang.String str)
str
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |