1 /*
2 * Copyright (c) 2015, 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
746 * read-write attribute?Read-only and computed (F2F 19 Jun 2000 and
747 * teleconference 30 May 2001).If the base HTML element is not yet
748 * attached to a document, does the insert change the Document.baseURI?
749 * Yes. (F2F 26 Sep 2001)
750 * @since DOM Level 3
751 */
752 public String getBaseURI() {
753 return null;
754 }
755
756 /**
757 * Compares a node with this node with regard to their position in the
758 * tree and according to the document order. This order can be extended
759 * by module that define additional types of nodes.
760 * @param other The node to compare against this node.
761 * @return Returns how the given node is positioned relatively to this
762 * node.
763 * @since DOM Level 3
764 * @deprecated
765 */
766 public short compareTreePosition(Node other) {
767 // Questions of clarification for this method - to be answered by the
768 // DOM WG. Current assumptions listed - LM
769 //
770 // 1. How do ENTITY nodes compare?
771 // Current assumption: TREE_POSITION_DISCONNECTED, as ENTITY nodes
772 // aren't really 'in the tree'
773 //
774 // 2. How do NOTATION nodes compare?
775 // Current assumption: TREE_POSITION_DISCONNECTED, as NOTATION nodes
776 // aren't really 'in the tree'
777 //
778 // 3. Are TREE_POSITION_ANCESTOR and TREE_POSITION_DESCENDANT
779 // only relevant for nodes that are "part of the document tree"?
780 // <outer>
781 // <inner myattr="true"/>
782 // </outer>
783 // Is the element node "outer" considered an ancestor of "myattr"?
784 // Current assumption: No.
785 //
|
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
746 * read-write attribute?Read-only and computed (F2F 19 Jun 2000 and
747 * teleconference 30 May 2001).If the base HTML element is not yet
748 * attached to a document, does the insert change the Document.baseURI?
749 * Yes. (F2F 26 Sep 2001)
750 * @since DOM Level 3
751 */
752 public String getBaseURI() {
753 return null;
754 }
755
756 /**
757 * Compares a node with this node with regard to their position in the
758 * tree and according to the document order. This order can be extended
759 * by module that define additional types of nodes.
760 * @param other The node to compare against this node.
761 * @return Returns how the given node is positioned relatively to this
762 * node.
763 * @since DOM Level 3
764 * @deprecated
765 */
766 @Deprecated
767 public short compareTreePosition(Node other) {
768 // Questions of clarification for this method - to be answered by the
769 // DOM WG. Current assumptions listed - LM
770 //
771 // 1. How do ENTITY nodes compare?
772 // Current assumption: TREE_POSITION_DISCONNECTED, as ENTITY nodes
773 // aren't really 'in the tree'
774 //
775 // 2. How do NOTATION nodes compare?
776 // Current assumption: TREE_POSITION_DISCONNECTED, as NOTATION nodes
777 // aren't really 'in the tree'
778 //
779 // 3. Are TREE_POSITION_ANCESTOR and TREE_POSITION_DESCENDANT
780 // only relevant for nodes that are "part of the document tree"?
781 // <outer>
782 // <inner myattr="true"/>
783 // </outer>
784 // Is the element node "outer" considered an ancestor of "myattr"?
785 // Current assumption: No.
786 //
|