Home
last modified time | relevance | path

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

123

/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 …]
DParserAdapter.java506 String prefix; in startElement() local
511 prefix = ""; in startElement()
517 prefix = attQName.substring(n+1); in startElement()
520 if (!nsSupport.declarePrefix(prefix, value)) { in startElement()
521 reportError("Illegal Namespace prefix: " + prefix); in startElement()
525 contentHandler.startPrefixMapping(prefix, value); in startElement()
539 String prefix; in startElement() local
543 prefix = ""; in startElement()
547 prefix = null; in startElement()
549 prefix = attQName.substring(6); in startElement()
[all …]
/libcore/ojluni/src/main/java/java/util/
DStringJoiner.java66 private final String prefix; field in StringJoiner
119 CharSequence prefix, in StringJoiner() argument
121 Objects.requireNonNull(prefix, "The prefix must not be null"); in StringJoiner()
125 this.prefix = prefix.toString(); in StringJoiner()
128 this.emptyValue = this.prefix + this.suffix; in StringJoiner()
216 builder.append(other.value, other.prefix.length(), length); in merge()
225 value = new StringBuilder().append(prefix); in prepareBuilder()
/libcore/ojluni/src/main/java/java/net/
DDefaultDatagramSocketImplFactory.java41 String prefix = null;
43 prefix = AccessController.doPrivileged(
45 if (prefix != null)
46 prefixImplClass = Class.forName("java.net."+prefix+"DatagramSocketImpl");
49 prefix +
/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/ojluni/src/main/java/sun/security/x509/
DX509AttributeName.java39 private String prefix = null; field in X509AttributeName
51 prefix = name; in X509AttributeName()
53 prefix = name.substring(0, i); in X509AttributeName()
62 return (prefix); in getPrefix()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java260 String prefix; in getPrefix()
263 prefix = ""; in getPrefix()
266 prefix = "n" + (auto++); in getPrefix()
270 if (prefix.equals(nspStack[i])) { in getPrefix()
271 prefix = null; in getPrefix()
276 while (prefix == null); in getPrefix()
281 setPrefix(prefix, namespace); in getPrefix()
283 return prefix; in getPrefix()
309 public void setPrefix(String prefix, String namespace) in setPrefix() argument
313 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/ojluni/src/main/java/sun/net/www/
DMimeLauncher.java74 String prefix = tempFilename.substring(0, wildcard); in getTempFileName() local
83 while ((argIndex = prefix.indexOf("%s")) >= 0) { in getTempFileName()
84 prefix = prefix.substring(0, argIndex) in getTempFileName()
86 + prefix.substring(argIndex + 2); in getTempFileName()
103 tempFilename = prefix + filename + timestamp + extension + suffix; in getTempFileName()
194 String prefix = (String)iter.nextElement(); in findExecutablePath() local
195 String fullCmd = prefix + File.separator + command; in findExecutablePath()
198 execPath = prefix + File.separator + str; in findExecutablePath()
/libcore/ojluni/src/main/java/sun/security/ssl/
DDebug.java41 private String prefix; field in Debug
97 public static Debug getInstance(String option, String prefix) in getInstance() argument
101 d.prefix = prefix; in getInstance()
143 System.err.println(prefix + ": "+message); in println()
152 System.err.println(prefix + ":"); in println()
159 public static void println(String prefix, String message) in println() argument
161 System.err.println(prefix + ": "+message); in println()
DCipherBox.java243 byte[] prefix = new byte[blockSize]; in encrypt()
244 random.nextBytes(prefix); in encrypt()
248 buf, offset + prefix.length, len); in encrypt()
251 System.arraycopy(prefix, 0, in encrypt()
252 buf, offset, prefix.length); in encrypt()
254 len += prefix.length; in encrypt()
308 byte[] prefix = new byte[blockSize]; in encrypt()
309 random.nextBytes(prefix); in encrypt()
318 buf, arrayOffset + pos + prefix.length, in encrypt()
320 bb.limit(limit + prefix.length); in encrypt()
[all …]
/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/ojluni/src/main/java/sun/security/util/
DDebug.java42 private final String prefix; field in Debug
44 private Debug(String prefix) { in Debug() argument
45 this.prefix = prefix; in Debug()
101 public static Debug getInstance(String option, String prefix) in getInstance() argument
104 Debug d = new Debug(prefix); in getInstance()
134 System.err.println(prefix + ": "+message); in println()
143 System.err.println(prefix + ":"); in println()
/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()
Dprefix03.java74 String prefix; in runTest() local
79 prefix = testEmployee.getPrefix(); in runTest()
80 assertEquals("prefix", "emp", prefix); in runTest()
DdocumentcreateelementNS01.java85 String prefix; in runTest() local
92 prefix = element.getPrefix(); in runTest()
97 assertEquals("documentcreateelementNS01_prefix", "XML", prefix); in runTest()
DgetElementsByTagNameNS02.java78 String prefix; in runTest() local
84 prefix = newElement.getPrefix(); in runTest()
85 assertEquals("prefix", "emp", prefix); in runTest()
DgetElementsByTagNameNS09.java80 String prefix; in runTest() local
88 prefix = newElement.getPrefix(); in runTest()
89 assertEquals("prefix", "emp", prefix); in runTest()
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java95 final String prefix = pp.getAttributePrefix(index); in getQName() local
96 if(prefix != null) { in getQName()
97 return prefix+':'+pp.getAttributeName(index); in getQName()
362 String prefix = null; in parseSubTree() local
385 prefix = pp.getPrefix(); in parseSubTree()
386 if(prefix != null) { in parseSubTree()
388 rawName.append(prefix); in parseSubTree()
395 prefix == null ? name : rawName.toString()); in parseSubTree()
415 prefix = pp.getPrefix(); in parseSubTree()
416 if(prefix != null) { in parseSubTree()
[all …]

123