KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dtd > XMLEntityDecl


1 /*
2  * Copyright 1999-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.dtd;
18
19 /**
20  * @xerces.internal
21  *
22  * @version $Id: XMLEntityDecl.java,v 1.5 2004/10/04 21:57:30 mrglavas Exp $
23  */

24 public class XMLEntityDecl {
25
26     //
27
// Data
28
//
29

30     /** name */
31     public String JavaDoc name;
32
33     /** publicId */
34     public String JavaDoc publicId;
35
36     /** systemId */
37     public String JavaDoc systemId;
38
39     /** baseSystemId */
40     public String JavaDoc baseSystemId;
41
42     /** notation */
43     public String JavaDoc notation;
44
45     /** isPE */
46     public boolean isPE;
47
48     /** inExternal */
49     /** <strong>Note:</strong> flag of where the entity is defined, not whether it is a external entity */
50     public boolean inExternal;
51
52     /** Value. */
53     public String JavaDoc value;
54
55     //
56
// Methods
57
//
58

59     /**
60      * setValues
61      *
62      * @param name
63      * @param publicId
64      * @param systemId
65      * @param baseSystemId
66      * @param notation
67      * @param isPE
68      * @param inExternal
69      */

70     public void setValues(String JavaDoc name, String JavaDoc publicId, String JavaDoc systemId,
71                           String JavaDoc baseSystemId, String JavaDoc notation,
72                           boolean isPE, boolean inExternal) {
73         setValues(name, publicId, systemId, baseSystemId, notation, null, isPE, inExternal);
74     }
75
76     /**
77      * setValues
78      *
79      * @param name
80      * @param publicId
81      * @param systemId
82      * @param baseSystemId
83      * @param value
84      * @param notation
85      * @param isPE
86      * @param inExternal
87      */

88     public void setValues(String JavaDoc name, String JavaDoc publicId, String JavaDoc systemId,
89                           String JavaDoc baseSystemId, String JavaDoc notation,
90                           String JavaDoc value, boolean isPE, boolean inExternal) {
91         this.name = name;
92         this.publicId = publicId;
93         this.systemId = systemId;
94         this.baseSystemId = baseSystemId;
95         this.notation = notation;
96         this.value = value;
97         this.isPE = isPE;
98         this.inExternal = inExternal;
99     } // setValues(String,String,String,String,String,boolean,boolean)
100

101     /**
102      * clear
103      */

104     public void clear() {
105        this.name = null;
106        this.publicId = null;
107        this.systemId = null;
108        this.baseSystemId = null;
109        this.notation = null;
110        this.value = null;
111        this.isPE = false;
112        this.inExternal = false;
113
114     } // clear
115

116 } // class XMLEntityDecl
117
Popular Tags