Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 164) sorted by relevance

1234567

/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java96 private Format.Field attribute; field in FieldPosition
122 public FieldPosition(Format.Field attribute) { in FieldPosition() argument
123 this(attribute, -1); in FieldPosition()
142 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition() argument
143 this.attribute = attribute; in FieldPosition()
156 return attribute; in getFieldAttribute()
226 if (attribute == null) { in equals()
227 if (other.attribute != null) { in equals()
231 else if (!attribute.equals(other.attribute)) { in equals()
253 "[field=" + field + ",attribute=" + attribute + in toString()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DElementGetAttributeNodeNS.java57 Attr attribute; in testGetAttributeNodeNS1() local
71 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS1()
73 attrValue = attribute.getNodeValue(); in testGetAttributeNodeNS1()
74 attrName = attribute.getName(); in testGetAttributeNodeNS1()
75 attNodeName = attribute.getNodeName(); in testGetAttributeNodeNS1()
76 attrLocalName = attribute.getLocalName(); in testGetAttributeNodeNS1()
77 attrNS = attribute.getNamespaceURI(); in testGetAttributeNodeNS1()
90 Attr attribute; in testGetAttributeNodeNS2() local
95 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS2()
97 element.setAttributeNodeNS(attribute); in testGetAttributeNodeNS2()
[all …]
DNamedNodeMapRemoveNamedItemNS.java79 Attr attribute; in testRemoveNamedItemNS1() local
86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1()
88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1()
90 assertNull("namednodemapremovenameditemns01", attribute); in testRemoveNamedItemNS1()
119 Attr attribute; in testRemoveNamedItemNS3() local
133 attribute = (Attr) attributes.removeNamedItemNS( in testRemoveNamedItemNS3()
135 attribute = (Attr) attributes.getNamedItemNS( in testRemoveNamedItemNS3()
137 nodeName = attribute.getNodeName(); in testRemoveNamedItemNS3()
144 Attr attribute; in _testRemoveNamedItemNS4() local
152 attribute = (Attr) attributes.getNamedItemNS( in _testRemoveNamedItemNS4()
[all …]
DElementSetAttributeNodeNS.java113 Attr attribute; in testSetAttributeNodeNS2() local
125 attribute = element.getAttributeNodeNS(nullNS, "street"); in testSetAttributeNodeNS2()
126 attributeCloned = (Attr) attribute.cloneNode(true); in testSetAttributeNodeNS2()
138 Attr attribute; in testSetAttributeNodeNS3() local
147 attribute = element1.getAttributeNodeNS(nullNS, "street"); in testSetAttributeNodeNS3()
153 element2.setAttributeNodeNS(attribute); in testSetAttributeNodeNS3()
164 Attr attribute; in testSetAttributeNodeNS4() local
169 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Test", "attr"); in testSetAttributeNodeNS4()
170 element1.setAttributeNodeNS(attribute); in testSetAttributeNodeNS4()
175 element2.setAttributeNodeNS(attribute); in testSetAttributeNodeNS4()
[all …]
DNamedNodeMapGetNamedItemNS.java104 Attr attribute; in testGetNamedItemNS2() local
112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testGetNamedItemNS2()
114 attrName = attribute.getNodeName(); in testGetNamedItemNS2()
121 Attr attribute; in testGetNamedItemNS3() local
133 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS3()
135 attrName = attribute.getNodeName(); in testGetNamedItemNS3()
142 Attr attribute; in testGetNamedItemNS4() local
152 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS4()
154 attrName = attribute.getNodeName(); in testGetNamedItemNS4()
161 Attr attribute; in testGetNamedItemNS5() local
[all …]
DElementSetAttributeNS.java58 Attr attribute; in testSetAttributeNS1() local
65 attribute = element.getAttributeNodeNS( in testSetAttributeNS1()
67 attrName = attribute.getNodeName(); in testSetAttributeNS1()
68 attrValue = attribute.getNodeValue(); in testSetAttributeNS1()
75 Attr attribute; in testSetAttributeNS2() local
84 attribute = element.getAttributeNodeNS( in testSetAttributeNS2()
86 attrName = attribute.getNodeName(); in testSetAttributeNS2()
87 attrValue = attribute.getNodeValue(); in testSetAttributeNS2()
96 Attr attribute; in testSetAttributeNS3() local
108 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/1", in testSetAttributeNS3()
[all …]
DGetAttributeNodeNS.java80 Attr attribute; in testGetAttributeNodeNS1() local
85 attribute = testAddr.getAttributeNodeNS(namespaceURI, localName); in testGetAttributeNodeNS1()
86 assertNull("throw_Null", attribute); in testGetAttributeNodeNS1()
92 Attr attribute; in testGetAttributeNodeNS2() local
98 attribute = testAddr.getAttributeNodeNS("http://www.nist.gov", in testGetAttributeNodeNS2()
100 attrName = attribute.getNodeName(); in testGetAttributeNodeNS2()
DElementHasAttribute.java75 Attr attribute; in testHasAttribute3() local
79 attribute = doc.createAttribute("domestic"); in testHasAttribute3()
82 element.setAttributeNode(attribute); in testHasAttribute3()
90 Attr attribute; in testHasAttribute4() local
94 attribute = doc.createAttribute("domestic"); in testHasAttribute4()
95 element.setAttributeNode(attribute); in testHasAttribute4()
DElementHasAttributeNS.java90 Attr attribute; in testHasAttributeNS2() local
94 attribute = doc.createAttributeNS("http://www.w3.org/DOM", "domestic"); in testHasAttributeNS2()
95 element.setAttributeNode(attribute); in testHasAttributeNS2()
103 Attr attribute; in testHasAttributeNS3() local
110 attribute = doc.createAttributeNS(nullNS, "domestic"); in testHasAttributeNS3()
111 element.setAttributeNode(attribute); in testHasAttributeNS3()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedCharacterIteratorAttributeTest.java37 MyAttribute attribute = new MyAttribute("attribute"); in test_constructor() local
39 assertEquals("Attribute has wrong name", "attribute", attribute.getExposedName()); in test_constructor()
41 attribute = new MyAttribute(null); in test_constructor()
42 assertEquals("Attribute has wrong name", null, attribute.getExposedName()); in test_constructor()
54 MyAttribute attribute = new MyAttribute("test"); in test_equals() local
56 assertTrue(attribute.equals(attribute)); in test_equals()
60 assertFalse(attribute.equals(new MyAttribute("test"))); in test_equals()
62 attribute = new MyAttribute(null); in test_equals()
63 assertFalse(attribute.equals(new MyAttribute(null))); in test_equals()
79 MyAttribute attribute; in test_readResolve() local
[all …]
DSupport_Format.java89 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields() local
90 Object value = iterator.getAttribute(attribute); in findFields()
91 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
105 final Attribute attribute; field in Support_Format.FieldContainer
109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer() argument
110 this(start, end, attribute, attribute); in FieldContainer()
114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
115 this(start, end, attribute, new Integer(value)); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, Object value) { in FieldContainer() argument
122 this.attribute = attribute; in FieldContainer()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Format.java92 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields() local
93 Object value = iterator.getAttribute(attribute); in findFields()
94 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
108 AttributedCharacterIterator.Attribute attribute; field in Support_Format.FieldContainer
114 AttributedCharacterIterator.Attribute attribute) { in FieldContainer() argument
115 this(start, end, attribute, attribute); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
120 this(start, end, attribute, new Integer(value)); in FieldContainer()
124 public FieldContainer(int start, int end, Attribute attribute, in FieldContainer() argument
128 this.attribute = attribute; in FieldContainer()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DFileOwnerAttributeViewImpl.java28 import java.nio.file.attribute.*;
61 public void setAttribute(String attribute, Object value) in setAttribute() argument
64 if (attribute.equals(OWNER_NAME)) { in setAttribute()
68 attribute + "' not recognized"); in setAttribute()
75 for (String attribute: attributes) { in readAttributes()
76 if (attribute.equals("*") || attribute.equals(OWNER_NAME)) { in readAttributes()
80 attribute + "' not recognized"); in readAttributes()
DAbstractFileSystemProvider.java45 private static String[] split(String attribute) { in split() argument
47 int pos = attribute.indexOf(':'); in split()
50 s[1] = attribute; in split()
52 s[0] = attribute.substring(0, pos++); in split()
53 s[1] = (pos == attribute.length()) ? "" : attribute.substring(pos); in split()
68 String attribute, in setAttribute() argument
73 String[] s = split(attribute); in setAttribute()
75 throw new IllegalArgumentException(attribute); in setAttribute()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Delementgetattributenodens01.java76 Attr attribute; in runTest() local
88 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); in runTest()
89 attrValue = attribute.getNodeValue(); in runTest()
90 attrName = attribute.getName(); in runTest()
91 attNodeName = attribute.getNodeName(); in runTest()
92 attrLocalName = attribute.getLocalName(); in runTest()
93 attrNS = attribute.getNamespaceURI(); in runTest()
Dnodeissupported02.java68 Attr attribute; in runTest() local
84 attribute = doc.createAttribute("TestAttr"); in runTest()
87 success = attribute.isSupported(featureXML, version); in runTest()
89 success = attribute.isSupported(featureXML, version1); in runTest()
94 success = attribute.isSupported(featureCore, version); in runTest()
96 success = attribute.isSupported(featureCore, version1); in runTest()
97 success = attribute.isSupported(featureCore, version2); in runTest()
Delementgetattributenodens02.java72 Attr attribute; in runTest() local
77 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2", "l2:att"); in runTest()
78 newAttribute1 = element.setAttributeNodeNS(attribute); in runTest()
79 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); in runTest()
80 attrValue = attribute.getNodeValue(); in runTest()
Dnamednodemapremovenameditemns04.java73 Attr attribute; in runTest() local
81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest()
82 assertNull("namednodemapremovenameditemns04_1", attribute); in runTest()
84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest()
85 assertNull("namednodemapremovenameditemns04_2", attribute); in runTest()
Dnamednodemapremovenameditemns02.java79 Attr attribute; in runTest() local
88 attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr"); in runTest()
89 attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); in runTest()
90 attrValue = attribute.getNodeValue(); in runTest()
91 assertNotNull("namednodemapremovenameditemns02", attribute); in runTest()
Dnamednodemapgetnameditemns06.java75 Attr attribute; in runTest() local
87 attribute = (Attr) attributesMap1.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); in runTest()
88 attrName = attribute.getNodeName(); in runTest()
90 attribute = (Attr) attributesMap2.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); in runTest()
91 attrName = attribute.getNodeName(); in runTest()
DdocumentcreateattributeNS01.java67 Attr attribute; in runTest() local
75 attribute = doc.createAttributeNS(namespaceURI, qualifiedName); in runTest()
76 nodeName = attribute.getNodeName(); in runTest()
77 nodeValue = attribute.getNodeValue(); in runTest()
Delementsetattributens01.java73 Attr attribute; in runTest() local
79 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/setAttributeNS", "attr"); in runTest()
80 attrName = attribute.getNodeName(); in runTest()
81 attrValue = attribute.getNodeValue(); in runTest()
Dnamednodemapremovenameditemns01.java73 Attr attribute; in runTest() local
79 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", "domestic"); in runTest()
80 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", "domestic"); in runTest()
81 assertNull("namednodemapremovenameditemns01", attribute); in runTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java250 Attributes attribute = new Attributes(); in test_putLjava_lang_ObjectLjava_lang_Object_Null() local
252 assertFalse(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
253 assertFalse(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
254 attribute.put(null, null); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
255 attribute.put(null, null); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
256 assertEquals(1, attribute.size()); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
257 assertTrue(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
258 assertTrue(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
259 assertNull(attribute.get(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
262 attribute.put(null, value); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/attribute/
DAclEntryTest.java17 package libcore.java.nio.file.attribute;
23 import java.nio.file.attribute.AclEntry;
24 import java.nio.file.attribute.UserPrincipal;
25 import java.nio.file.attribute.AclEntryType;
26 import java.nio.file.attribute.AclEntryPermission;
27 import java.nio.file.attribute.AclEntryFlag;

1234567