/** 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)
valinfo.addWarning(validationMessageStr, locator != null ? locator.getLineNumber() : 1, locator != null ? locator.getColumnNumber() : 0, valinfo.getFileURI(), FILE_NOT_FOUND_KEY, null);
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); }
schemaDOM.startAnnotation(element, attributes, fNamespaceContext); fCurrentAnnotationElement = schemaDOM.startElement(element, attributes, fLocator.getLineNumber(), fLocator.getColumnNumber(), fLocator.getCharacterOffset()); return; fLocator.getLineNumber(), fLocator.getColumnNumber(), fLocator.getCharacterOffset());
public int getLineNumber() { if (fLocator != null) { return fLocator.getLineNumber(); } return -1; }
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); }
public String getLiteralSystemId() { if (fLocator != null) { return fLocator.getLiteralSystemId(); } return null; }
public int getColumnNumber() { if (fLocator != null) { return fLocator.getColumnNumber(); } return -1; }
public String getBaseSystemId() { if (fLocator != null) { return fLocator.getBaseSystemId(); } return null; }
public int getCharacterOffset() { if (fLocator != null) { return fLocator.getCharacterOffset(); } return -1; }
elementImpl.setUserData(new ElementLocation(locator.getLineNumber(), locator.getColumnNumber()));
fLocator.getLineNumber(), fLocator.getColumnNumber(), fLocator.getCharacterOffset()); fLocator.getLineNumber(), fLocator.getColumnNumber(), fLocator.getCharacterOffset());
/** Line number. */ public int getLineNumber() { return fLocator.getLineNumber(); }
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 ); }
/** Column number. */ public int getColumnNumber() { return fLocator.getColumnNumber(); }
/** * The start of the DTD. * * @param locator The document locator, or null if the document * location cannot be reported during the parsing of * the document DTD. However, it is <em>strongly</em> * recommended that a locator be supplied that can * at least report the base system identifier of the * DTD. * @param augs Additional information that may include infoset * augmentations. * * @throws XNIException Thrown by handler to signal an error. */ public void startDTD (XMLLocator locator, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println ("==>startDTD"); if (DEBUG_BASEURI) { System.out.println (" expandedSystemId: "+locator.getExpandedSystemId ()); System.out.println (" baseURI:"+ locator.getBaseSystemId ()); } } fInDTD = true; if (locator != null) { fBaseURIStack.push (locator.getBaseSystemId ()); } if (fDeferNodeExpansion || fDocumentImpl != null) { fInternalSubset = new StringBuffer (1024); } } // startDTD(XMLLocator)
/** 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)
elementImpl.setUserData(new ElementLocation(locator.getLineNumber(), locator.getColumnNumber()));
/** Line number. */ public int getLineNumber() { return fLocator.getLineNumber(); }
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 ); }