Home
last modified time | relevance | path

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

123456

/libcore/luni/src/main/java/org/apache/xalan/processor/
DProcessorNamespaceAlias.java69 String prefix = na.getStylesheetPrefix(); in startElement() local
70 if(prefix.equals("#default")) in startElement()
72 prefix = ""; in startElement()
73 na.setStylesheetPrefix(prefix); in startElement()
75 String stylesheetNS = handler.getNamespaceForPrefix(prefix); in startElement()
77 prefix = na.getResultPrefix(); in startElement()
78 if(prefix.equals("#default")) in startElement()
80 prefix = ""; in startElement()
81 na.setResultPrefix(prefix); in startElement()
82 resultNS = handler.getNamespaceForPrefix(prefix); in startElement()
[all …]
/libcore/luni/src/main/java/org/apache/xalan/templates/
DElemElement.java173 String prefix, String nodeNamespace) in resolvePrefix() argument
185 return prefix; in resolvePrefix()
212 String prefix = null; in execute() local
227 prefix = QName.getPrefixPart(nodeName); in execute()
233 (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) ) in execute()
240 prefix = resolvePrefix(rhandler, prefix, nodeNamespace); in execute()
241 if (null == prefix) in execute()
242 prefix = ""; in execute()
244 if (prefix.length() > 0) in execute()
245 nodeName = (prefix + ":" + QName.getLocalPart(nodeName)); in execute()
[all …]
DElemAttribute.java125 String prefix, String nodeNamespace) in resolvePrefix() argument
129 if (null != prefix && (prefix.length() == 0 || prefix.equals("xmlns"))) in resolvePrefix()
133 prefix = rhandler.getPrefix(nodeNamespace); in resolvePrefix()
136 if (null == prefix || prefix.length() == 0 || prefix.equals("xmlns")) in resolvePrefix()
141 prefix = prefixMapping.generateNextPrefix(); in resolvePrefix()
144 prefix = ""; in resolvePrefix()
147 return prefix; in resolvePrefix()
180 String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer) in constructNode() argument
194 if(prefix != null && prefix.length() > 0){ in constructNode()
/libcore/luni/src/main/java/org/apache/xml/serializer/
DNamespaceMappings.java138 public String lookupNamespace(String prefix) in lookupNamespace() argument
141 final Stack stack = getPrefixStack(prefix); in lookupNamespace()
151 MappingRecord getMappingFromPrefix(String prefix) { in getMappingFromPrefix() argument
152 final Stack stack = (Stack) m_namespaces.get(prefix); in getMappingFromPrefix()
171 String prefix = (String) prefixes.nextElement(); in lookupPrefix() local
172 String uri2 = lookupNamespace(prefix); in lookupPrefix()
175 foundPrefix = prefix; in lookupPrefix()
188 String prefix = (String) prefixes.nextElement(); in getMappingFromURI() local
189 MappingRecord map2 = getMappingFromPrefix(prefix); in getMappingFromURI()
202 boolean popNamespace(String prefix) in popNamespace() argument
[all …]
DTreeWalker.java314 String prefix = elem_node.getPrefix(); in startNode() local
315 if (prefix==null) in startNode()
316 prefix=""; in startNode()
317 this.m_contentHandler.startPrefixMapping(prefix,uri); in startNode()
332 final String prefix; in startNode() local
341 prefix = ""; in startNode()
343 prefix = attrName.substring(colon + 1); in startNode()
345 this.m_contentHandler.startPrefixMapping(prefix, in startNode()
349 prefix = attrName.substring(0,colon); in startNode()
352 this.m_contentHandler.startPrefixMapping(prefix,uri); in startNode()
[all …]
DToXMLSAXHandler.java279 public void endPrefixMapping(String prefix) throws SAXException in endPrefixMapping() argument
317 public void startPrefixMapping(String prefix, String uri) in startPrefixMapping() argument
320 startPrefixMapping(prefix, uri, true); in startPrefixMapping()
334 String prefix, in startPrefixMapping() argument
359 pushed = m_prefixMap.pushNamespace(prefix, uri, pushDepth); in startPrefixMapping()
363 m_saxHandler.startPrefixMapping(prefix,uri); in startPrefixMapping()
374 if (EMPTYSTRING.equals(prefix)) in startPrefixMapping()
383 name = "xmlns:" + prefix; in startPrefixMapping()
389 addAttributeAlways(XMLNS_URI, prefix, name,"CDATA",uri, false ); in startPrefixMapping()
565 final String prefix, in namespaceAfterStartElement() argument
[all …]
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNamespaceSupport.java293 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument
295 if (prefix.equals("xml") || prefix.equals("xmlns")) { in declarePrefix()
298 currentContext.declarePrefix(prefix, uri); in declarePrefix()
371 public String getURI (String prefix) in getURI() argument
373 return currentContext.getURI(prefix); in getURI()
450 String prefix = (String)allPrefixes.nextElement(); in getPrefixes() local
451 if (uri.equals(getURI(prefix))) { in getPrefixes()
452 prefixes.addElement(prefix); in getPrefixes()
599 void declarePrefix (String prefix, String uri) in declarePrefix() argument
612 prefix = prefix.intern(); in declarePrefix()
[all …]
/libcore/luni/src/main/java/org/apache/xml/utils/
DNamespaceSupport2.java195 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument
197 if (prefix.equals("xml") || prefix.equals("xmlns")) { in declarePrefix()
200 currentContext.declarePrefix(prefix, uri); in declarePrefix()
270 public String getURI (String prefix) in getURI() argument
272 return currentContext.getURI(prefix); in getURI()
411 String prefix=(String)allPrefixes.nextElement(); in hasMoreElements() local
412 if(uri.equals(nsup.getURI(prefix))) in hasMoreElements()
414 lookahead=prefix; in hasMoreElements()
535 void declarePrefix (String prefix, String uri) in declarePrefix() argument
545 prefix = prefix.intern(); in declarePrefix()
[all …]
DQName.java137 public QName(String namespaceURI, String prefix, String localName) in QName() argument
139 this(namespaceURI, prefix, localName, false); in QName()
152 public QName(String namespaceURI, String prefix, String localName, boolean validate) in QName() argument
169 if ((null != prefix) && (!XML11Char.isXML11ValidNCName(prefix))) in QName()
177 _prefix = prefix; in QName()
251 String prefix = null; in QName() local
256 prefix = qname.substring(0, indexOfNSSep); in QName()
258 if (prefix.equals("xml")) in QName()
263 else if (prefix.equals("xmlns")) in QName()
277 if ((null != ns.m_prefix) && prefix.equals(ns.m_prefix)) in QName()
[all …]
DPrefixResolverDefault.java61 public String getNamespaceForPrefix(String prefix) in getNamespaceForPrefix() argument
63 return getNamespaceForPrefix(prefix, m_context); in getNamespaceForPrefix()
76 public String getNamespaceForPrefix(String prefix, in getNamespaceForPrefix() argument
83 if (prefix.equals("xml")) in getNamespaceForPrefix()
97 if (parent.getNodeName().indexOf(prefix+":") == 0) in getNamespaceForPrefix()
112 if (p.equals(prefix)) in getNamespaceForPrefix()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DAttrImpl.java43 String prefix; field in AttrImpl
62 String prefix = name.substring(0, prefixSeparator); in AttrImpl() local
65 if (!DocumentImpl.isXMLIdentifier(prefix) || !DocumentImpl.isXMLIdentifier(localName)) { in AttrImpl()
83 return prefix != null in getName()
84 ? prefix + ":" + localName in getName()
113 return prefix; in getPrefix()
125 public void setPrefix(String prefix) { in setPrefix() argument
126 this.prefix = validatePrefix(prefix, namespaceAware, namespaceURI); in setPrefix()
/libcore/luni/src/main/java/org/apache/xml/serializer/dom3/
DNamespaceSupport.java155 public boolean declarePrefix(String prefix, String uri) { in declarePrefix() argument
157 if (prefix == PREFIX_XML || prefix == PREFIX_XMLNS) { in declarePrefix()
164 if (fNamespace[i - 2].equals(prefix) ) { in declarePrefix()
184 fNamespace[fNamespaceSize++] = prefix; in declarePrefix()
194 public String getURI(String prefix) { in getURI() argument
199 if (fNamespace[i - 2].equals(prefix) ) { in getURI()
255 String prefix = null; in getAllPrefixes() local
258 prefix = fNamespace[i + 2]; in getAllPrefixes()
260 if (fPrefixes[k]==prefix){ in getAllPrefixes()
266 fPrefixes[count++] = prefix; in getAllPrefixes()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DDistributionPoint.java93 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
94 buffer.append(prefix); in dumpValue()
97 distributionPoint.dumpValue(buffer, prefix + " "); in dumpValue()
100 reasons.dumpValue(buffer, prefix + " "); in dumpValue()
103 buffer.append(prefix); in dumpValue()
105 cRLIssuer.dumpValue(buffer, prefix + " "); in dumpValue()
106 buffer.append(prefix); in dumpValue()
109 buffer.append(prefix); in dumpValue()
DAuthorityKeyIdentifier.java87 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
88 buffer.append(prefix).append("AuthorityKeyIdentifier [\n"); in dumpValue()
90 buffer.append(prefix).append(" keyIdentifier:\n"); in dumpValue()
91 buffer.append(Array.toString(keyIdentifier, prefix + " ")); in dumpValue()
94 buffer.append(prefix).append(" authorityCertIssuer: [\n"); in dumpValue()
95 authorityCertIssuer.dumpValue(buffer, prefix + " "); in dumpValue()
96 buffer.append(prefix).append(" ]\n"); in dumpValue()
99 buffer.append(prefix).append(" authorityCertSerialNumber: ") in dumpValue()
102 buffer.append(prefix).append("]\n"); in dumpValue()
DAlternativeName.java88 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
89 buffer.append(prefix).append((which) ? "Subject" : "Issuer") in dumpValue()
91 alternativeNames.dumpValue(buffer, prefix + " "); in dumpValue()
92 buffer.append(prefix).append("]\n"); in dumpValue()
DSubjectKeyIdentifier.java76 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
77 buffer.append(prefix).append("SubjectKeyIdentifier: [\n"); in dumpValue()
78 buffer.append(Array.toString(keyIdentifier, prefix)); in dumpValue()
79 buffer.append(prefix).append("]\n"); in dumpValue()
DKeyUsage.java100 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
101 buffer.append(prefix).append("KeyUsage [\n"); in dumpValue()
104 buffer.append(prefix).append(" ") in dumpValue()
108 buffer.append(prefix).append("]\n"); in dumpValue()
DGeneralSubtree.java132 public void dumpValue(StringBuffer buffer, String prefix) { in dumpValue() argument
133 buffer.append(prefix).append("General Subtree: [\n"); in dumpValue()
134 buffer.append(prefix).append(" base: ").append(base).append('\n'); in dumpValue()
135 buffer.append(prefix).append(" minimum: ") in dumpValue()
138 buffer.append(prefix).append(" maximum: ") in dumpValue()
141 buffer.append(prefix).append("]\n"); in dumpValue()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java228 String prefix; in getPrefix()
231 prefix = ""; in getPrefix()
234 prefix = "n" + (auto++); in getPrefix()
238 if (prefix.equals(nspStack[i])) { in getPrefix()
239 prefix = null; in getPrefix()
244 while (prefix == null); in getPrefix()
249 setPrefix(prefix, namespace); in getPrefix()
251 return prefix; in getPrefix()
277 public void setPrefix(String prefix, String namespace) in setPrefix() argument
281 if (prefix == null) in setPrefix()
[all …]
/libcore/luni/src/main/java/org/apache/xalan/serialize/
DSerializerUtils.java176 String prefix = dtm.getNodeNameX(namespace); in processNSDecls() local
177 String desturi = handler.getNamespaceURIFromPrefix(prefix); in processNSDecls()
183 handler.startPrefixMapping(prefix, srcURI, false); in processNSDecls()
189 String prefix = dtm.getNodeNameX(src); in processNSDecls() local
191 String desturi = handler.getNamespaceURIFromPrefix(prefix); in processNSDecls()
196 handler.startPrefixMapping(prefix, srcURI, false); in processNSDecls()
226 String prefix = dtm.getNodeNameX(attr); in isDefinedNSDecl() local
227 String uri = serializer.getNamespaceURIFromPrefix(prefix); in isDefinedNSDecl()
256 String prefix = dtm.getNodeNameX(namespace); in ensureNamespaceDeclDeclared() local
258 if ((uri != null && uri.length() > 0) && (null != prefix)) in ensureNamespaceDeclDeclared()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DLogger.java31 private final String prefix; field in Logger.Stream
36 prefix = name + "["+Thread.currentThread().getName()+"] "; in Stream()
57 print(prefix); in println()
70 String prefix, in printAsHex() argument
73 printAsHex(perLine, prefix, delimiter, data, 0, data.length); in printAsHex()
77 String prefix, in printAsHex() argument
87 line += prefix + tail + delimiter; in printAsHex()
/libcore/luni/src/main/java/javax/xml/namespace/
DQName.java118 private String prefix; field in QName
204 public QName(String namespaceURI, String localPart, String prefix) { in QName() argument
220 if (prefix == null) { in QName()
223 this.prefix = prefix; in QName()
298 return prefix; in getPrefix()
491 if (prefix == null) { in readObject()
492 prefix = XMLConstants.DEFAULT_NS_PREFIX; in readObject()
/libcore/luni/src/main/java/org/apache/xpath/jaxp/
DJAXPPrefixResolver.java46 public String getNamespaceForPrefix( String prefix ) { in getNamespaceForPrefix() argument
47 return namespaceContext.getNamespaceURI( prefix ); in getNamespaceForPrefix()
86 public String getNamespaceForPrefix(String prefix, in getNamespaceForPrefix() argument
91 if (prefix.equals("xml")) { in getNamespaceForPrefix()
112 if (p.equals(prefix)) { in getNamespaceForPrefix()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DPrefix.java91 String prefix; in testGetPrefix1() local
94 prefix = createdNode.getPrefix(); in testGetPrefix1()
95 assertNull("throw_Null", prefix); in testGetPrefix1()
108 String prefix; in testGetPrefix2() local
114 prefix = textNode.getPrefix(); in testGetPrefix2()
115 assertNull("textNodePrefix", prefix); in testGetPrefix2()
127 String prefix; in testGetPrefix3() local
132 prefix = testEmployee.getPrefix(); in testGetPrefix3()
133 assertEquals("prefix", "emp", prefix); in testGetPrefix3()
145 String prefix; in testGetPrefix4() local
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DClassLoaderReflectionTest.java57 String prefix = ClassLoaderReflectionTest.class.getName(); in setUp() local
58 ClassLoader loader = twoCopiesClassLoader(prefix, getClass().getClassLoader()); in setUp()
59 aClass = loader.loadClass(prefix + "$A"); in setUp()
60 bClass = loader.loadClass(prefix + "$B"); in setUp()
61 cClass = loader.loadClass(prefix + "$C"); in setUp()
62 dClass = loader.loadClass(prefix + "$D"); in setUp()
63 eClass = loader.loadClass(prefix + "$E"); in setUp()
64 fClass = loader.loadClass(prefix + "$F"); in setUp()
65 aListClass = loader.loadClass(prefix + "$AList"); in setUp()
66 bStringClass = loader.loadClass(prefix + "$BString"); in setUp()
[all …]

123456