org.w3c.domts.level2.core
Class setAttributeNS05
java.lang.Object
org.w3c.domts.DOMTest
org.w3c.domts.DOMTestCase
org.w3c.domts.level2.core.setAttributeNS05
- public final class setAttributeNS05
- extends DOMTestCase
The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute.
If an attribute with the same local name and namespace URI is already present
on the element, its prefix is changed to be the prefix part of the "qualifiedName",
and its vale is changed to be the "value" paramter.
null value if no previously existing Attr node with the
same name was replaced.
Add a new attribute to the "emp:address" element.
Check to see if the new attribute has been successfully added to the document.
The new attribute "" contains markup and therefore is escaped
by the implementation.
- See Also:
- http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAttrNS
Method Summary |
java.lang.String |
getTargetURI()
Gets URI that identifies the test. |
static void |
main(java.lang.String[] args)
Runs this test from the command line. |
void |
runTest()
Runs the test case. |
Methods inherited from class org.w3c.domts.DOMTestCase |
assertEqualAutoCase, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsAutoCase, assertEqualsAutoCase, assertEqualsIgnoreCase, assertEqualsIgnoreCase, assertEqualsIgnoreCase, assertFalse, assertFalse, assertInstanceOf, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEqualsAutoCase, assertNotEqualsIgnoreCase, assertNotNull, assertNull, assertSame, assertSize, assertSize, assertSize, assertTrue, assertTrue, assertURIEquals, doMain, equals, equals, equals, equals, equals, equalsAutoCase, equalsAutoCase, equalsAutoCase, equalsIgnoreCase, equalsIgnoreCase, equalsIgnoreCase, fail, same, setFramework, size, size, size, wait |
Methods inherited from class org.w3c.domts.DOMTest |
createStream, createTempURI, createXPathEvaluator, getContentType, getFactory, getImplementation, getMutationCount, getResourceURI, hasFeature, hasSetting, isCoalescing, isExpandEntityReferences, isHasNullString, isIgnoringElementContentWhitespace, isNamespaceAware, isSigned, isValidating, load, preload, setFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setAttributeNS05
public setAttributeNS05(DOMTestDocumentBuilderFactory factory)
throws DOMTestIncompatibleException
- Constructor.
- Parameters:
factory
- document factory, may not be null
- Throws:
DOMTestIncompatibleException
- Thrown if test is not compatible with parser configuration
runTest
public void runTest()
throws java.lang.Throwable
- Runs the test case.
- Specified by:
runTest
in class DOMTestCase
- Throws:
java.lang.Throwable
- Any uncaught exception causes test to fail
getTargetURI
public java.lang.String getTargetURI()
- Gets URI that identifies the test.
- Specified by:
getTargetURI
in class DOMTest
- Returns:
- uri identifier of test
main
public static void main(java.lang.String[] args)
- Runs this test from the command line.
- Parameters:
args
- command line arguments