Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 82) sorted by relevance

1234

/libcore/luni/src/main/java/org/xml/sax/helpers/
DNamespaceSupport.java292 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument
294 if (prefix.equals("xml") || prefix.equals("xmlns")) { in declarePrefix()
297 currentContext.declarePrefix(prefix, uri); in declarePrefix()
370 public String getURI (String prefix) in getURI() argument
372 return currentContext.getURI(prefix); in getURI()
448 String prefix = (String) allPrefixes.nextElement(); in getPrefixes() local
449 if (uri.equals(getURI(prefix))) { in getPrefixes()
450 prefixes.add(prefix); in getPrefixes()
597 void declarePrefix(String prefix, String uri) { in declarePrefix() argument
609 prefix = prefix.intern(); in declarePrefix()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DAttrImpl.java43 String prefix; field in AttrImpl
64 return prefix != null in getName()
65 ? prefix + ":" + localName in getName()
94 return prefix; in getPrefix()
106 public void setPrefix(String prefix) { in setPrefix() argument
107 this.prefix = validatePrefix(prefix, namespaceAware, namespaceURI); in setPrefix()
DNodeImpl.java194 public void setPrefix(String prefix) throws DOMException { in setPrefix() argument
203 static String validatePrefix(String prefix, boolean namespaceAware, String namespaceURI) { in validatePrefix() argument
205 throw new DOMException(DOMException.NAMESPACE_ERR, prefix); in validatePrefix()
208 if (prefix != null) { in validatePrefix()
210 || !DocumentImpl.isXMLIdentifier(prefix) in validatePrefix()
211 … || "xml".equals(prefix) && !"http://www.w3.org/XML/1998/namespace".equals(namespaceURI) in validatePrefix()
212 … || "xmlns".equals(prefix) && !"http://www.w3.org/2000/xmlns/".equals(namespaceURI)) { in validatePrefix()
213 throw new DOMException(DOMException.NAMESPACE_ERR, prefix); in validatePrefix()
217 return prefix; in validatePrefix()
233 String prefix = null; in setNameNS() local
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DDistributionPoint.java82 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
83 sb.append(prefix); in dumpValue()
86 distributionPoint.dumpValue(sb, prefix + " "); in dumpValue()
89 reasons.dumpValue(sb, prefix + " "); in dumpValue()
92 sb.append(prefix); in dumpValue()
94 cRLIssuer.dumpValue(sb, prefix + " "); in dumpValue()
95 sb.append(prefix); in dumpValue()
98 sb.append(prefix); in dumpValue()
DAuthorityKeyIdentifier.java108 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
109 sb.append(prefix).append("AuthorityKeyIdentifier [\n"); in dumpValue()
111 sb.append(prefix).append(" keyIdentifier:\n"); in dumpValue()
112 sb.append(Array.toString(keyIdentifier, prefix + " ")); in dumpValue()
115 sb.append(prefix).append(" authorityCertIssuer: [\n"); in dumpValue()
116 authorityCertIssuer.dumpValue(sb, prefix + " "); in dumpValue()
117 sb.append(prefix).append(" ]\n"); in dumpValue()
120 sb.append(prefix).append(" authorityCertSerialNumber: "); in dumpValue()
123 sb.append(prefix).append("]\n"); in dumpValue()
DAlternativeName.java62 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
63 sb.append(prefix).append((which) ? "Subject" : "Issuer").append(" Alternative Names [\n"); in dumpValue()
64 alternativeNames.dumpValue(sb, prefix + " "); in dumpValue()
65 sb.append(prefix).append("]\n"); in dumpValue()
DGeneralSubtree.java86 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
87 sb.append(prefix).append("General Subtree: [\n"); in dumpValue()
88 sb.append(prefix).append(" base: ").append(base).append('\n'); in dumpValue()
89 sb.append(prefix).append(" minimum: ").append(minimum).append('\n'); in dumpValue()
91 sb.append(prefix).append(" maximum: ").append(maximum).append('\n'); in dumpValue()
93 sb.append(prefix).append("]\n"); in dumpValue()
DSubjectKeyIdentifier.java75 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
76 sb.append(prefix).append("SubjectKeyIdentifier: [\n"); in dumpValue()
77 sb.append(Array.toString(keyIdentifier, prefix)); in dumpValue()
78 sb.append(prefix).append("]\n"); in dumpValue()
DCRLDistributionPoints.java90 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
91 sb.append(prefix).append("CRL Distribution Points: [\n"); in dumpValue()
94 sb.append(prefix).append(" [").append(++number).append("]\n"); in dumpValue()
95 distributionPoint.dumpValue(sb, prefix + " "); in dumpValue()
97 sb.append(prefix).append("]\n"); in dumpValue()
DKeyUsage.java83 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
84 sb.append(prefix).append("KeyUsage [\n"); in dumpValue()
87 sb.append(prefix).append(" ").append(USAGES[i]).append('\n'); in dumpValue()
90 sb.append(prefix).append("]\n"); in dumpValue()
DIssuingDistributionPoint.java110 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
111 sb.append(prefix).append("Issuing Distribution Point: [\n"); in dumpValue()
113 distributionPoint.dumpValue(sb, " " + prefix); in dumpValue()
115 … sb.append(prefix).append(" onlyContainsUserCerts: ").append(onlyContainsUserCerts).append('\n'); in dumpValue()
116 … sb.append(prefix).append(" onlyContainsCACerts: ").append(onlyContainsCACerts).append('\n'); in dumpValue()
118 onlySomeReasons.dumpValue(sb, prefix + " "); in dumpValue()
120 sb.append(prefix).append(" indirectCRL: ").append(indirectCRL).append('\n'); in dumpValue()
121 …sb.append(prefix).append(" onlyContainsAttributeCerts: ").append(onlyContainsAttributeCerts).appe… in dumpValue()
DReasonFlags.java79 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
80 sb.append(prefix); in dumpValue()
84 sb.append(prefix).append(" ").append(REASONS[i]).append('\n'); in dumpValue()
87 sb.append(prefix); in dumpValue()
DBasicConstraints.java79 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
80 sb.append(prefix).append("BasicConstraints [\n").append(prefix) in dumpValue()
82 .append("\n ").append(prefix).append("pathLenConstraint: ") in dumpValue()
83 .append(pathLenConstraint).append('\n').append(prefix) in dumpValue()
DExtensionValue.java43 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
44 sb.append(prefix).append("Unparseable extension value:\n"); in dumpValue()
51 sb.append(Array.toString(encoding, prefix)); in dumpValue()
DDistributionPointName.java83 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
84 sb.append(prefix); in dumpValue()
87 fullName.dumpValue(sb, prefix + " "); in dumpValue()
89 sb.append(prefix); in dumpValue()
93 sb.append(prefix); in dumpValue()
DNameConstraints.java238 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument
239 sb.append(prefix).append("Name Constraints: [\n"); in dumpValue()
241 sb.append(prefix).append(" Permitted: [\n"); in dumpValue()
243 generalSubtree.dumpValue(sb, prefix + " "); in dumpValue()
245 sb.append(prefix).append(" ]\n"); in dumpValue()
248 sb.append(prefix).append(" Excluded: [\n"); in dumpValue()
250 generalSubtree.dumpValue(sb, prefix + " "); in dumpValue()
252 sb.append(prefix).append(" ]\n"); in dumpValue()
254 sb.append('\n').append(prefix).append("]\n"); in dumpValue()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java226 String prefix; in getPrefix()
229 prefix = ""; in getPrefix()
232 prefix = "n" + (auto++); in getPrefix()
236 if (prefix.equals(nspStack[i])) { in getPrefix()
237 prefix = null; in getPrefix()
242 while (prefix == null); in getPrefix()
247 setPrefix(prefix, namespace); in getPrefix()
249 return prefix; in getPrefix()
275 public void setPrefix(String prefix, String namespace) in setPrefix() argument
279 if (prefix == null) in setPrefix()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DPrefix.java79 String prefix; in testGetPrefix1() local
82 prefix = createdNode.getPrefix(); in testGetPrefix1()
83 assertNull("throw_Null", prefix); in testGetPrefix1()
90 String prefix; in testGetPrefix2() local
96 prefix = textNode.getPrefix(); in testGetPrefix2()
97 assertNull("textNodePrefix", prefix); in testGetPrefix2()
103 String prefix; in testGetPrefix3() local
108 prefix = testEmployee.getPrefix(); in testGetPrefix3()
109 assertEquals("prefix", "emp", prefix); in testGetPrefix3()
115 String prefix; in testGetPrefix4() local
[all …]
/libcore/luni/src/main/java/javax/xml/namespace/
DQName.java107 private String prefix; field in QName
193 public QName(String namespaceURI, String localPart, String prefix) { in QName() argument
209 if (prefix == null) { in QName()
212 this.prefix = prefix; in QName()
287 return prefix; in getPrefix()
480 if (prefix == null) { in readObject()
481 prefix = XMLConstants.DEFAULT_NS_PREFIX; in readObject()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMissingClassesTest.java27 String prefix = MissingClassesTest.class.getName(); in setUp() local
29 .withPrivateCopy(prefix + "$Loadable") in setUp()
30 .without(prefix + "$Unloadable") in setUp()
32 loadableClass = cl.loadClass(prefix + "$Loadable"); in setUp()
DClassLoaderReflectionTest.java53 String prefix = ClassLoaderReflectionTest.class.getName(); in setUp() local
54 ClassLoader loader = new ClassLoaderBuilder().withPrivateCopy(prefix).build(); in setUp()
55 aClass = loader.loadClass(prefix + "$A"); in setUp()
56 bClass = loader.loadClass(prefix + "$B"); in setUp()
57 cClass = loader.loadClass(prefix + "$C"); in setUp()
58 dClass = loader.loadClass(prefix + "$D"); in setUp()
59 eClass = loader.loadClass(prefix + "$E"); in setUp()
60 fClass = loader.loadClass(prefix + "$F"); in setUp()
61 aListClass = loader.loadClass(prefix + "$AList"); in setUp()
62 bStringClass = loader.loadClass(prefix + "$BString"); in setUp()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dprefix01.java70 String prefix; in runTest() local
73 prefix = createdNode.getPrefix(); in runTest()
74 assertNull("throw_Null", prefix); in runTest()
DdocumentcreateattributeNS02.java71 String prefix; in runTest() local
78 prefix = attribute1.getPrefix(); in runTest()
83 assertEquals("documentcreateattributeNS02_att1_prefix", "xml", prefix); in runTest()
89 prefix = attribute2.getPrefix(); in runTest()
Dprefix04.java68 String prefix; in runTest() local
72 prefix = testEmployee.getPrefix(); in runTest()
73 assertNull("throw_Null", prefix); in runTest()
Dprefix02.java72 String prefix; in runTest() local
78 prefix = textNode.getPrefix(); in runTest()
79 assertNull("textNodePrefix", prefix); in runTest()

1234