/** * @since SAAJ 1.2 * @param offset * @param count * @param arg * @throws DOMException */ public void replaceData(int offset, int count, String arg) throws DOMException { textRep.replaceData(offset, count, arg); }
/** * @since SAAJ 1.2 * @param offset * @param count * @param arg * @throws DOMException */ public void replaceData(int offset, int count, String arg) throws DOMException { textRep.replaceData(offset, count, arg); }
/** * @since SAAJ 1.2 * @param offset * @param count * @param arg * @throws DOMException */ public void replaceData(int offset, int count, String arg) throws DOMException { textRep.replaceData(offset, count, arg); }
@Override public void replaceData(int offset, int count, String arg) throws DOMException { domNode.replaceData(offset, count, arg); }
/** * Replace the characters starting at the specified 16-bit unit offset with the specified * string. * * @param offset The offset from which to start replacing. * @param count The number of 16-bit units to replace. If the sum of <code>offset</code> and * <code>count</code> exceeds <code>length</code>, then all 16-bit units to the * end of the data are replaced; (i.e., the effect is the same as a * <code>remove</code> method call with the same range, followed by an * <code>append</code> method invocation). * @param data The <code>DOMString</code> with which the range must be replaced. * @throws DOMException INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is negative * or greater than the number of 16-bit units in <code>data</code>, or if * the specified <code>count</code> is negative. <br>NO_MODIFICATION_ALLOWED_ERR: * Raised if this node is readonly. */ public void replaceData(int offset, int count, String data) throws DOMException { target.replaceData(offset, count, data); }
/** * Replace the characters starting at the specified 16-bit unit offset with the specified * string. * * @param offset The offset from which to start replacing. * @param count The number of 16-bit units to replace. If the sum of <code>offset</code> and * <code>count</code> exceeds <code>length</code>, then all 16-bit units to the * end of the data are replaced; (i.e., the effect is the same as a * <code>remove</code> method call with the same range, followed by an * <code>append</code> method invocation). * @param data The <code>DOMString</code> with which the range must be replaced. * @throws DOMException INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is negative * or greater than the number of 16-bit units in <code>data</code>, or if * the specified <code>count</code> is negative. <br>NO_MODIFICATION_ALLOWED_ERR: * Raised if this node is readonly. */ public void replaceData(int offset, int count, String data) throws DOMException { target.replaceData(offset, count, data); }
public void replaceData(int offset, int count, String arg) throws DOMException { try { _delegate.replaceData(offset, count, arg); } catch (org.w3c.dom.DOMException ex) { throw wrap(ex); } }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); { boolean success = false; try { child.replaceData(40, 3, "ABC"); } catch (DOMException ex) { success = (ex.code == DOMException.INDEX_SIZE_ERR); } assertTrue("throw_INDEX_SIZE_ERR", success); } } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); { boolean success = false; try { child.replaceData(10, -3, "ABC"); } catch (DOMException ex) { success = (ex.code == DOMException.INDEX_SIZE_ERR); } assertTrue("throws_INDEX_SIZE_ERR", success); } } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); { boolean success = false; try { child.replaceData(-5, 3, "ABC"); } catch (DOMException ex) { success = (ex.code == DOMException.INDEX_SIZE_ERR); } assertTrue("throws_INDEX_SIZE_ERR", success); } } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 4, "260030"); childData = child.getData(); assertEquals("characterdataReplaceDataExceedsLengthOfArgAssert", "260030 North Ave. Dallas, Texas 98551", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(30, 5, "98665"); childData = child.getData(); assertEquals("characterdataReplaceDataEndAssert", "1230 North Ave. Dallas, Texas 98665", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 50, "2600"); childData = child.getData(); assertEquals("characterdataReplaceDataExceedsLengthOfDataAssert", "2600", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 4, "2500"); childData = child.getData(); assertEquals("characterdataReplaceDataBeginingAssert", "2500 North Ave. Dallas, Texas 98551", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(5, 5, "South"); childData = child.getData(); assertEquals("characterdataReplaceDataMiddleAssert", "1230 South Ave. Dallas, Texas 98551", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 50, "2600"); childData = child.getData(); assertEquals("characterdataReplaceDataExceedsLengthOfDataAssert", "2600", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(30, 5, "98665"); childData = child.getData(); assertEquals("characterdataReplaceDataEndAssert", "1230 North Ave. Dallas, Texas 98665", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(5, 5, "South"); childData = child.getData(); assertEquals("characterdataReplaceDataMiddleAssert", "1230 South Ave. Dallas, Texas 98551", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("address"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 4, "260030"); childData = child.getData(); assertEquals("characterdataReplaceDataExceedsLengthOfArgAssert", "260030 North Ave. Dallas, Texas 98551", childData); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("acronym"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.replaceData(0, 4, "2500"); childData = child.getData(); assertEquals("characterdataReplaceDataBeginingAssert", "2500 North Ave. Dallas, Texas 98551", childData); } /**