Java Code Examples for com.sun.org.apache.xerces.internal.impl.xs.opti.ElementImpl#getLineNumber()
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.xs.opti.ElementImpl#getLineNumber() .
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: XSDHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 2
Source File: XSDHandler.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = (String)fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 3
Source File: XSDHandler.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = (String)fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 4
Source File: XSDHandler.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 5
Source File: XSDHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 6
Source File: XSDHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 7
Source File: XSDHandler.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 8
Source File: XSDHandler.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = (String)fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 9
Source File: XSDHandler.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Extract location information from an Element node, store such * information in the passed-in SimpleLocator object, then return * true. Returning false means can't extract or store such information. */ public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String sid = fDoc2SystemId.get(DOMUtil.getRoot(doc)); // line/column numbers are stored in the element node int line = ele.getLineNumber(); int column = ele.getColumnNumber(); l.setValues(sid, sid, line, column, ele.getCharacterOffset()); return true; } return false; }
Example 10
Source File: XSAnnotationInfo.java From JDKSourceCode1.8 with MIT License | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 11
Source File: XSAnnotationInfo.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 12
Source File: XSAnnotationInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 13
Source File: XSAnnotationInfo.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 14
Source File: XSAnnotationInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 15
Source File: XSAnnotationInfo.java From Bytecoder with Apache License 2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 16
Source File: XSAnnotationInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 17
Source File: XSAnnotationInfo.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 18
Source File: XSAnnotationInfo.java From hottub with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 19
Source File: XSAnnotationInfo.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }
Example 20
Source File: XSAnnotationInfo.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
XSAnnotationInfo(String annotation, Element annotationDecl) { fAnnotation = annotation; if (annotationDecl instanceof ElementImpl) { final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl; fLine = annotationDeclImpl.getLineNumber(); fColumn = annotationDeclImpl.getColumnNumber(); fCharOffset = annotationDeclImpl.getCharacterOffset(); } else { fLine = -1; fColumn = -1; fCharOffset = -1; } }