Sun, 18 Jun 2017 23:18:45 +0100
8172297: In java 8, the marshalling with JAX-WS does not escape carriage return
Reviewed-by: lancea
1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.sun.xml.internal.bind.v2.runtime;
28 /**
29 * Namespace URIs and local names sorted by their indices.
30 * Number of Names used for EIIs and AIIs
31 *
32 * @author Kohsuke Kawaguchi
33 */
34 public final class NameList {
35 /**
36 * Namespace URIs by their indices. No nulls in this array.
37 * Read-only.
38 */
39 public final String[] namespaceURIs;
41 /**
42 * For each entry in {@link #namespaceURIs}, whether the namespace URI
43 * can be declared as the default. If namespace URI is used in attributes,
44 * we always need a prefix, so we can't.
45 *
46 * True if this URI has to have a prefix.
47 */
48 public final boolean[] nsUriCannotBeDefaulted;
50 /**
51 * Local names by their indices. No nulls in this array.
52 * Read-only.
53 */
54 public final String[] localNames;
56 /**
57 * Number of Names for elements
58 */
59 public final int numberOfElementNames;
61 /**
62 * Number of Names for attributes
63 */
64 public final int numberOfAttributeNames;
66 public NameList(String[] namespaceURIs, boolean[] nsUriCannotBeDefaulted, String[] localNames, int numberElementNames, int numberAttributeNames) {
67 this.namespaceURIs = namespaceURIs;
68 this.nsUriCannotBeDefaulted = nsUriCannotBeDefaulted;
69 this.localNames = localNames;
70 this.numberOfElementNames = numberElementNames;
71 this.numberOfAttributeNames = numberAttributeNames;
72 }
73 }