DocumentType doctype = (DocumentType) node; if ("publicId".equals(localName)) { result.add(new DefaultAttribute("publicId", doctype.getPublicID())); } else if ("systemId".equals(localName)) { result.add(new DefaultAttribute("systemId", doctype.getSystemID()));
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
publicID = docType.getPublicID(); systemID = docType.getSystemID();
public String getPublicId() { return docType.getPublicID(); }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void entityResolver(Document document) throws SAXException { if (entityResolver != null) { DocumentType docType = document.getDocType(); if (docType != null) { String publicID = docType.getPublicID(); String systemID = docType.getSystemID(); if ((publicID != null) || (systemID != null)) { try { entityResolver.resolveEntity(publicID, systemID); } catch (IOException e) { throw new SAXException("Could not resolve publicID: " + publicID + " systemID: " + systemID, e); } } } } }
protected void assertNodesEqual(DocumentType o1, DocumentType o2) { if (o1 != o2) { Assert.assertNotNull(o1, String.format("Missing DocType: %s", o1)); Assert.assertNotNull(o2, String.format("Missing DocType: %s", o2)); Assert.assertEquals(o1.getName(), o2.getName(), "DocType name equal"); Assert.assertEquals(o1.getPublicID(), o2.getPublicID(), "DocType publicID equal"); Assert.assertEquals(o1.getSystemID(), o2.getSystemID(), "DocType systemID equal"); } }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }
public int compare(DocumentType o1, DocumentType o2) { if (o1 == o2) { return 0; } else if (o1 == null) { // null is less return -1; } else if (o2 == null) { return 1; } int answer = compare(o1.getPublicID(), o2.getPublicID()); if (answer == 0) { answer = compare(o1.getSystemID(), o2.getSystemID()); if (answer == 0) { answer = compare(o1.getName(), o2.getName()); } } return answer; }