|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<XSLTFunction> uk.apl.jxc.XSLTFunction
public enum XSLTFunction
Enumeration of XSLT functions available in XMLFilter and XMLMapper.
Nested Class Summary | |
---|---|
static class |
XSLTFunction.XSLTSpecification
Enumeration of the XSLT specifications used |
Enum Constant Summary | |
---|---|
ABS
number abs(number) (XSLT 2.0) |
|
ADJUSTDATETIMETOTIMEZONE
dateTime adjust-dateTime-to-timezone(dateTime, timezone) (XSLT 2.0) |
|
ADJUSTDATETOTIMEZONE
date adjust-date-to-timezone(date, timezone) (XSLT 2.0) |
|
ADJUSTTIMETOTIMEZONE
time adjust-time-to-timezone(time, timezone) (XSLT 2.0) |
|
AVG
number avg(node-set) (XSLT 2.0) |
|
CEILING
number ceiling(node-set) (XSLT 1.0) |
|
COMPARE
number compare(comp1, comp2) (XSLT 2.0) |
|
CONCAT
string concat(string, string, string*) (XSLT 1.0) |
|
CONTAINS
boolean contains(string, string) (XSLT 1.0) |
|
COUNT
number count(node-set) (XSLT 1.0) |
|
DATETIME
dateTime date-time(date, time) (XSLT 2.0) |
|
DAYFROMDATE
number day-from-date(date) (XSLT 2.0) |
|
DAYFROMDATETIME
number day-from-dateTime(datetime) (XSLT 2.0) |
|
DAYSFROMDURATION
number days-from-duration(datetimedur) (XSLT 2.0) |
|
ENDSWITH
boolean ends-with(string1, string2) (XSLT 2.0) |
|
FLOOR
number floor(node-set) (XSLT 1.0) |
|
HOURSFROMDATETIME
number hours-from-dateTime(datetime) (XSLT 2.0) |
|
HOURSFROMDURATION
number hours-from-duration(datetimedur) (XSLT 2.0) |
|
HOURSFROMTIME
number hours-from-time(time) (XSLT 2.0) |
|
LOWERCASE
string lower-case(string) (XSLT 2.0) |
|
MATCHES
boolean matches(string1, string2) (XSLT 2.0) |
|
MAX
number max(node-set) (XSLT 2.0) |
|
MEAN
number (sum(node-set) div count(node-set)) (Custom) |
|
MIN
number min(node-set) (XSLT 2.0) |
|
MINUTESFROMDATETIME
number minutes-from-dateTime(datetime) (XSLT 2.0) |
|
MINUTESFROMDURATION
number minutes-from-duration(datetimedur) (XSLT 2.0) |
|
MINUTESFROMTIME
number minutes-from-time(time) (XSLT 2.0) |
|
MONTHFROMDATE
number month-from-date(date) (XSLT 2.0) |
|
MONTHFROMDATETIME
number month-from-dateTime(datetime) (XSLT 2.0) |
|
MONTHSFROMDURATION
number months-from-duration(datetimedur) (XSLT 2.0) |
|
NORMALIZESPACE
string normalize-space(string) (XSLT 2.0) |
|
NUMBER
number number(object?) (XSLT 1.0) |
|
REPLACE
string replace(string, pattern, replace) (XSLT 2.0) |
|
ROUND
number round(number) (XSLT 1.0) |
|
ROUNDHALFTOEVEN
number round-half-to-even(number) (XSLT 2.0) |
|
SECONDSFROMDATETIME
number seconds-from-dateTime(datetime) (XSLT 2.0) |
|
SECONDSFROMDURATION
number seconds-from-duration(datetimedur) (XSLT 2.0) |
|
SECONDSFROMTIME
number seconds-from-time(time) (XSLT 2.0) |
|
STARTSWITH
boolean starts-with(string, string) (XSLT 1.0) |
|
STRING
string string(object?) (XSLT 1.0) |
|
STRINGJOIN
string string-join((string, string), sep) (XSLT 2.0) |
|
STRINGLENGTH
number string-length(string) (XSLT 2.0) |
|
SUBSTRING
string substring(string, number, number?) (XSLT 1.0) |
|
SUBSTRINGAFTER
string substring-after(string, number) (XSLT 1.0) |
|
SUBSTRINGBEFORE
string substring-before(string, number) (XSLT 1.0) |
|
SUM
number sum(node-set) (XSLT 1.0) |
|
TIMEZONEFROMDATE
string timezone-from-date(date) (XSLT 2.0) |
|
TIMEZONEFROMDATETIME
string timezone-from-dateTime(datetime) (XSLT 2.0) |
|
TIMEZONEFROMTIME
string timezone-from-time(time) (XSLT 2.0) |
|
TRANSLATE
string translate(string1, string2, string3) (XSLT 2.0) |
|
UPPERCASE
string upper-case(string) (XSLT 2.0) |
|
YEARFROMDATE
number year-from-date(date) (XSLT 2.0) |
|
YEARFROMDATETIME
number year-from-dateTime(datetime) (XSLT 2.0) |
|
YEARSFROMDURATION
number years-from-duration(datetimedur) (XSLT 2.0) |
Field Summary | |
---|---|
static XSLTFunction[] |
XSLT1_FUNCS
Array of all XSLT 1.0 functions. |
static XSLTFunction[] |
XSLT2_FUNCS
Array of all XSLT 2.0 functions. |
Method Summary | |
---|---|
java.lang.String |
getArgPrompt(int arg)
Returns a prompt for the function argument at a given position. |
static XSLTFunction[] |
getFunctionsForWorkingSpec()
Returns functions allowed for the current working specification. |
int |
getMinimumArgsCount()
Returns the minimum number of arguments required by the function. |
XSLTFunction.XSLTSpecification |
getSpecification()
Returns the XSLT specification from which the function is derived. |
static XSLTFunction.XSLTSpecification |
getWorkingSpec()
Returns the current working XSLT specification. |
boolean |
isStringArg(int arg)
Determines if the argument at a given position is a string. |
static void |
setWorkingSpec(XSLTFunction.XSLTSpecification spec)
Sets the working XSLT Specification. |
java.lang.String |
toString()
Overridden to use actual XSLT function names. |
java.lang.String |
toXSL(java.lang.String argsStr)
Returns a String formatted for inclusion in an XSL stylesheet of the function applied to argsStr. |
static XSLTFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static XSLTFunction[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final XSLTFunction ABS
public static final XSLTFunction AVG
public static final XSLTFunction CEILING
public static final XSLTFunction COUNT
public static final XSLTFunction FLOOR
public static final XSLTFunction MIN
public static final XSLTFunction MAX
public static final XSLTFunction MEAN
public static final XSLTFunction NUMBER
public static final XSLTFunction ROUND
public static final XSLTFunction ROUNDHALFTOEVEN
public static final XSLTFunction SUM
public static final XSLTFunction CONCAT
public static final XSLTFunction CONTAINS
public static final XSLTFunction MATCHES
public static final XSLTFunction NORMALIZESPACE
public static final XSLTFunction REPLACE
public static final XSLTFunction STARTSWITH
public static final XSLTFunction ENDSWITH
public static final XSLTFunction STRING
public static final XSLTFunction STRINGJOIN
public static final XSLTFunction STRINGLENGTH
public static final XSLTFunction SUBSTRING
public static final XSLTFunction SUBSTRINGBEFORE
public static final XSLTFunction SUBSTRINGAFTER
public static final XSLTFunction TRANSLATE
public static final XSLTFunction UPPERCASE
public static final XSLTFunction LOWERCASE
public static final XSLTFunction DATETIME
public static final XSLTFunction YEARSFROMDURATION
public static final XSLTFunction MONTHSFROMDURATION
public static final XSLTFunction DAYSFROMDURATION
public static final XSLTFunction HOURSFROMDURATION
public static final XSLTFunction MINUTESFROMDURATION
public static final XSLTFunction SECONDSFROMDURATION
public static final XSLTFunction YEARFROMDATETIME
public static final XSLTFunction MONTHFROMDATETIME
public static final XSLTFunction DAYFROMDATETIME
public static final XSLTFunction HOURSFROMDATETIME
public static final XSLTFunction MINUTESFROMDATETIME
public static final XSLTFunction SECONDSFROMDATETIME
public static final XSLTFunction TIMEZONEFROMDATETIME
public static final XSLTFunction YEARFROMDATE
public static final XSLTFunction MONTHFROMDATE
public static final XSLTFunction DAYFROMDATE
public static final XSLTFunction TIMEZONEFROMDATE
public static final XSLTFunction HOURSFROMTIME
public static final XSLTFunction MINUTESFROMTIME
public static final XSLTFunction SECONDSFROMTIME
public static final XSLTFunction TIMEZONEFROMTIME
public static final XSLTFunction ADJUSTDATETIMETOTIMEZONE
public static final XSLTFunction ADJUSTDATETOTIMEZONE
public static final XSLTFunction ADJUSTTIMETOTIMEZONE
public static final XSLTFunction COMPARE
Field Detail |
---|
public static final XSLTFunction[] XSLT1_FUNCS
public static final XSLTFunction[] XSLT2_FUNCS
Method Detail |
---|
public static XSLTFunction[] values()
for (XSLTFunction c : XSLTFunction.values()) System.out.println(c);
public static XSLTFunction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toXSL(java.lang.String argsStr)
argsStr
- the arguments for the function
public java.lang.String toString()
toString
in class java.lang.Enum<XSLTFunction>
public XSLTFunction.XSLTSpecification getSpecification()
public int getMinimumArgsCount()
public java.lang.String getArgPrompt(int arg)
arg
- the position of the argument
public boolean isStringArg(int arg)
arg
- the position of the argument
public static void setWorkingSpec(XSLTFunction.XSLTSpecification spec)
spec
- the XSLT specification to usepublic static XSLTFunction.XSLTSpecification getWorkingSpec()
public static XSLTFunction[] getFunctionsForWorkingSpec()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |