1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. 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.xerces.internal.dom;
23
68 * were created.
69 * <p>
70 * The DocumentImpl class also implements the DOM Level 2 DocumentTraversal
71 * interface. This interface is comprised of factory methods needed to
72 * create NodeIterators and TreeWalkers. The process of creating NodeIterator
73 * objects also adds these references to this document.
74 * After finishing with an iterator it is important to remove the object
75 * using the remove methods in this implementation. This allows the release of
76 * the references from the iterator objects to the DOM Nodes.
77 * <p>
78 * <b>Note:</b> When any node in the document is serialized, the
79 * entire document is serialized along with it.
80 *
81 * @xerces.internal
82 *
83 * @author Arnaud Le Hors, IBM
84 * @author Joe Kesselman, IBM
85 * @author Andy Clark, IBM
86 * @author Ralf Pfeiffer, IBM
87 * @since PR-DOM-Level-1-19980818.
88 */
89 public class DocumentImpl
90 extends CoreDocumentImpl
91 implements DocumentTraversal, DocumentEvent, DocumentRange {
92
93 //
94 // Constants
95 //
96
97 /** Serialization version. */
98 static final long serialVersionUID = 515687835542616694L;
99
100 //
101 // Data
102 //
103
104 /** Iterators */
105 // REVISIT: Should this be transient? -Ac
106 protected List<NodeIterator> iterators;
107
|
1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.dom;
22
67 * were created.
68 * <p>
69 * The DocumentImpl class also implements the DOM Level 2 DocumentTraversal
70 * interface. This interface is comprised of factory methods needed to
71 * create NodeIterators and TreeWalkers. The process of creating NodeIterator
72 * objects also adds these references to this document.
73 * After finishing with an iterator it is important to remove the object
74 * using the remove methods in this implementation. This allows the release of
75 * the references from the iterator objects to the DOM Nodes.
76 * <p>
77 * <b>Note:</b> When any node in the document is serialized, the
78 * entire document is serialized along with it.
79 *
80 * @xerces.internal
81 *
82 * @author Arnaud Le Hors, IBM
83 * @author Joe Kesselman, IBM
84 * @author Andy Clark, IBM
85 * @author Ralf Pfeiffer, IBM
86 * @since PR-DOM-Level-1-19980818.
87 * @LastModified: Nov 2017
88 */
89 public class DocumentImpl
90 extends CoreDocumentImpl
91 implements DocumentTraversal, DocumentEvent, DocumentRange {
92
93 //
94 // Constants
95 //
96
97 /** Serialization version. */
98 static final long serialVersionUID = 515687835542616694L;
99
100 //
101 // Data
102 //
103
104 /** Iterators */
105 // REVISIT: Should this be transient? -Ac
106 protected List<NodeIterator> iterators;
107
|