/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/stream/buffer/stax/ |
H A D | NamespaceContexHelper.java | 49 * Implementation note: determining the prefix from a namespace URI 53 * given a prefix is performed in O(n) time. The look up of a prefix given 94 public String getNamespaceURI(String prefix) { argument 95 if (prefix == null) throw new IllegalArgumentException(); 97 prefix = prefix.intern(); 101 if (declaredPrefix == prefix) { 117 // Check if prefix is out of scope 139 // Check if prefix i 218 declareNamespace(String prefix, String namespaceURI) argument [all...] |
H A D | StreamWriterBufferCreator.java | 94 public void setPrefix(String prefix, String namespaceURI) throws XMLStreamException { argument 95 namespaceContext.declareNamespace(prefix, namespaceURI); 137 final String prefix = namespaceContext.getPrefix(namespaceURI); 138 if (prefix == null) { 143 storeQualifiedName(T_ELEMENT_LN, prefix, namespaceURI, localName); 146 public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { argument 150 storeQualifiedName(T_ELEMENT_LN, prefix, namespaceURI, localName); 163 public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { argument 164 writeStartElement(prefix, localName, namespaceURI); 180 public void writeNamespace(String prefix, Strin argument 201 writeAttribute(String prefix, String namespaceURI, String localName, String value) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/xml/internal/stream/events/ |
H A D | EndElementEvent.java | 58 public EndElementEvent(String prefix, String uri, String localpart) { argument 59 this(new QName(uri, localpart, prefix)); 80 String prefix = fQName.getPrefix(); 81 if (prefix != null && prefix.length() > 0) { 82 writer.write(prefix);
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ |
H A D | SOAPElement.java | 68 * object. The <i>namespace</i>, <i>localname</i> and <i>prefix</i> of the new 98 * specified local name and prefix and adds the new element to this 103 * @param prefix a {@code String} giving the namespace prefix for 107 * @exception SOAPException if the {@code prefix} is not valid in the 111 public SOAPElement addChildElement(String localName, String prefix) argument 116 * specified local name, prefix, and URI and adds the new element to this 121 * @param prefix a {@code String} giving the namespace prefix for 130 public SOAPElement addChildElement(String localName, String prefix, argument 245 addNamespaceDeclaration(String prefix, String uri) argument 304 getNamespaceURI(String prefix) argument 354 createQName(String localName, String prefix) argument 425 removeNamespaceDeclaration(String prefix) argument [all...] |
H A D | SOAPElementFactory.java | 98 * local name, prefix and uri. 102 * @param prefix the prefix for this {@code SOAPElement} 114 * String prefix, 120 public SOAPElement create(String localName, String prefix, String uri) argument 122 return soapFactory.createElement(localName, prefix, uri);
|
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/ |
H A D | IncorrectNamespaceURIChecker.java | 50 * prefix "jaxb". If the document doesn't associate any prefix to the 51 * JAXB customization URI and if it does associate the jaxb prefix, 56 * nothing prevents you from using the prefix "jaxb" for other purpose 76 /** Sets to true once we see the jaxb prefix in use. */ 94 public void startPrefixMapping(String prefix, String uri) throws SAXException { argument 95 if (WellKnownNamespace.XML_NAMESPACE_URI.equals(uri)) return; //xml prefix shall not be declared based on jdk api javadoc 96 if( prefix.equals("jaxb") ) 101 super.startPrefixMapping(prefix, uri); 105 public void endPrefixMapping(String prefix) throw argument [all...] |
/openjdk10/jdk/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/transforms/params/ |
H A D | InclusiveNamespaces.java | 84 for (String prefix : prefixList) { 85 if (prefix.equals("xmlns")) { 88 sb.append(prefix).append(' '); 120 * namespace token is represented as an empty namespace prefix 142 for (String prefix : tokens) { 143 if (prefix.equals("#default")) { 146 prefixes.add(prefix);
|
/openjdk10/jdk/test/java/io/File/createTempFile/ |
H A D | SpecialTempFile.java | 39 private static void test(String name, String[] prefix, String[] suffix, argument 42 if (prefix == null || suffix == null 43 || prefix.length != suffix.length) 52 for (int i = 0; i < prefix.length; i++) { 59 ", creating temp file with prefix, " + 60 prefix[i] + ", suffix, " + suffix[i] + 64 f = File.createTempFile(prefix[i], suffix[i],
|
/openjdk10/jdk/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/utils/ |
H A D | ElementProxy.java | 127 String prefix = ElementProxy.getDefaultPrefix(baseName); 128 if ((prefix == null) || (prefix.length() == 0)) { 132 result = doc.createElementNS(namespace, prefix + ":" + localName); 133 result.setAttributeNS(Constants.NamespaceSpecNS, "xmlns:" + prefix, namespace); 143 * a particular prefix is bound to that namespace. 154 String prefix = ElementProxy.getDefaultPrefix(namespace); 159 if ((prefix == null) || (prefix.length() == 0)) { 163 result = doc.createElementNS(namespace, prefix 437 setXPathNamespaceContext(String prefix, String uri) argument 474 setDefaultPrefix(String namespace, String prefix) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/util/ |
H A D | JAXPNamespaceContextWrapper.java | 83 public String getURI(String prefix) { argument 85 String uri = fNamespaceContext.getNamespaceURI(prefix); 98 String prefix = fNamespaceContext.getPrefix(uri); 99 if (prefix == null) { 100 prefix = XMLConstants.DEFAULT_NS_PREFIX; 102 return (fSymbolTable != null) ? fSymbolTable.addSymbol(prefix) : prefix.intern(); 131 public boolean declarePrefix(String prefix, String uri) { argument
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/ |
H A D | XmlVisitor.java | 100 void startPrefixMapping( String prefix, String nsUri ) throws SAXException; argument 104 void endPrefixMapping( String prefix ) throws SAXException;
|
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xni/ |
H A D | NamespaceContext.java | 30 * The prefix and namespace must be identical references for equal strings, thus 48 * the Namespace URI that is automatically mapped to the "xml" prefix. 55 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/ 80 * XML element. After popping the context, all Namespace prefix 92 * Declare a Namespace prefix. 94 * This method declares a prefix in the current Namespace 95 * context; the prefix will remain in force until this context 101 * Note that you must <em>not</em> declare a prefix after 104 * @param prefix The prefix t 113 declarePrefix(String prefix, String uri) argument 128 getURI(String prefix) argument [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/ |
H A D | Envelope1_2Impl.java | 50 public Envelope1_2Impl(SOAPDocumentImpl ownerDoc, String prefix) { argument 51 super(ownerDoc, NameImpl.createEnvelope1_2Name(prefix)); 60 String prefix, 66 NameImpl.createEnvelope1_2Name(prefix), 72 protected NameImpl getBodyName(String prefix) { argument 73 return NameImpl.createBody1_2Name(prefix); 77 protected NameImpl getHeaderName(String prefix) { argument 78 return NameImpl.createHeader1_2Name(prefix); 58 Envelope1_2Impl( SOAPDocumentImpl ownerDoc, String prefix, boolean createHeader, boolean createBody) argument
|
/openjdk10/jdk/src/java.base/share/classes/java/util/ |
H A D | StringJoiner.java | 32 * by a delimiter and optionally starting with a supplied prefix 36 * {@code sj.toString()} method will, by default, return {@code prefix + suffix}. 40 * <code>"{}"</code>, where the {@code prefix} is <code>"{"</code>, the 69 private final String prefix; field in class:StringJoiner 79 /** Total length in chars so far, excluding prefix and suffix. */ 85 * When null, prefix + suffix is used as the empty value. 93 * {@code prefix} or {@code suffix}, and a copy of the supplied 97 * {@code prefix} or {@code suffix} (or properties thereof) in the result, 110 * of the supplied {@code prefix}, {@code delimiter} and {@code suffix}. 113 * {@code prefix 123 StringJoiner(CharSequence delimiter, CharSequence prefix, CharSequence suffix) argument [all...] |
/openjdk10/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/ |
H A D | IOExceptionIfEncodedURLTest.java | 44 String prefix = "file:"; 46 String filename = url.substring(prefix.length());
|
/openjdk10/jdk/test/java/nio/file/Files/ |
H A D | TemporaryFiles.java | 45 static void testTempFile(String prefix, String suffix, Path dir) argument 49 Files.createTempFile(prefix, suffix) : 50 Files.createTempFile(dir, prefix, suffix); 54 if (prefix != null && !name.startsWith(prefix)) 55 throw new RuntimeException("Should start with " + prefix); 82 static void testTempFile(String prefix, String suffix) argument 85 testTempFile(prefix, suffix, null); 88 static void testTempDirectory(String prefix, Path dir) throws IOException { argument 90 Files.createTempDirectory(prefix) 132 testTempDirectory(String prefix) argument 136 testInvalidFileTemp(String prefix, String suffix) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/dom3/ |
H A D | NamespaceSupport.java | 48 * the Namespace URI that is automatically mapped to the "xml" prefix. 55 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/ 66 * <prefix, uri>. The default size can be set to anything 117 // bind "xml" prefix to the XML uri 120 // bind "xmlns" prefix to the XMLNS uri 156 public boolean declarePrefix(String prefix, String uri) { argument 158 if (prefix == PREFIX_XML || prefix == PREFIX_XMLNS) { 162 // see if prefix already exists in current context 164 //if (fNamespace[i - 2] == prefix) { 195 getURI(String prefix) argument [all...] |
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset/util/ |
H A D | NamespaceContextImplementation.java | 61 public String getNamespaceURI(String prefix) { argument 62 if (prefix == null) throw new IllegalArgumentException(); 64 // prefix = prefix.intern(); 68 if (declaredPrefix.equals(prefix)) { 86 // Check if prefix is out of scope 114 // Check if prefix is out of scope 138 // Check if prefix is out of scope 171 public void declarePrefix(String prefix, String namespaceURI) { argument 172 prefix [all...] |
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/org/jvnet/mimepull/ |
H A D | TempFiles.java | 109 static File createTempFile(String prefix, String suffix, File dir) throws IOException { argument 112 LOGGER.log(Level.FINEST, "Jdk6 detected, temp file (prefix:{0}, suffix:{1}) being created using old java.io API.", new Object[]{prefix, suffix}); 113 return File.createTempFile(prefix, suffix, dir); 120 LOGGER.log(Level.FINEST, "Temp file (path: {0}, prefix:{1}, suffix:{2}) being created using NIO API.", new Object[]{dir.getAbsolutePath(), prefix, suffix}); 121 return toFile(METHOD_FILES_CREATE_TEMP_FILE_WITHPATH.invoke(null, path, prefix, suffix, Array.newInstance(CLASS_FILE_ATTRIBUTE, 0))); 123 LOGGER.log(Level.FINEST, "Temp file (prefix:{0}, suffix:{1}) being created using NIO API.", new Object[]{prefix, suffix}); 124 return toFile(METHOD_FILES_CREATE_TEMP_FILE.invoke(null, prefix, suffi [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/encoding/ |
H A D | TagInfoset.java | 77 public final @Nullable String prefix; field in class:TagInfoset 94 public TagInfoset(String nsUri, String localName, String prefix, AttributesImpl atts, String... ns) { argument 96 this.prefix = prefix; 107 prefix = reader.getPrefix(); 128 String prefix = reader.getAttributePrefix(i); 132 if(prefix != null && prefix.length()!=0){ 133 sb.append(prefix); 177 if(prefix 227 getNamespaceURI(String prefix) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/ |
H A D | LiteralElement.java | 75 * Returns the namespace URI for which a prefix is pointing to 77 private String accessedNamespace(String prefix) { argument 79 String result = _literalElemParent.accessedNamespace(prefix); 84 return _accessedPrefixes != null ? _accessedPrefixes.get(prefix) : null; 92 public void registerNamespace(String prefix, String uri, argument 97 final String parentUri = _literalElemParent.accessedNamespace(prefix); 110 final String old = _accessedPrefixes.get(prefix); 115 prefix = stable.generateNamespacePrefix(); 120 if (!prefix.equals("xml")) { 121 _accessedPrefixes.put(prefix,ur [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/ |
H A D | NamespaceSupport.java | 79 * prefix/URI mapping is repeated for each context (for example), this 99 * to the "xml" prefix.</p> 172 * already in force: in this context, only the "xml" prefix is 204 * XML element. After popping the context, all Namespace prefix 250 * Declare a Namespace prefix. 252 * <p>This method declares a prefix in the current Namespace 253 * context; the prefix will remain in force until this context 257 * prefix must not be "xml" or "xmlns".</p> 259 * <p>Note that you must <em>not</em> declare a prefix after 263 * #getPrefix getPrefix} will not return the default "" prefix, 277 declarePrefix(String prefix, String uri) argument 353 getURI(String prefix) argument 539 declarePrefix(String prefix, String uri) argument 641 getURI(String prefix) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/ |
H A D | DOM2SAX.java | 81 * Begin the scope of namespace prefix. Forward the event to the 82 * SAX handler only if the prefix is unknown or it is mapped to a 85 private boolean startPrefixMapping(String prefix, String uri) argument 89 Stack<String> uriStack = _nsPrefixes.get(prefix); 93 _sax.startPrefixMapping(prefix, uri); 98 _sax.startPrefixMapping(prefix, uri); 105 _sax.startPrefixMapping(prefix, uri); 106 _nsPrefixes.put(prefix, uriStack = new Stack()); 113 * End the scope of a name prefix by popping it from the stack and 116 private void endPrefixMapping(String prefix) argument [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/ |
H A D | Fault1_1Impl.java | 59 public Fault1_1Impl(SOAPDocumentImpl ownerDocument, String prefix) { argument 60 super(ownerDocument, NameImpl.createFault1_1Name(prefix)); 141 // Get the prefix and map it to a namespace name (AKA namespace URI) 142 String prefix = faultcodeString.substring(0, prefixIndex); 145 String nsName = this.faultCodeElement.getNamespaceURI(prefix); 352 public void setFaultCode(String faultCode, String prefix, String uri) argument 354 if (prefix == null || "".equals(prefix)) { 356 prefix = getNamespacePrefix(uri); 357 if (prefix [all...] |
/openjdk10/hotspot/src/os_cpu/windows_x86/vm/ |
H A D | assembler_windows_x86.cpp | 54 prefix(FS_segment);
|