/libcore/luni/src/main/java/javax/xml/namespace/ |
NamespaceContext.java | 135 * scope, use {@link #getPrefixes(String namespaceURI)}.</p> 145 * <code>getPrefix(namespaceURI)</code> return value for 188 * @param namespaceURI URI of Namespace to lookup 191 String getPrefix(String namespaceURI); 212 * getPrefixes(namespaceURI)</code> return value for 251 * @param namespaceURI URI of Namespace to lookup 255 Iterator getPrefixes(String namespaceURI);
|
QName.java | 97 private final String namespaceURI; 145 * @param namespaceURI Namespace URI of the <code>QName</code> 148 * @see #QName(String namespaceURI, String localPart, String 149 * prefix) QName(String namespaceURI, String localPart, String 152 public QName(final String namespaceURI, final String localPart) { 153 this(namespaceURI, localPart, XMLConstants.DEFAULT_NS_PREFIX); 189 * @param namespaceURI Namespace URI of the <code>QName</code> 193 public QName(String namespaceURI, String localPart, String prefix) { 196 if (namespaceURI == null) { 197 this.namespaceURI = XMLConstants.NULL_NS_URI [all...] |
/libcore/luni/src/main/java/org/w3c/dom/ |
Element.java | 167 * <code>namespaceURI</code> parameter for methods if they wish to have 169 * @param namespaceURI The namespace URI of the attribute to retrieve. 179 public String getAttributeNS(String namespaceURI, 200 * <code>namespaceURI</code> parameter for methods if they wish to have 202 * @param namespaceURI The namespace URI of the attribute to create or 215 * <code>namespaceURI</code> is <code>null</code>, if the 217 * <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'> 219 * <code>namespaceURI</code> is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if the <code>namespaceURI</code> is "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>" and neither the <code>qualifiedName</code> nor its prefix is "xmlns". 225 public void setAttributeNS(String namespaceURI, [all...] |
NameList.java | 35 * Returns the <code>index</code>th namespaceURI item in the collection. 44 * The number of pairs (name and namespaceURI) in the list. The range of 58 * Test if the pair namespaceURI/name is part of this 60 * @param namespaceURI The namespace URI to look for. 62 * @return <code>true</code> if the pair namespaceURI/name has been 65 public boolean containsNS(String namespaceURI,
|
NamedNodeMap.java | 104 * , applications must use the value null as the namespaceURI parameter 106 * @param namespaceURI The namespace URI of the node to retrieve. 117 public Node getNamedItemNS(String namespaceURI, 122 * Adds a node using its <code>namespaceURI</code> and 127 * , applications must use the value null as the namespaceURI parameter 130 * accessible using the value of its <code>namespaceURI</code> and 164 * , applications must use the value null as the namespaceURI parameter 166 * @param namespaceURI The namespace URI of the node to remove. 172 * <code>namespaceURI</code> and <code>localName</code> in this map. 179 public Node removeNamedItemNS(String namespaceURI, [all...] |
Document.java | 79 * <code>namespaceURI</code> set to <code>null</code>. 150 * <code>prefix</code>, and <code>namespaceURI</code> set to 168 * <code>namespaceURI</code> is <code>null</code>). The DOM Level 2 and 210 * <code>localName</code>, and <code>namespaceURI</code>). As in the 320 * namespaceURI parameter for methods if they wish to have no namespace. 321 * @param namespaceURI The namespace URI of the element to create. 337 * <td valign='top' rowspan='1' colspan='1'><code>Node.namespaceURI</code></td> 339 * <code>namespaceURI</code></td> 365 * prefix and the <code>namespaceURI</code> is <code>null</code>, or 367 * the <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace' [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/ |
XMPSchemaRegistry.java | 59 * @param namespaceURI 69 String registerNamespace(String namespaceURI, String suggestedPrefix) throws XMPException; 79 * @param namespaceURI 84 String getNamespacePrefix(String namespaceURI); 91 * namespaceURI string is not modified if the namespace prefix is not 119 * Does nothing if the URI is not registered, or if the namespaceURI 124 * @param namespaceURI 127 void deleteNamespace(String namespaceURI);
|
/libcore/luni/src/main/java/org/w3c/dom/ls/ |
LSResourceResolver.java | 60 * @param namespaceURI The namespace of the resource being resolved, 76 String namespaceURI,
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
GetAttributeNS.java | 32 * The "getAttributeNS(namespaceURI,localName)" method retrieves an attribute 33 * value by local name and NamespaceURI. 77 // String namespaceURI = "http://www.nist.gov"; 87 // attrValue = testAddr.getAttributeNS(namespaceURI, localName); 91 String namespaceURI = "http://www.nist.gov"; 101 newAttribute = doc.createAttributeNS(namespaceURI, qualifiedName); 108 attrValue = testAddr.getAttributeNS(namespaceURI, localName); 112 String namespaceURI = "http://www.nist.gov"; 122 testAddr.removeAttributeNS(namespaceURI, localName); 123 attrValue = testAddr.getAttributeNS(namespaceURI, localName) [all...] |
CreateAttributeNS.java | 63 String namespaceURI = "http://www.ecommerce.org/"; 72 doc.createAttributeNS(namespaceURI, malformedName); 80 String namespaceURI = null; 90 doc.createAttributeNS(namespaceURI, qualifiedName); 98 String namespaceURI = "http://www.wedding.com/"; 137 doc.createAttributeNS(namespaceURI, qualifiedName); 146 String namespaceURI = "http://www.w3.org/XML/1998/namespaces"; 155 doc.createAttributeNS(namespaceURI, qualifiedName); 163 String namespaceURI = "http://www.ecommerce.org/"; 169 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName) [all...] |
CreateElementNS.java | 34 * The "createElementNS(namespaceURI,qualifiedName)" method for a Document 37 * Invoke method createElementNS(namespaceURI,qualifiedName) on the XMLNS 38 * Document with namespaceURI being the literal string 81 String namespaceURI = "http://www.ecommerce.org/"; 90 doc.createElementNS(namespaceURI, malformedName); 98 String namespaceURI = null; 108 doc.createElementNS(namespaceURI, qualifiedName); 116 String namespaceURI = "http://www.wedding.com/"; 156 doc.createElementNS(namespaceURI, qualifiedName); 165 String namespaceURI = "http://www.w3.org/XML/1998/namespaces" [all...] |
DOMImplementationCreateDocument.java | 61 String namespaceURI = "http://www.w3.org/DOMTest/L2"; 79 newDoc = domImpl.createDocument(namespaceURI, qualifiedName, 88 String namespaceURI = null; 99 domImpl.createDocument(namespaceURI, qualifiedName, docType); 110 String namespaceURI = "http://www.w3.org/xml/1998/namespace"; 120 domImpl.createDocument(namespaceURI, qualifiedName, docType); 131 String namespaceURI = "http://www.w3.org/DOMTest/level2"; 140 domImpl.createDocument(namespaceURI, ":", docType);
|
DocumentCreateElementNS.java | 13 * qualifiedName and NamespaceURI. 16 * namespaceURI and qualifiedName. Check if a valid Element object is returned 58 String namespaceURI = "http://www.w3.org/DOM/Test/level2"; 66 element = doc.createElementNS(namespaceURI, qualifiedName); 82 String namespaceURI = null; 90 doc.createElementNS(namespaceURI, qualifiedName); 100 String namespaceURI = null; 108 doc.createElementNS(namespaceURI, qualifiedName); 122 String namespaceURI = "http://www.w3.org/xml/1998/namespace "; 132 newDoc.createElementNS(namespaceURI, qualifiedName) [all...] |
HasAttributeNS.java | 75 String namespaceURI = "http://www.usa.com"; 83 state = testNode.hasAttributeNS(namespaceURI, localName); 88 String namespaceURI = "http://www.nomatch.com"; 96 state = testNode.hasAttributeNS(namespaceURI, localName); 101 String namespaceURI = "http://www.nist.gov"; 110 state = testNode.hasAttributeNS(namespaceURI, localName); 117 // String namespaceURI = "http://www.nist.gov"; 126 // state = testNode.hasAttributeNS(namespaceURI, localName); 131 String namespaceURI = "http://www.usa.com"; 139 state = testNode.hasAttributeNS(namespaceURI, localName) [all...] |
DocumentCreateAttributeNS.java | 40 * namespaceURI, and a qualifiedName without a prefix. This should return a 82 String namespaceURI = null; 89 attribute = doc.createAttributeNS(namespaceURI, qualifiedName); 109 String namespaceURI; 117 namespaceURI = attribute1.getNamespaceURI(); 125 "http://www.w3.org/XML/1998/namespace", namespaceURI); 132 namespaceURI = attribute2.getNamespaceURI(); 139 "http://www.w3.org/2000/xmlns/", namespaceURI); 144 String namespaceURI = "http://www.w3.org/DOM/Test/Level2"; 164 doc.createAttributeNS(namespaceURI, qualifiedName) [all...] |
SetAttributeNS.java | 34 * The "setAttributeNS(namespaceURI,qualifiedName,Value)" method raises a 80 String namespaceURI = "http://www.nist.gov"; 92 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 101 String namespaceURI = "http://www.nist.gov"; 114 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 125 // String namespaceURI = "www.xyz.com"; 153 // genElement.setAttributeNS(namespaceURI, qualifiedName, 191 String namespaceURI = "http://www.newattr.com"; 202 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 205 namespaceURI, localName) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
ElementImpl.java | 43 String namespaceURI; 49 ElementImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { 51 setNameNS(this, namespaceURI, qualifiedName); 70 private int indexOfAttributeNS(String namespaceURI, String localName) { 73 if (Objects.equal(namespaceURI, attr.getNamespaceURI()) 92 public String getAttributeNS(String namespaceURI, String localName) { 93 Attr attr = getAttributeNodeNS(namespaceURI, localName); 112 public AttrImpl getAttributeNodeNS(String namespaceURI, String localName) { 113 int i = indexOfAttributeNS(namespaceURI, localName); 167 public NodeList getElementsByTagNameNS(String namespaceURI, String localName) [all...] |
AttrImpl.java | 42 String namespaceURI; 48 AttrImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { 50 setNameNS(this, namespaceURI, qualifiedName); 71 return namespaceURI; 107 this.prefix = validatePrefix(prefix, namespaceAware, namespaceURI);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
documentcreateattributeNS02.java | 37 * namespaceURI, and a qualifiedName as below. This should return a valid Attr node. 72 String namespaceURI; 79 namespaceURI = attribute1.getNamespaceURI(); 84 assertEquals("documentcreateattributeNS02_att1_namespaceURI", "http://www.w3.org/XML/1998/namespace", namespaceURI); 90 namespaceURI = attribute2.getNamespaceURI(); 94 assertEquals("documentcreateattributeNS02_att2_namespaceURI", "http://www.w3.org/2000/xmlns/", namespaceURI);
|
getAttributeNS03.java | 34 * The "getAttributeNS(namespaceURI,localName)" method retrieves an 35 * attribute value by local name and NamespaceURI. 67 String namespaceURI = "http://www.nist.gov"; 77 testAddr.removeAttributeNS(namespaceURI, localName); 78 attrValue = testAddr.getAttributeNS(namespaceURI, localName);
|
getAttributeNS04.java | 34 * The "getAttributeNS(namespaceURI,localName)" method retrieves an 35 * attribute value by local name and NamespaceURI. 68 String namespaceURI = "http://www.nist.gov"; 78 newAttribute = doc.createAttributeNS(namespaceURI, qualifiedName); 82 testAddr.setAttributeNS(namespaceURI, qualifiedName, "NewValue"); 83 attrValue = testAddr.getAttributeNS(namespaceURI, localName);
|
setAttributeNS09.java | 34 * The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute. 71 String namespaceURI = "http://www.newattr.com"; 85 ((Element) /*Node */testAddr).setAttributeNS(namespaceURI, qualifiedName, "newValue"); 86 addrAttr = ((Element) /*Node */testAddr).getAttributeNodeNS(namespaceURI, localName); 87 resultAttr = ((Element) /*Node */testAddr).getAttributeNS(namespaceURI, localName);
|
createAttributeNS01.java | 34 * The "createAttributeNS(namespaceURI,qualifiedName)" method for a 38 * Invoke method createAttributeNS(namespaceURI,qualifiedName) on 39 * the XMLNS Document with namespaceURI being "http://www.ecommerce.org/", 70 String namespaceURI = "http://www.ecommerce.org/"; 79 newAttr = doc.createAttributeNS(namespaceURI, malformedName);
|
createAttributeNS02.java | 34 * The "createAttributeNS(namespaceURI,qualifiedName)" method for a 36 * if qualifiedName has a prefix and namespaceURI is null. 38 * Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document 39 * with namespaceURI being null and qualifiedName contains the prefix "person". 69 String namespaceURI = null; 79 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName);
|
createAttributeNS04.java | 34 * The "createAttributeNS(namespaceURI,qualifiedName)" method for a 36 * if qualifiedName has the "xml" prefix and namespaceURI is different 39 * Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document 40 * with qualifiedName being "xml:attr1 and namespaceURI equals 72 String namespaceURI = "http://www.w3.org/XML/1998/namespaces"; 81 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName);
|