| Modifier and Type | Field and Description |
|---|---|
| private static char[] | _characterArray
Utility function: used in xsl:copy. |
| private static FieldPosition | _fieldPosition
Utility function: used to format/adjust a double to a string. |
| public static final String | |
| public static final String | |
| public static final String | |
| private static DecimalFormat | |
| private static String | |
| public static final String | |
| private static final int | |
| private static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final double | |
| private static ResourceBundle | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final ThreadLocal | |
| private static final ThreadLocal | threadLocalStringBuffer
ThreadLocal for StringBuffer used |
| private static final ThreadLocal | threadLocalStringBuilder
Re-use a single instance of StringBuffer (per thread) in the basis library. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final double | |
| private static DecimalFormat |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static void | checkAttribQName(String name)
Utility function to check if xsl:attribute has a valid qname This method should only be invoked if the name attribute is an AVT |
| public static void | checkNCName(String name)
Utility function to check if a name is a valid ncname This method should only be invoked if the attribute value is an AVT |
| public static void | checkQName(String name)
Utility function to check if a name is a valid qname This method should only be invoked if the attribute value is an AVT |
| public static boolean | compare(DTMAxisIterator left, DTMAxisIterator right, int op, DOM dom)
Utility function: node-set/node-set compare. |
| public static boolean | |
| public static boolean | compare(DTMAxisIterator left, final double rnumber, final int op, DOM dom)
Utility function: node-set/number compare. |
| public static boolean | compare(DTMAxisIterator left, final String rstring, int op, DOM dom)
Utility function: node-set/string comparison. |
| public static boolean | |
| private static boolean | |
| public static void | |
| public static void | |
| public static int | |
| public static String | |
| public static String | |
| public static String | generatePrefix()
These functions are used in the execution of xsl:element to generate and reset namespace prefix index local to current transformation process |
| public static String | |
| public static String | |
| public static DTMAxisIterator | getSingleNode(DTMAxisIterator iterator)
Utility function: used with nth position filters to convert a sequence of nodes to just one single node (the one at position n). |
| public static int | getStringLength(String str)
Utility method to calculate string-length as a number of code points, to avoid possible errors with string that contains complementary characters |
| private static boolean | |
| private static boolean | |
| public static String | mapQNameToJavaName(String base)
Utility method to allow setting parameters of the form {namespaceuri}localName which get mapped to an instance variable in the class Hence a parameter of the form "{http://foo.bar}xyz" will be replaced with the corresponding values by the BasisLibrary's utility method mapQNametoJavaName and thus get mapped to legal java variable names |
| public static String | |
| public static String | |
| public static DTMAxisIterator | node2Iterator(Node node, Translet translet, DOM dom)
Utility function used to convert a w3c Node into an internal DOM iterator. |
| public static DTMAxisIterator | nodeList2Iterator(NodeList nodeList, Translet translet, DOM dom)
Utility function used to convert a w3c NodeList into a internal DOM iterator. |
| private static DTMAxisIterator | nodeList2IteratorUsingHandleFromNode(NodeList nodeList, Translet translet, DOM dom)
In a perfect world, this would be the implementation for nodeList2Iterator. |
| public static DTMAxisIterator | |
| public static String | |
| public static String | |
| public static double | |
| public static double | |
| public static String | |
| public static int | positionF(DTMAxisIterator iterator)
Deprecated
This method exists only for backwards compatibility with old
translets. New code should not reference it.
Standard function position() |
| public static int | |
| public static String | |
| public static boolean | |
| public static double | |
| public static long | |
| public static Node | referenceToNode(Object obj, DOM dom)
Utility function: used to convert reference to org.w3c.dom.Node. |
| public static NodeList | referenceToNodeList(Object obj, DOM dom)
Utility function: used to convert reference to org.w3c.dom.NodeList. |
| public static DTMAxisIterator | |
| public static DOM | |
| public static String | |
| public static String | |
| public static String | |
| public static void | |
| public static double | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static String | startXslElement(String qname, String namespace, SerializationHandler handler, DOM dom, int node)
Utility function for the implementation of xsl:element. |
| public static String | |
| public static String | |
| public static String | |
| public static int | |
| public static double | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static double | |
| public static String | |
| public static boolean | testLanguage(String testLang, DOM dom, int node)
Utility function: used to test context node's language |
| public static String | |
| public static void | unallowed_extension_elementF(String name)
Utility function to throw a runtime error on the use of an extension element when the secure processing feature is set to true. |
| public static void | unallowed_extension_functionF(String name)
Utility function to throw a runtime error on the use of an extension function when the secure processing feature is set to true. |
| public static void | unresolved_externalF(String name)
External functions that cannot be resolved are replaced with a call to this method. |
| public static void | unsupported_ElementF(String qname, boolean isExtension)
Utility function to throw a runtime error for an unsupported element. |
| _characterArray | back to summary |
|---|---|
| private static char[] _characterArray Utility function: used in xsl:copy. | |
| _fieldPosition | back to summary |
|---|---|
| private static FieldPosition _fieldPosition Utility function: used to format/adjust a double to a string. The DecimalFormat object comes from the 'formatSymbols' map in AbstractTranslet. | |
| AXIS_SUPPORT_ERR | back to summary |
|---|---|
| public static final String AXIS_SUPPORT_ERR | |
| CANT_RESOLVE_RELATIVE_URI_ERR | back to summary |
|---|---|
| public static final String CANT_RESOLVE_RELATIVE_URI_ERR | |
| DATA_CONVERSION_ERR | back to summary |
|---|---|
| public static final String DATA_CONVERSION_ERR | |
| defaultFormatter | back to summary |
|---|---|
| private static DecimalFormat defaultFormatter | |
| defaultPattern | back to summary |
|---|---|
| private static String defaultPattern | |
| DOM_ADAPTER_INIT_ERR | back to summary |
|---|---|
| public static final String DOM_ADAPTER_INIT_ERR | |
| DOUBLE_FRACTION_DIGITS | back to summary |
|---|---|
| private static final int DOUBLE_FRACTION_DIGITS | |
| EMPTYSTRING | back to summary |
|---|---|
| private static final String EMPTYSTRING | |
| EQUALITY_EXPR_ERR | back to summary |
|---|---|
| public static final String EQUALITY_EXPR_ERR | |
| ERROR_MESSAGES_KEY | back to summary |
|---|---|
| public static final String ERROR_MESSAGES_KEY | |
| EXTERNAL_FUNC_ERR | back to summary |
|---|---|
| public static final String EXTERNAL_FUNC_ERR | |
| FORMAT_NUMBER_ERR | back to summary |
|---|---|
| public static final String FORMAT_NUMBER_ERR | |
| INVALID_ARGUMENT_ERR | back to summary |
|---|---|
| public static final String INVALID_ARGUMENT_ERR | |
| INVALID_NCNAME_ERR | back to summary |
|---|---|
| public static final String INVALID_NCNAME_ERR | |
| INVALID_QNAME_ERR | back to summary |
|---|---|
| public static final String INVALID_QNAME_ERR | |
| ITERATOR_CLONE_ERR | back to summary |
|---|---|
| public static final String ITERATOR_CLONE_ERR | |
| lowerBounds | back to summary |
|---|---|
| private static final double lowerBounds | |
| m_bundle | back to summary |
|---|---|
| private static ResourceBundle m_bundle | |
| NAMESPACE_PREFIX_ERR | back to summary |
|---|---|
| public static final String NAMESPACE_PREFIX_ERR | |
| NAMESPACES_SUPPORT_ERR | back to summary |
|---|---|
| public static final String NAMESPACES_SUPPORT_ERR | |
| PARSER_DTD_SUPPORT_ERR | back to summary |
|---|---|
| public static final String PARSER_DTD_SUPPORT_ERR | |
| RUN_TIME_COPY_ERR | back to summary |
|---|---|
| public static final String RUN_TIME_COPY_ERR | |
| RUN_TIME_INTERNAL_ERR | back to summary |
|---|---|
| public static final String RUN_TIME_INTERNAL_ERR | |
| STRAY_ATTRIBUTE_ERR | back to summary |
|---|---|
| public static final String STRAY_ATTRIBUTE_ERR | |
| STRAY_NAMESPACE_ERR | back to summary |
|---|---|
| public static final String STRAY_NAMESPACE_ERR | |
| threadLocalPrefixIndex | back to summary |
|---|---|
| private static final ThreadLocal<AtomicInteger> threadLocalPrefixIndex | |
| threadLocalStringBuffer | back to summary |
|---|---|
| private static final ThreadLocal<StringBuffer> threadLocalStringBuffer ThreadLocal for StringBuffer used | |
| threadLocalStringBuilder | back to summary |
|---|---|
| private static final ThreadLocal<StringBuilder> threadLocalStringBuilder Re-use a single instance of StringBuffer (per thread) in the basis library. StringBuilder is better, however, DecimalFormat only accept StringBuffer | |
| TYPED_AXIS_SUPPORT_ERR | back to summary |
|---|---|
| public static final String TYPED_AXIS_SUPPORT_ERR | |
| UNALLOWED_EXTENSION_ELEMENT_ERR | back to summary |
|---|---|
| public static final String UNALLOWED_EXTENSION_ELEMENT_ERR | |
| UNALLOWED_EXTENSION_FUNCTION_ERR | back to summary |
|---|---|
| public static final String UNALLOWED_EXTENSION_FUNCTION_ERR | |
| UNKNOWN_TRANSLET_VERSION_ERR | back to summary |
|---|---|
| public static final String UNKNOWN_TRANSLET_VERSION_ERR | |
| UNSUPPORTED_EXT_ERR | back to summary |
|---|---|
| public static final String UNSUPPORTED_EXT_ERR | |
| UNSUPPORTED_XSL_ERR | back to summary |
|---|---|
| public static final String UNSUPPORTED_XSL_ERR | |
| upperBounds | back to summary |
|---|---|
| private static final double upperBounds | |
| xpathFormatter | back to summary |
|---|---|
| private static DecimalFormat xpathFormatter | |
| BasisLibrary | back to summary |
|---|---|
| public BasisLibrary() | |
| booleanF | back to summary |
|---|---|
| public static boolean booleanF(Object obj) XSLT Standard function boolean() | |
| checkAttribQName | back to summary |
|---|---|
| public static void checkAttribQName(String name) Utility function to check if xsl:attribute has a valid qname This method should only be invoked if the name attribute is an AVT | |
| checkNCName | back to summary |
|---|---|
| public static void checkNCName(String name) Utility function to check if a name is a valid ncname This method should only be invoked if the attribute value is an AVT | |
| checkQName | back to summary |
|---|---|
| public static void checkQName(String name) Utility function to check if a name is a valid qname This method should only be invoked if the attribute value is an AVT | |
| compare | back to summary |
|---|---|
| public static boolean compare(DTMAxisIterator left, DTMAxisIterator right, int op, DOM dom) Utility function: node-set/node-set compare. | |
| compare | back to summary |
|---|---|
| public static boolean compare(int node, DTMAxisIterator iterator, int op, DOM dom) | |
| compare | back to summary |
|---|---|
| public static boolean compare(DTMAxisIterator left, final double rnumber, final int op, DOM dom) Utility function: node-set/number compare. | |
| compare | back to summary |
|---|---|
| public static boolean compare(DTMAxisIterator left, final String rstring, int op, DOM dom) Utility function: node-set/string comparison. | |
| compare | back to summary |
|---|---|
| public static boolean compare(Object left, Object right, int op, DOM dom) | |
| compareStrings | back to summary |
|---|---|
| private static boolean compareStrings(String lstring, String rstring, int op, DOM dom) | |
| consoleOutput | back to summary |
|---|---|
| public static void consoleOutput(String msg) | |
| copy | back to summary |
|---|---|
| public static void copy(Object obj, SerializationHandler handler, int node, DOM dom) | |
| countF | back to summary |
|---|---|
| public static int countF(DTMAxisIterator iterator) Standard function count(node-set) | |
| formatNumber | back to summary |
|---|---|
| public static String formatNumber(double number, String pattern, DecimalFormat formatter) | |
| generate_idF | back to summary |
|---|---|
| public static String generate_idF(int node) XSLT Standard function generate-id(). | |
| generatePrefix | back to summary |
|---|---|
| public static String generatePrefix() These functions are used in the execution of xsl:element to generate and reset namespace prefix index local to current transformation process | |
| getLocalName | back to summary |
|---|---|
| public static String getLocalName(String value) utility function for calls to local-name(). | |
| getPrefix | back to summary |
|---|---|
| public static String getPrefix(String qname) This function is used in the execution of xsl:element | |
| getSingleNode | back to summary |
|---|---|
| public static DTMAxisIterator getSingleNode(DTMAxisIterator iterator) Utility function: used with nth position filters to convert a sequence of nodes to just one single node (the one at position n). | |
| getStringLength | back to summary |
|---|---|
| public static int getStringLength(String str) Utility method to calculate string-length as a number of code points, to avoid possible errors with string that contains complementary characters | |
| hasSimpleType | back to summary |
|---|---|
| private static boolean hasSimpleType(Object obj) | |
| isWhiteSpace | back to summary |
|---|---|
| private static boolean isWhiteSpace(char ch) | |
| mapQNameToJavaName | back to summary |
|---|---|
| public static String mapQNameToJavaName(String base) Utility method to allow setting parameters of the form {namespaceuri}localName which get mapped to an instance variable in the class Hence a parameter of the form "{http://foo.bar}xyz" will be replaced with the corresponding values by the BasisLibrary's utility method mapQNametoJavaName and thus get mapped to legal java variable names | |
| namespace_uriF | back to summary |
|---|---|
| public static String namespace_uriF(DTMAxisIterator iter, DOM dom) XSLT Standard function namespace-uri(node-set). | |
| namespace_uriF | back to summary |
|---|---|
| public static String namespace_uriF(int node, DOM dom) XSLT Standard function namespace-uri(). | |
| node2Iterator | back to summary |
|---|---|
| public static DTMAxisIterator node2Iterator(Node node, Translet translet, DOM dom) Utility function used to convert a w3c Node into an internal DOM iterator. | |
| nodeList2Iterator | back to summary |
|---|---|
| public static DTMAxisIterator nodeList2Iterator(NodeList nodeList, Translet translet, DOM dom) Utility function used to convert a w3c NodeList into a internal DOM iterator. | |
| nodeList2IteratorUsingHandleFromNode | back to summary |
|---|---|
| private static DTMAxisIterator nodeList2IteratorUsingHandleFromNode(NodeList nodeList, Translet translet, DOM dom) In a perfect world, this would be the implementation for nodeList2Iterator. In reality, though, this causes a ClassCastException in getDTMHandleFromNode because SAXImpl is not an instance of DOM2DTM. So we use the more lengthy implementation below until this issue has been addressed. | |
| nodesetF | back to summary |
|---|---|
| public static DTMAxisIterator nodesetF(Object obj) Implements the nodeset() extension function. | |
| normalize_spaceF | back to summary |
|---|---|
| public static String normalize_spaceF(int node, DOM dom) XSLT Standard function normalize-space(). | |
| normalize_spaceF | back to summary |
|---|---|
| public static String normalize_spaceF(String value) XSLT Standard function normalize-space(string). | |
| numberF | back to summary |
|---|---|
| public static double numberF(int node, DOM dom) XSLT Standard function number() | |
| numberF | back to summary |
|---|---|
| public static double numberF(Object obj, DOM dom) XSLT Standard function number(value) | |
| objectTypeF | back to summary |
|---|---|
| public static String objectTypeF(Object obj) Implements the object-type() extension function.
| |
| positionF | back to summary |
|---|---|
| public static int positionF(DTMAxisIterator iterator)
Deprecated This method exists only for backwards compatibility with old translets. New code should not reference it. Standard function position()
| |
| realToInt | back to summary |
|---|---|
| public static int realToInt(double d) Utility function: used in RealType to convert a real to an integer | |
| realToString | back to summary |
|---|---|
| public static String realToString(double d) Utility function: used in RealType to convert a real to a string. Removes the decimal if null. Uses a specialized formatter object for very large and very small numbers that ignores locales, thus using always using "." as a decimal separator. | |
| referenceToBoolean | back to summary |
|---|---|
| public static boolean referenceToBoolean(Object obj) Utility function: used to convert reference to boolean. | |
| referenceToDouble | back to summary |
|---|---|
| public static double referenceToDouble(Object obj) Utility function: used to convert reference to double. | |
| referenceToLong | back to summary |
|---|---|
| public static long referenceToLong(Object obj) Utility function: used to convert reference to long. | |
| referenceToNode | back to summary |
|---|---|
| public static Node referenceToNode(Object obj, DOM dom) Utility function: used to convert reference to org.w3c.dom.Node. | |
| referenceToNodeList | back to summary |
|---|---|
| public static NodeList referenceToNodeList(Object obj, DOM dom) Utility function: used to convert reference to org.w3c.dom.NodeList. | |
| referenceToNodeSet | back to summary |
|---|---|
| public static DTMAxisIterator referenceToNodeSet(Object obj) Utility function: used to convert references to node-sets. If the obj is an instanceof Node then create a singleton iterator. | |
| referenceToResultTree | back to summary |
|---|---|
| public static DOM referenceToResultTree(Object obj) Utility function used to convert references to DOMs. | |
| referenceToString | back to summary |
|---|---|
| public static String referenceToString(Object obj, DOM dom) Utility function: used to convert reference to String. | |
| replace | back to summary |
|---|---|
| public static String replace(String base, char ch, String str) Replace a certain character in a string with a new substring. | |
| replace | back to summary |
|---|---|
| public static String replace(String base, String delim, String[] str) | |
| resetPrefixIndex | back to summary |
|---|---|
| public static void resetPrefixIndex() | |
| roundF | back to summary |
|---|---|
| public static double roundF(double d) XSLT Standard function round() | |
| runTimeError | back to summary |
|---|---|
| public static void runTimeError(String code) Print a run-time error message. | |
| runTimeError | back to summary |
|---|---|
| public static void runTimeError(String code, Object[] args) | |
| runTimeError | back to summary |
|---|---|
| public static void runTimeError(String code, Object arg0) | |
| runTimeError | back to summary |
|---|---|
| public static void runTimeError(String code, Object arg0, Object arg1) | |
| startXslElement | back to summary |
|---|---|
| public static String startXslElement(String qname, String namespace, SerializationHandler handler, DOM dom, int node) Utility function for the implementation of xsl:element. | |
| stringF | back to summary |
|---|---|
| public static String stringF(int node, DOM dom) XSLT Standard function string() | |
| stringF | back to summary |
|---|---|
| public static String stringF(Object obj, DOM dom) XSLT Standard function string(value) | |
| stringF | back to summary |
|---|---|
| public static String stringF(Object obj, int node, DOM dom) XSLT Standard function string(value) | |
| stringToInt | back to summary |
|---|---|
| public static int stringToInt(String s) Utility function: used in StringType to convert a string to an int. | |
| stringToReal | back to summary |
|---|---|
| public static double stringToReal(String s) Utility function: used in StringType to convert a string to a real. | |
| substring_afterF | back to summary |
|---|---|
| public static String substring_afterF(String value, String substring) XSLT Standard function substring-after(). | |
| substring_beforeF | back to summary |
|---|---|
| public static String substring_beforeF(String value, String substring) XSLT Standard function substring-before(). | |
| substringF | back to summary |
|---|---|
| public static String substringF(String value, double start) XSLT Standard function substring(). Must take a double because of conversions resulting into NaNs and rounding. | |
| substringF | back to summary |
|---|---|
| public static String substringF(String value, double start, double length) XSLT Standard function substring(). Must take a double because of conversions resulting into NaNs and rounding. | |
| sumF | back to summary |
|---|---|
| public static double sumF(DTMAxisIterator iterator, DOM dom) XSLT Standard function sum(node-set). stringToDouble is inlined | |
| system_propertyF | back to summary |
|---|---|
| public static String system_propertyF(String name) XSLT Standard function system-property(name) | |
| testLanguage | back to summary |
|---|---|
| public static boolean testLanguage(String testLang, DOM dom, int node) Utility function: used to test context node's language | |
| translateF | back to summary |
|---|---|
| public static String translateF(String value, String from, String to) XSLT Standard function translate(). | |
| unallowed_extension_elementF | back to summary |
|---|---|
| public static void unallowed_extension_elementF(String name) Utility function to throw a runtime error on the use of an extension element when the secure processing feature is set to true. | |
| unallowed_extension_functionF | back to summary |
|---|---|
| public static void unallowed_extension_functionF(String name) Utility function to throw a runtime error on the use of an extension function when the secure processing feature is set to true. | |
| unresolved_externalF | back to summary |
|---|---|
| public static void unresolved_externalF(String name) External functions that cannot be resolved are replaced with a call to this method. This method will generate a runtime errors. A good stylesheet checks whether the function exists using conditional constructs, and never really tries to call it if it doesn't exist. But simple stylesheets may result in a call to this method. The compiler should generate a warning if it encounters a call to an unresolved external function. | |
| unsupported_ElementF | back to summary |
|---|---|
| public static void unsupported_ElementF(String qname, boolean isExtension) Utility function to throw a runtime error for an unsupported element. This is only used in forward-compatibility mode, when the control flow cannot be determined. In 1.0 mode, the error message is emitted at compile time. | |