Java Code Examples for com.sun.org.apache.xalan.internal.extensions.ExpressionContext#getContextNode()
The following examples show how to use
com.sun.org.apache.xalan.internal.extensions.ExpressionContext#getContextNode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NodeInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 2
Source File: NodeInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 3
Source File: NodeInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 4
Source File: NodeInfo.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 5
Source File: NodeInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * <code>systemId</code> returns the system id of the current * context node. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String systemId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getSystemId(); else return null; }
Example 6
Source File: NodeInfo.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 7
Source File: NodeInfo.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 8
Source File: NodeInfo.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * <code>systemId</code> returns the system id of the current * context node. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String systemId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getSystemId(); else return null; }
Example 9
Source File: NodeInfo.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * <code>systemId</code> returns the system id of the current * context node. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String systemId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getSystemId(); else return null; }
Example 10
Source File: NodeInfo.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * <code>systemId</code> returns the system id of the current * context node. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String systemId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getSystemId(); else return null; }
Example 11
Source File: NodeInfo.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * <code>publicId</code> returns the public identifier of the current * context node. * * Xalan does not currently record this value, and will return null. * * @param context an <code>ExpressionContext</code> value * @return a <code>String</code> value */ public static String publicId(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getPublicId(); else return null; }
Example 12
Source File: NodeInfo.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * <code>lineNumber</code> returns the line number of the current * context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. */ public static int lineNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getLineNumber(); else return -1; }
Example 13
Source File: NodeInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * <code>columnNumber</code> returns the column number of the * current context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. */ public static int columnNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getColumnNumber(); else return -1; }
Example 14
Source File: NodeInfo.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * <code>columnNumber</code> returns the column number of the * current context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. */ public static int columnNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getColumnNumber(); else return -1; }
Example 15
Source File: NodeInfo.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * <code>columnNumber</code> returns the column number of the * current context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. */ public static int columnNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getColumnNumber(); else return -1; }
Example 16
Source File: NodeInfo.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * <code>lineNumber</code> returns the line number of the current * context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. */ public static int lineNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getLineNumber(); else return -1; }
Example 17
Source File: NodeInfo.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * <code>columnNumber</code> returns the column number of the * current context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. */ public static int columnNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getColumnNumber(); else return -1; }
Example 18
Source File: NodeInfo.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * <code>columnNumber</code> returns the column number of the * current context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. */ public static int columnNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getColumnNumber(); else return -1; }
Example 19
Source File: NodeInfo.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * <code>lineNumber</code> returns the line number of the current * context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. */ public static int lineNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getLineNumber(); else return -1; }
Example 20
Source File: NodeInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * <code>lineNumber</code> returns the line number of the current * context node. * * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * "http://xml.apache.org/xalan/features/source_location" * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. */ public static int lineNumber(ExpressionContext context) { Node contextNode = context.getContextNode(); int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber(); SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM() .getSourceLocatorFor(nodeHandler); if (locator != null) return locator.getLineNumber(); else return -1; }