public String getLiteralSystemId() { if (fLocator != null) { return fLocator.getLiteralSystemId(); } return null; }
public void startDocument( XMLLocator locator, String encoding, Augmentations augs ) throws XNIException { _activeScriptBlock = null; _systemID = (locator == null) ? "" : (locator.getLiteralSystemId() + "_"); _scriptIndex = 0; super.startDocument( locator, encoding, augs ); }
public void startDocument( XMLLocator locator, String encoding, Augmentations augs ) throws XNIException { _activeScriptBlock = null; _systemID = (locator == null) ? "" : (locator.getLiteralSystemId() + "_"); _scriptIndex = 0; super.startDocument( locator, encoding, augs ); }
public void startDocument( XMLLocator locator, String encoding, Augmentations augs ) throws XNIException { _activeScriptBlock = null; _systemID = (locator == null) ? "" : (locator.getLiteralSystemId() + "_"); _scriptIndex = 0; super.startDocument( locator, encoding, augs ); }
private void setLineColumn(Node node) { if (locator == null) { throw new java.lang.IllegalStateException("XMLLocator is null"); } if (node.getUserData("startLine") != null) { return; } node.setUserData("systemId", locator.getLiteralSystemId(), null); node.setUserData("startLine", locator.getLineNumber(), null); node.setUserData("startColumn", locator.getColumnNumber(), null); }
fAttributes.removeAllAttributes(); if (locator != null) { String systemId = locator.getLiteralSystemId(); if (systemId != null) { fAttributes.addAttribute(A_SYSID, "CDATA", systemId);
/** 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(); } } // <init>(XMLLocator,String)
/** 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(); } } // <init>(XMLLocator,String,Exception)
protected 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); }