/libcore/luni/src/main/java/java/text/ |
H A D | FieldPosition.java | 37 private Format.Field attribute; field in class:FieldPosition 47 * Constructs a new {@code FieldPosition} for the given {@code Field} attribute. 49 public FieldPosition(Format.Field attribute) { argument 50 this.attribute = attribute; 55 * Constructs a new {@code FieldPosition} for the given {@code Field} attribute and field id. 57 public FieldPosition(Format.Field attribute, int field) { argument 58 this.attribute = attribute; 72 return field == pos.field && this.attribute [all...] |
H A D | Annotation.java | 21 * Wrapper for a text attribute value which represents an annotation. An 26 * <li>it can not be joined with adjacent annotations even if the text attribute 30 * By wrapping text attribute values into an {@code Annotation}, these aspects 44 * @param attribute the attribute attached to this annotation. This may be 47 public Annotation(Object attribute) { argument 48 value = attribute;
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | ElementGetAttributeNodeNS.java | 11 * namespace URI. Create a new element node and add 2 new attribute nodes to it 13 * Retrieve an attribute using namespace and localname and check its value, name 57 Attr attribute; 71 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", 73 attrValue = attribute.getNodeValue(); 74 attrName = attribute.getName(); 75 attNodeName = attribute.getNodeName(); 76 attrLocalName = attribute.getLocalName(); 77 attrNS = attribute.getNamespaceURI(); 90 Attr attribute; [all...] |
H A D | NamedNodeMapGetNamedItemNS.java | 104 Attr attribute; 112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", 114 attrName = attribute.getNodeName(); 121 Attr attribute; 133 attribute = (Attr) attributes.getNamedItemNS( 135 attrName = attribute.getNodeName(); 142 Attr attribute; 152 attribute = (Attr) attributes.getNamedItemNS( 154 attrName = attribute.getNodeName(); 161 Attr attribute; [all...] |
H A D | ElementHasAttribute.java | 10 * The method hasAttribute returns true when an attribute with a given name is 75 Attr attribute; 79 attribute = doc.createAttribute("domestic"); 82 element.setAttributeNode(attribute); 90 Attr attribute; 94 attribute = doc.createAttribute("domestic"); 95 element.setAttributeNode(attribute);
|
H A D | GetAttributeNodeNS.java | 33 * attribute node by local name and NamespaceURI. 37 * attribute node was retrieved. This attribute value should be null since there 38 * is no such attribute. 80 Attr attribute; 85 attribute = testAddr.getAttributeNodeNS(namespaceURI, localName); 86 assertNull("throw_Null", attribute); 92 Attr attribute; 98 attribute = testAddr.getAttributeNodeNS("http://www.nist.gov", 100 attrName = attribute [all...] |
H A D | ElementRemoveAttributeNS.java | 10 * The method removeAttributeNS removes an attribute by local name and namespace 11 * URI. Create a new element and add a new attribute node to it. Remove the 12 * attribute node using the removeAttributeNodeNS method. Check if the attribute 54 Attr attribute; 58 attribute = doc.createAttributeNS( 60 element.setAttributeNodeNS(attribute);
|
H A D | ElementHasAttributeNS.java | 32 * The method hasAttributeNS returns true when an attribute with a given local 37 * check if it has the xmlns attribute that belongs to the namespace 90 Attr attribute; 94 attribute = doc.createAttributeNS("http://www.w3.org/DOM", "domestic"); 95 element.setAttributeNode(attribute); 103 Attr attribute; 110 attribute = doc.createAttributeNS(nullNS, "domestic"); 111 element.setAttributeNode(attribute);
|
H A D | ElementSetAttributeNodeNS.java | 35 * Testing Element.setAttributeNodeNS: If an attribute with that local name and 37 * new one. Create a new element and two new attribute nodes (in the same 38 * namespace and same localNames). Add the two new attribute nodes to the 40 * attribute is added, check the value of this attribute. 113 Attr attribute; 125 attribute = element.getAttributeNodeNS(nullNS, "street"); 126 attributeCloned = (Attr) attribute.cloneNode(true); 138 Attr attribute; 147 attribute [all...] |
H A D | NamedNodeMapRemoveNamedItemNS.java | 38 * Retreive an attribute node and then remove from the NamedNodeMap. Verify if 39 * the attribute node was actually remove from the node map. 79 Attr attribute; 86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", 88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", 90 assertNull("namednodemapremovenameditemns01", attribute); 98 // Attr attribute; 108 // attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr"); 109 // attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); 110 // attrValue = attribute [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | AttributedCharacterIteratorAttributeTest.java | 37 MyAttribute attribute = new MyAttribute("attribute"); 39 assertEquals("Attribute has wrong name", "attribute", attribute.getExposedName()); 41 attribute = new MyAttribute(null); 42 assertEquals("Attribute has wrong name", null, attribute.getExposedName()); 54 MyAttribute attribute = new MyAttribute("test"); 56 assertTrue(attribute.equals(attribute)); 60 assertFalse(attribute [all...] |
H A D | Support_Format.java | 79 * which stores start and end indexes and an attribute this range has 89 AttributedCharacterIterator.Attribute attribute = it.next(); 90 Object value = iterator.getAttribute(attribute); 91 result.add(new FieldContainer(start, end, attribute, value)); 92 // System.out.println(start + " " + end + ": " + attribute + ", 95 // end +"," + attribute+ "," + value+ "));"); 105 final Attribute attribute; field in class:Support_Format.FieldContainer 109 public FieldContainer(int start, int end, Attribute attribute) { argument 110 this(start, end, attribute, attribute); 114 FieldContainer(int start, int end, Attribute attribute, int value) argument 119 FieldContainer(int start, int end, Attribute attribute, Object value) argument [all...] |
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | documentcreateattributeNS01.java | 34 * The method createAttributeNS creates an attribute of the given qualified name and namespace URI 67 Attr attribute; 75 attribute = doc.createAttributeNS(namespaceURI, qualifiedName); 76 nodeName = attribute.getNodeName(); 77 nodeValue = attribute.getNodeValue();
|
H A D | elementgetattributenodens01.java | 33 * Create a new element node and add 2 new attribute nodes to it that have the same 35 * Retrieve an attribute using namespace and localname and check its value, name and 76 Attr attribute; 88 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); 89 attrValue = attribute.getNodeValue(); 90 attrName = attribute.getName(); 91 attNodeName = attribute.getNodeName(); 92 attrLocalName = attribute.getLocalName(); 93 attrNS = attribute.getNamespaceURI();
|
H A D | nodeissupported02.java | 37 * Call the isSupported method on a new attribute node with a combination of features 68 Attr attribute; 84 attribute = doc.createAttribute("TestAttr"); 87 success = attribute.isSupported(featureXML, version); 89 success = attribute.isSupported(featureXML, version1); 94 success = attribute.isSupported(featureCore, version); 96 success = attribute.isSupported(featureCore, version1); 97 success = attribute.isSupported(featureCore, version2);
|
H A D | elementgetattributenodens02.java | 35 * Create a new element node and add a new attribute node to it. Using the getAttributeNodeNS, 36 * retrieve the newly added attribute node and check its value. 72 Attr attribute; 77 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2", "l2:att"); 78 newAttribute1 = element.setAttributeNodeNS(attribute); 79 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); 80 attrValue = attribute.getNodeValue();
|
H A D | namednodemapgetnameditemns06.java | 35 * of this element into 2 nodemaps. Create a new attribute node and add it to this element. 37 * the newly created attribute from each node map. 75 Attr attribute; 87 attribute = (Attr) attributesMap1.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); 88 attrName = attribute.getNodeName(); 90 attribute = (Attr) attributesMap2.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); 91 attrName = attribute.getNodeName();
|
H A D | namednodemapremovenameditemns02.java | 35 * A removed attribute may be known to have a default value when this map contains the 36 * attributes attached to an element, as returned by the attributes attribute of the Node 37 * interface. If so, an attribute immediately appears containing the default value as well 40 * Retreive a default attribute node. Remove it from the NodeMap. Check if a new one immediately 79 Attr attribute; 88 attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr"); 89 attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); 90 attrValue = attribute.getNodeValue(); 91 assertNotNull("namednodemapremovenameditemns02", attribute);
|
H A D | namednodemapremovenameditemns04.java | 73 Attr attribute; 81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); 82 assertNull("namednodemapremovenameditemns04_1", attribute); 84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); 85 assertNull("namednodemapremovenameditemns04_2", attribute);
|
H A D | elementhasattribute03.java | 34 * The method hasAttribute returns true when an attribute with a given name is specified 36 * Create an element Node and an attribute Node. Invoke hasAttribute method 37 * to verify that there is no attribute. Append the attribute node to the element node. 69 Attr attribute; 73 attribute = doc.createAttribute("domestic"); 76 newAttribute = element.setAttributeNode(attribute);
|
H A D | elementhasattribute04.java | 34 * The method hasAttribute returns true when an attribute with a given name is specified 36 * Create an element Node and an attribute Node and add the attribute node to the element. 68 Attr attribute; 72 attribute = doc.createAttribute("domestic"); 73 newAttribute = element.setAttributeNode(attribute);
|
H A D | getAttributeNodeNS01.java | 35 * attribute node by local name and NamespaceURI. 40 * proper attribute node was retrieved. This attribute 41 * value should be null since there is no such attribute. 73 Attr attribute; 78 attribute = testAddr.getAttributeNodeNS(namespaceURI, localName); 79 assertNull("throw_Null", attribute);
|
H A D | nodesetprefix07.java | 34 * The method setPrefix raises a NAMESPACE_ERR if this node is an attribute and the specified 37 * Create a new attribute node whose namespaceURI is different form "http://www.w3.org/2000/xmlns/" 67 Attr attribute; 69 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Test/L2", "abc:elem"); 74 attribute.setPrefix("xmlns");
|
H A D | nodesetprefix08.java | 34 * The method setPrefix raises a NAMESPACE_ERR if this node is an attribute and the qualifiedName 36 * Retreive an attribute node whose qualifiedName is xmlns. Try setting a prefix on this node. 67 Attr attribute; 71 attribute = element.getAttributeNode("xmlns"); 76 attribute.setPrefix("xml");
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 81 * which stores start and end indexes and an attribute this range 92 AttributedCharacterIterator.Attribute attribute = it.next(); 93 Object value = iterator.getAttribute(attribute); 94 result.add(new FieldContainer(start, end, attribute, value)); 95 // System.out.println(start + " " + end + ": " + attribute + ", 98 // end +"," + attribute+ "," + value+ "));"); 108 AttributedCharacterIterator.Attribute attribute; field in class:Support_Format.FieldContainer 114 AttributedCharacterIterator.Attribute attribute) { 115 this(start, end, attribute, attribute); 113 FieldContainer(int start, int end, AttributedCharacterIterator.Attribute attribute) argument 119 FieldContainer(int start, int end, Attribute attribute, int value) argument 124 FieldContainer(int start, int end, Attribute attribute, Object value) argument [all...] |