~vcs-imports/xena/trunk

« back to all changes in this revision

Viewing changes to ext/src/xerces-2_9_1/src/org/apache/xerces/impl/dtd/XMLEntityDecl.java

  • Committer: matthewoliver
  • Date: 2009-12-10 03:18:07 UTC
  • Revision ID: vcs-imports@canonical.com-20091210031807-l086qguzdlljtkl9
Merged Xena Testing into Xena Stable for the Xena 5 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
 
3
 * contributor license agreements.  See the NOTICE file distributed with
 
4
 * this work for additional information regarding copyright ownership.
 
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
6
 * (the "License"); you may not use this file except in compliance with
 
7
 * the License.  You may obtain a copy of the License at
 
8
 * 
 
9
 *      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.dtd;
 
19
 
 
20
/**
 
21
 * @xerces.internal
 
22
 * 
 
23
 * @version $Id: XMLEntityDecl.java,v 1.2 2009/12/10 03:18:34 matthewoliver Exp $
 
24
 */
 
25
public class XMLEntityDecl {
 
26
 
 
27
    //
 
28
    // Data
 
29
    //
 
30
 
 
31
    /** name */
 
32
    public String name;
 
33
 
 
34
    /** publicId */
 
35
    public String publicId;
 
36
 
 
37
    /** systemId */
 
38
    public String systemId;
 
39
 
 
40
    /** baseSystemId */
 
41
    public String baseSystemId;
 
42
 
 
43
    /** notation */
 
44
    public String notation;
 
45
 
 
46
    /** isPE */
 
47
    public boolean isPE;
 
48
 
 
49
    /** inExternal */
 
50
    /** <strong>Note:</strong> flag of where the entity is defined, not whether it is a external entity */
 
51
    public boolean inExternal;
 
52
 
 
53
    /** Value. */
 
54
    public String value;
 
55
 
 
56
    //
 
57
    // Methods
 
58
    //
 
59
 
 
60
    /**
 
61
     * setValues
 
62
     * 
 
63
     * @param name 
 
64
     * @param publicId 
 
65
     * @param systemId 
 
66
     * @param baseSystemId 
 
67
     * @param notation 
 
68
     * @param isPE 
 
69
     * @param inExternal
 
70
     */
 
71
    public void setValues(String name, String publicId, String systemId, 
 
72
                          String baseSystemId, String notation, 
 
73
                          boolean isPE, boolean inExternal) {
 
74
        setValues(name, publicId, systemId, baseSystemId, notation, null, isPE, inExternal);
 
75
    }
 
76
 
 
77
    /**
 
78
     * setValues
 
79
     * 
 
80
     * @param name 
 
81
     * @param publicId 
 
82
     * @param systemId 
 
83
     * @param baseSystemId 
 
84
     * @param value
 
85
     * @param notation 
 
86
     * @param isPE 
 
87
     * @param inExternal
 
88
     */
 
89
    public void setValues(String name, String publicId, String systemId, 
 
90
                          String baseSystemId, String notation, 
 
91
                          String value, boolean isPE, boolean inExternal) {
 
92
        this.name         = name;
 
93
        this.publicId     = publicId;
 
94
        this.systemId     = systemId;
 
95
        this.baseSystemId = baseSystemId;
 
96
        this.notation     = notation;
 
97
        this.value        = value;
 
98
        this.isPE         = isPE;
 
99
        this.inExternal   = inExternal;
 
100
    } // setValues(String,String,String,String,String,boolean,boolean)
 
101
 
 
102
    /**
 
103
     * clear
 
104
     */
 
105
    public void clear() {
 
106
       this.name         = null;
 
107
       this.publicId     = null;
 
108
       this.systemId     = null;
 
109
       this.baseSystemId = null;
 
110
       this.notation     = null;
 
111
       this.value        = null;
 
112
       this.isPE         = false;
 
113
       this.inExternal   = false;
 
114
 
 
115
    } // clear
 
116
 
 
117
} // class XMLEntityDecl