Java Code Examples for com.sun.org.apache.xerces.internal.xni.XMLLocator#getLiteralSystemId()
The following examples show how to use
com.sun.org.apache.xerces.internal.xni.XMLLocator#getLiteralSystemId() .
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: XMLParseException.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 2
Source File: StaxErrorReporter.java From Bytecoder with Apache License 2.0 | 5 votes |
Location convertToStaxLocation(final XMLLocator location){ return new Location(){ public int getColumnNumber(){ return location.getColumnNumber(); } public int getLineNumber(){ return location.getLineNumber(); } public String getPublicId(){ return location.getPublicId(); } public String getSystemId(){ return location.getLiteralSystemId(); } public int getCharacterOffset(){ return location.getCharacterOffset(); } public String getLocationURI(){ return ""; } }; }
Example 3
Source File: XIncludeHandler.java From Bytecoder with Apache License 2.0 | 5 votes |
private void setupCurrentBaseURI(XMLLocator locator) { fCurrentBaseURI.setBaseSystemId(locator.getBaseSystemId()); if (locator.getLiteralSystemId() != null) { fCurrentBaseURI.setLiteralSystemId(locator.getLiteralSystemId()); } else { fCurrentBaseURI.setLiteralSystemId(fHrefFromParent); } String expandedSystemId = locator.getExpandedSystemId(); if (expandedSystemId == null) { // attempt to expand it ourselves try { expandedSystemId = XMLEntityManager.expandSystemId( fCurrentBaseURI.getLiteralSystemId(), fCurrentBaseURI.getBaseSystemId(), false); if (expandedSystemId == null) { expandedSystemId = fCurrentBaseURI.getLiteralSystemId(); } } catch (MalformedURIException e) { reportFatalError("ExpandedSystemId"); } } fCurrentBaseURI.setExpandedSystemId(expandedSystemId); }
Example 4
Source File: StaxErrorReporter.java From hottub with GNU General Public License v2.0 | 5 votes |
Location convertToStaxLocation(final XMLLocator location){ return new Location(){ public int getColumnNumber(){ return location.getColumnNumber(); } public int getLineNumber(){ return location.getLineNumber(); } public String getPublicId(){ return location.getPublicId(); } public String getSystemId(){ return location.getLiteralSystemId(); } public int getCharacterOffset(){ return location.getCharacterOffset(); } public String getLocationURI(){ return ""; } }; }
Example 5
Source File: XMLParseException.java From Bytecoder with Apache License 2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 6
Source File: StaxErrorReporter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
Location convertToStaxLocation(final XMLLocator location){ return new Location(){ public int getColumnNumber(){ return location.getColumnNumber(); } public int getLineNumber(){ return location.getLineNumber(); } public String getPublicId(){ return location.getPublicId(); } public String getSystemId(){ return location.getLiteralSystemId(); } public int getCharacterOffset(){ return location.getCharacterOffset(); } public String getLocationURI(){ return ""; } }; }
Example 7
Source File: XMLParseException.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 8
Source File: XMLParseException.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 9
Source File: StaxErrorReporter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
Location convertToStaxLocation(final XMLLocator location){ return new Location(){ public int getColumnNumber(){ return location.getColumnNumber(); } public int getLineNumber(){ return location.getLineNumber(); } public String getPublicId(){ return location.getPublicId(); } public String getSystemId(){ return location.getLiteralSystemId(); } public int getCharacterOffset(){ return location.getCharacterOffset(); } public String getLocationURI(){ return ""; } }; }
Example 10
Source File: XMLParseException.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message, Exception exception) { super(message, exception); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 11
Source File: XMLParseException.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 12
Source File: XMLParseException.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message, Exception exception) { super(message, exception); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 13
Source File: XMLParseException.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 14
Source File: XMLParseException.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 15
Source File: XMLParseException.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message, Exception exception) { super(message, exception); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 16
Source File: XMLParseException.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 17
Source File: StaxErrorReporter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
Location convertToStaxLocation(final XMLLocator location){ return new Location(){ public int getColumnNumber(){ return location.getColumnNumber(); } public int getLineNumber(){ return location.getLineNumber(); } public String getPublicId(){ return location.getPublicId(); } public String getSystemId(){ return location.getLiteralSystemId(); } public int getCharacterOffset(){ return location.getCharacterOffset(); } public String getLocationURI(){ return ""; } }; }
Example 18
Source File: XMLParseException.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message, Exception exception) { super(message, exception); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 19
Source File: XMLParseException.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message) { super(message); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }
Example 20
Source File: XMLParseException.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Constructs a parse exception. */ public XMLParseException(XMLLocator locator, String message, Exception exception) { super(message, exception); if (locator != null) { fPublicId = locator.getPublicId(); fLiteralSystemId = locator.getLiteralSystemId(); fExpandedSystemId = locator.getExpandedSystemId(); fBaseSystemId = locator.getBaseSystemId(); fLineNumber = locator.getLineNumber(); fColumnNumber = locator.getColumnNumber(); fCharacterOffset = locator.getCharacterOffset(); } }