Home
last modified time | relevance | path

Searched refs:localName (Results 1 – 25 of 64) sorted by relevance

123

/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatAttributes.java77 public int getIndex(String uri, String localName) { in getIndex() argument
81 if (localName == null) { in getIndex()
88 return getIndex(pointer, uri, localName); in getIndex()
102 public String getType(String uri, String localName) { in getType() argument
106 if (localName == null) { in getType()
109 return getIndex(uri, localName) == -1 ? null : CDATA; in getType()
116 public String getValue(String uri, String localName) { in getValue() argument
120 if (localName == null) { in getValue()
127 return getValue(pointer, uri, localName); in getValue()
145 private static native int getIndex(long attributePointer, String uri, String localName); in getIndex() argument
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DElementImpl.java45 String localName; field in ElementImpl
70 private int indexOfAttributeNS(String namespaceURI, String localName) { in indexOfAttributeNS() argument
74 && Objects.equal(localName, attr.getLocalName())) { in indexOfAttributeNS()
92 public String getAttributeNS(String namespaceURI, String localName) { in getAttributeNS() argument
93 Attr attr = getAttributeNodeNS(namespaceURI, localName); in getAttributeNS()
112 public AttrImpl getAttributeNodeNS(String namespaceURI, String localName) { in getAttributeNodeNS() argument
113 int i = indexOfAttributeNS(namespaceURI, localName); in getAttributeNodeNS()
167 public NodeList getElementsByTagNameNS(String namespaceURI, String localName) { in getElementsByTagNameNS() argument
169 getElementsByTagNameNS(result, namespaceURI, localName); in getElementsByTagNameNS()
175 return namespaceAware ? localName : null; in getLocalName()
[all …]
DAttrImpl.java44 String localName; field in AttrImpl
60 return namespaceAware ? localName : null; in getLocalName()
65 ? prefix + ":" + localName in getName()
66 : localName; in getName()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DLocalName.java60 String localName; in testGetLocalName1() local
66 localName = addrAttr.getLocalName(); in testGetLocalName1()
67 assertEquals("localName", "domestic", localName); in testGetLocalName1()
72 String localName; in testGetLocalName2() local
75 localName = createdNode.getLocalName(); in testGetLocalName2()
76 assertNull("localNameNull", localName); in testGetLocalName2()
83 String localName; in testGetLocalName3() local
88 localName = textNode.getLocalName(); in testGetLocalName3()
89 assertNull("textNodeLocalName", localName); in testGetLocalName3()
DHasAttributeNS.java74 String localName = "nomatch"; in testHasAttributeNS1() local
83 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS1()
87 String localName = "domestic"; in testHasAttributeNS2() local
96 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS2()
100 String localName = "blank"; in testHasAttributeNS3() local
110 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS3()
130 String localName = "domestic"; in testHasAttributeNS5() local
139 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS5()
DGetAttributeNS.java92 String localName = "district"; in testGetAttributeNS2() local
108 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS2()
113 String localName = "domestic"; in testGetAttributeNS3() local
122 testAddr.removeAttributeNS(namespaceURI, localName); in testGetAttributeNS3()
123 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS3()
128 String localName = "blank"; in testGetAttributeNS4() local
142 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS4()
/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java40 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces()
43 assertEquals("", localName); in testNoPrefixesNoNamespaces()
53 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces()
56 assertEquals("", localName); in testNoPrefixesNoNamespaces()
68 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces()
71 assertEquals("foo", localName); in testNoPrefixesYesNamespaces()
81 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces()
84 assertEquals("foo", localName); in testNoPrefixesYesNamespaces()
100 @Override public void startElement(String uri, String localName, in testYesPrefixesYesNamespaces()
103 assertEquals("foo", localName); in testYesPrefixesYesNamespaces()
[all …]
DExpatSaxParserTest.java64 public void startElement(String uri, String localName, in testExceptions()
78 public void endElement(String uri, String localName, in testExceptions()
140 public void startElement(String uri, String localName, String qName, in startElement() argument
144 this.startElementName = localName; in startElement()
156 public void endElement(String uri, String localName, String qName) in endElement() argument
159 this.endElementName = localName; in endElement()
228 public void startElement(String uri, String localName, String qName, in startElement() argument
231 if (localName == "one") { in startElement()
258 if (localName == "two") { in startElement()
296 public void endElement(String uri, String localName, String qName) in endElement() argument
[all …]
/libcore/luni/src/main/java/org/w3c/dom/
DElement.java180 String localName) in getAttributeNS() argument
255 String localName) in removeAttributeNS() argument
276 String localName) in getAttributeNodeNS() argument
325 String localName) in getElementsByTagNameNS() argument
360 String localName) in hasAttributeNS() argument
413 String localName, in setIdAttributeNS() argument
DNamedNodeMap.java118 String localName) in getNamedItemNS() argument
180 String localName) in removeNamedItemNS() argument
/libcore/luni/src/main/java/org/xml/sax/ext/
DAttributes2Impl.java95 public boolean isDeclared (String uri, String localName) in isDeclared() argument
97 int index = getIndex (uri, localName); in isDeclared()
101 "No such attribute: local=" + localName in isDeclared()
149 public boolean isSpecified (String uri, String localName) in isSpecified() argument
151 int index = getIndex (uri, localName); in isSpecified()
155 "No such attribute: local=" + localName in isSpecified()
240 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument
243 super.addAttribute (uri, localName, qName, type, value); in addAttribute()
DAttributes2.java88 public boolean isDeclared (String uri, String localName); in isDeclared() argument
119 public boolean isSpecified (String uri, String localName); in isSpecified() argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java199 public int getIndex (String uri, String localName) in getIndex() argument
203 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex()
240 public String getType (String uri, String localName) in getType() argument
244 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType()
282 public String getValue (String uri, String localName) in getValue() argument
286 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getValue()
379 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument
384 data[length*5+1] = localName; in addAttribute()
413 public void setAttribute (int index, String uri, String localName, in setAttribute() argument
418 data[index*5+1] = localName; in setAttribute()
[all …]
/libcore/luni/src/main/java/org/xml/sax/
DAttributes.java184 public int getIndex (String uri, String localName); in getIndex() argument
210 public abstract String getType (String uri, String localName); in getType() argument
239 public abstract String getValue (String uri, String localName); in getValue() argument
DContentHandler.java257 public void startElement (String uri, String localName, in startElement() argument
283 public void endElement (String uri, String localName, in endElement() argument
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DlocalName02.java70 String localName; in runTest() local
73 localName = createdNode.getLocalName(); in runTest()
74 assertNull("localNameNull", localName); in runTest()
DlocalName03.java72 String localName; in runTest() local
77 localName = textNode.getLocalName(); in runTest()
78 assertNull("textNodeLocalName", localName); in runTest()
DgetAttributeNS03.java68 String localName = "domestic"; in runTest() local
77 testAddr.removeAttributeNS(namespaceURI, localName); in runTest()
78 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in runTest()
DdocumentcreateelementNS01.java84 String localName; in runTest() local
91 localName = element.getLocalName(); in runTest()
96 assertEquals("documentcreateelementNS01_localName", "XML", localName); in runTest()
DlocalName01.java78 String localName; in runTest() local
84 localName = addrAttr.getLocalName(); in runTest()
85 assertEquals("localName", "domestic", localName); in runTest()
DsetAttributeNS09.java70 String localName = "newAttr"; in runTest() local
86 addrAttr = ((Element) /*Node */testAddr).getAttributeNodeNS(namespaceURI, localName); in runTest()
87 resultAttr = ((Element) /*Node */testAddr).getAttributeNS(namespaceURI, localName); in runTest()
DremoveAttributeNS02.java85 String localName; in runTest() local
96 localName = addrAttr.getLocalName(); in runTest()
100 assertEquals("lname", "local1", localName); in runTest()
DgetElementsByTagNameNS01.java68 String localName = "*"; in runTest() local
72 newList = doc.getElementsByTagNameNS(namespaceURI, localName); in runTest()
DgetElementsByTagNameNS05.java70 String localName = "nomatch"; in runTest() local
74 elementList = doc.getElementsByTagNameNS(namespaceURI, localName); in runTest()
DhasAttributeNS02.java66 String localName = "domestic"; in runTest() local
75 state = testNode.hasAttributeNS(namespaceURI, localName); in runTest()

123