KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > opti > NodeImpl


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.xs.opti;
18
19 /**
20  * @xerces.internal
21  *
22  * @author Rahul Srivastava, Sun Microsystems Inc.
23  *
24  * @version $Id: NodeImpl.java,v 1.4 2004/10/06 15:14:49 mrglavas Exp $
25  */

26 public class NodeImpl extends DefaultNode {
27     
28     String JavaDoc prefix;
29     String JavaDoc localpart;
30     String JavaDoc rawname;
31     String JavaDoc uri;
32     short nodeType;
33     boolean hidden;
34     
35     
36     public NodeImpl() {
37     }
38     
39     
40     public NodeImpl(String JavaDoc prefix, String JavaDoc localpart, String JavaDoc rawname, String JavaDoc 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
49     public String JavaDoc getNodeName() {
50         return rawname;
51     }
52
53
54     public String JavaDoc getNamespaceURI() {
55         return uri;
56     }
57
58
59     public String JavaDoc getPrefix() {
60         return prefix;
61     }
62
63
64     public String JavaDoc getLocalName() {
65         return localpart;
66     }
67     
68     
69     public short getNodeType() {
70         return nodeType;
71     }
72
73
74     // other methods
75

76     public void setReadOnly(boolean hide, boolean deep) {
77         hidden = hide;
78     }
79     
80     
81     public boolean getReadOnly() {
82         return hidden;
83     }
84 }
Popular Tags