public DOMNamedNodeMap getNotations() { return wrap(_delegate.getNotations()); }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap entitiesMap; Notation notation1; Notation notation2; boolean isSame; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); entitiesMap = docType.getNotations(); notation1 = (Notation) entitiesMap.getNamedItem("notation1"); notation2 = (Notation) entitiesMap.getNamedItem("notation1"); isSame = notation1.isSameNode(notation2); assertTrue("nodeissamenode08", isSame); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notaionsMap; Notation notation; Notation notation2; int notationPosition; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); notaionsMap = docType.getNotations(); notation = (Notation) notaionsMap.getNamedItem("notation1"); notation2 = (Notation) notaionsMap.getNamedItem("notation1"); notationPosition = (int) notation.compareDocumentPosition(notation2); assertEquals("nodecomparedocumentposition24", 0, notationPosition); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notationList; Node notation; int notationType; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notationList = docType.getNotations(); assertNotNull("notationsNotNull", notationList); for (int indexN10049 = 0; indexN10049 < notationList.getLength(); indexN10049++) { notation = (Node) notationList.item(indexN10049); notationType = (int) notation.getNodeType(); assertEquals("documenttypeGetNotationsTypeAssert", 12, notationType); } } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notationsMap; Notation notation1; String textContent; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); notationsMap = docType.getNotations(); notation1 = (Notation) notationsMap.getNamedItem("notation1"); textContent = docType.getTextContent(); assertNull("nodegettextcontent05", textContent); } /**
public void visit(DocumentType type) { if (action(type)) { visit(type.getEntities()); visit(type.getNotations()); } }
public void visit(DocumentType type) { if (action(type)) { visit(type.getEntities()); visit(type.getNotations()); } }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap entitiesMap; NamedNodeMap notationsMap; Entity alpha; Notation notation1; boolean isEqual; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); entitiesMap = docType.getEntities(); notationsMap = docType.getNotations(); alpha = (Entity) entitiesMap.getNamedItem("alpha"); notation1 = (Notation) notationsMap.getNamedItem("notation1"); isEqual = notation1.isEqualNode(alpha); assertFalse("nodeisequalnode27", isEqual); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; Entity entity; Notation notation; NamedNodeMap entitiesMap; NamedNodeMap notationsMap; String namespaceURI; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); entitiesMap = docType.getEntities(); notationsMap = docType.getNotations(); entity = (Entity) entitiesMap.getNamedItem("alpha"); notation = (Notation) notationsMap.getNamedItem("notation1"); namespaceURI = entity.lookupNamespaceURI(""); assertNull("nodelookupnamespaceuri04", namespaceURI); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Node notationNode; String notationValue; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = notations.getNamedItem("notation1"); assertNotNull("notationNotNull", notationNode); notationValue = notationNode.getNodeValue(); assertNull("nodeValue", notationValue); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Node notationNode; NamedNodeMap attrList; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = notations.getNamedItem("notation1"); assertNotNull("notationNotNull", notationNode); attrList = notationNode.getAttributes(); assertNull("nodeNotationNodeAttributesAssert1", attrList); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Node notationNode; String notationName; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = notations.getNamedItem("notation1"); assertNotNull("notationNotNull", notationNode); notationName = notationNode.getNodeName(); assertEquals("nodeName", "notation1", notationName); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notationsMap; Notation notation1; String textContent; doc = (Document) load("hc_staff", true); docType = doc.getDoctype(); notationsMap = docType.getNotations(); notation1 = (Notation) notationsMap.getNamedItem("notation1"); notation1.setTextContent("textContent"); textContent = notation1.getTextContent(); assertNull("nodesettextcontent04", textContent); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String publicId; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = (Notation) notations.getNamedItem("notation1"); publicId = notationNode.getPublicId(); assertEquals("publicId", "notation1File", publicId); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String systemId; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = (Notation) notations.getNamedItem("notation1"); systemId = notationNode.getSystemId(); assertNull("systemId", systemId); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notationsMap; Notation notation; String baseURI; String docURI; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); notationsMap = docType.getNotations(); notation = (Notation) notationsMap.getNamedItem("notation1"); baseURI = notation.getBaseURI(); docURI = doc.getDocumentURI(); assertEquals("sameAsDocURI", docURI, baseURI); assertURIEquals("entityBase", null, null, null, null, "hc_staff", null, null, Boolean.TRUE, baseURI); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String notationName; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = (Notation) notations.getNamedItem("notation1"); notationName = notationNode.getNodeName(); assertEquals("notationGetNotationNameAssert", "notation1", notationName); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String publicId; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = (Notation) notations.getNamedItem("notation2"); publicId = notationNode.getPublicId(); assertNull("publicId", publicId); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notation; String nullNS = null; doc = (Document) load("staffNS", false); docType = doc.getDoctype(); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notation = (Notation) notations.getNamedItemNS(nullNS, "notation1"); assertNull("notationNull", notation); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; int nodeType; doc = (Document) load("staff", false); docType = doc.getDoctype(); assertNotNull("docTypeNotNull", docType); notations = docType.getNotations(); assertNotNull("notationsNotNull", notations); notationNode = (Notation) notations.getNamedItem("notation1"); assertNotNull("notationNotNull", notationNode); nodeType = (int) notationNode.getNodeType(); assertEquals("nodeNotationNodeTypeAssert1", 12, nodeType); } /**