Searched refs:attribute (Results 1 - 25 of 81) sorted by relevance

1234

/libcore/luni/src/main/java/java/text/
H A DFieldPosition.java37 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 DAnnotation.java21 * 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 DElementGetAttributeNodeNS.java11 * 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 DNamedNodeMapGetNamedItemNS.java104 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 DElementHasAttribute.java10 * 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 DGetAttributeNodeNS.java33 * 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 DElementRemoveAttributeNS.java10 * 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 DElementHasAttributeNS.java32 * 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 DElementSetAttributeNodeNS.java35 * 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 DNamedNodeMapRemoveNamedItemNS.java38 * 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 DAttributedCharacterIteratorAttributeTest.java37 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 DSupport_Format.java79 * 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 DdocumentcreateattributeNS01.java34 * 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 Delementgetattributenodens01.java33 * 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 Dnodeissupported02.java37 * 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 Delementgetattributenodens02.java35 * 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 Dnamednodemapgetnameditemns06.java35 * 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 Dnamednodemapremovenameditemns02.java35 * 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 Dnamednodemapremovenameditemns04.java73 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 Delementhasattribute03.java34 * 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 Delementhasattribute04.java34 * 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 DgetAttributeNodeNS01.java35 * 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 Dnodesetprefix07.java34 * 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 Dnodesetprefix08.java34 * 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 DSupport_Format.java81 * 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...]

Completed in 389 milliseconds

1234