1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22
23 package com.sun.org.apache.xml.internal.serializer.dom3;
24
25 //import org.apache.xerces.dom3.DOMStringList;
26 import java.util.ArrayList;
27 import java.util.List;
28 import org.w3c.dom.DOMStringList;
29
30 /**
31 * This class implemets the DOM Level 3 Core interface DOMStringList.
32 *
33 * @xsl.usage internal
34 */
35 final class DOMStringListImpl implements DOMStringList {
36
37 //A collection of DOMString values
38 private List<String> fStrings;
39
40 /**
41 * Construct an empty list of DOMStringListImpl
42 */
43 DOMStringListImpl() {
44 fStrings = new ArrayList<>();
45 }
46
47 /**
48 * Construct an empty list of DOMStringListImpl
49 */
50 DOMStringListImpl(List<String> params) {
51 fStrings = params;
52 }
53
|
1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xml.internal.serializer.dom3;
23
24 //import org.apache.xerces.dom3.DOMStringList;
25 import java.util.ArrayList;
26 import java.util.List;
27 import org.w3c.dom.DOMStringList;
28
29 /**
30 * This class implemets the DOM Level 3 Core interface DOMStringList.
31 *
32 * @xsl.usage internal
33 * @LastModified: Oct 2017
34 */
35 final class DOMStringListImpl implements DOMStringList {
36
37 //A collection of DOMString values
38 private List<String> fStrings;
39
40 /**
41 * Construct an empty list of DOMStringListImpl
42 */
43 DOMStringListImpl() {
44 fStrings = new ArrayList<>();
45 }
46
47 /**
48 * Construct an empty list of DOMStringListImpl
49 */
50 DOMStringListImpl(List<String> params) {
51 fStrings = params;
52 }
53
|