1 /*
2  * reserved comment block
3  * DO NOT REMOVE OR ALTER!
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.impl.xs.opti;
23 
24 /**
25  * @xerces.internal
26  *
27  * @author Rahul Srivastava, Sun Microsystems Inc.
28  *
29  */
30 public class NodeImpl extends DefaultNode {
31 
32     String prefix;
33     String localpart;
34     String rawname;
35     String uri;
36     short nodeType;
37     boolean hidden;
38 
39 
NodeImpl()40     public NodeImpl() {
41     }
42 
43 
NodeImpl(String prefix, String localpart, String rawname, String uri, short nodeType)44     public NodeImpl(String prefix, String localpart, String rawname, String uri, short nodeType) {
45         this.prefix = prefix;
46         this.localpart = localpart;
47         this.rawname = rawname;
48         this.uri = uri;
49         this.nodeType = nodeType;
50     }
51 
52 
getNodeName()53     public String getNodeName() {
54         return rawname;
55     }
56 
57 
getNamespaceURI()58     public String getNamespaceURI() {
59         return uri;
60     }
61 
62 
getPrefix()63     public String getPrefix() {
64         return prefix;
65     }
66 
67 
getLocalName()68     public String getLocalName() {
69         return localpart;
70     }
71 
72 
getNodeType()73     public short getNodeType() {
74         return nodeType;
75     }
76 
77 
78     // other methods
79 
setReadOnly(boolean hide, boolean deep)80     public void setReadOnly(boolean hide, boolean deep) {
81         hidden = hide;
82     }
83 
84 
getReadOnly()85     public boolean getReadOnly() {
86         return hidden;
87     }
88 }
89