01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.impl.xs.opti;
19:
20: /**
21: * @xerces.internal
22: *
23: * @author Rahul Srivastava, Sun Microsystems Inc.
24: *
25: * @version $Id: NodeImpl.java 446728 2006-09-15 20:43:46Z mrglavas $
26: */
27: public class NodeImpl extends DefaultNode {
28:
29: String prefix;
30: String localpart;
31: String rawname;
32: String uri;
33: short nodeType;
34: boolean hidden;
35:
36: public NodeImpl() {
37: }
38:
39: public NodeImpl(String prefix, String localpart, String rawname,
40: String uri, short nodeType) {
41: this .prefix = prefix;
42: this .localpart = localpart;
43: this .rawname = rawname;
44: this .uri = uri;
45: this .nodeType = nodeType;
46: }
47:
48: public String getNodeName() {
49: return rawname;
50: }
51:
52: public String getNamespaceURI() {
53: return uri;
54: }
55:
56: public String getPrefix() {
57: return prefix;
58: }
59:
60: public String getLocalName() {
61: return localpart;
62: }
63:
64: public short getNodeType() {
65: return nodeType;
66: }
67:
68: // other methods
69:
70: public void setReadOnly(boolean hide, boolean deep) {
71: hidden = hide;
72: }
73:
74: public boolean getReadOnly() {
75: return hidden;
76: }
77: }
|