001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.xerces.impl.dtd;
019:
020: /**
021: * @xerces.internal
022: *
023: * @version $Id: XMLEntityDecl.java 446755 2006-09-15 21:56:27Z mrglavas $
024: */
025: public class XMLEntityDecl {
026:
027: //
028: // Data
029: //
030:
031: /** name */
032: public String name;
033:
034: /** publicId */
035: public String publicId;
036:
037: /** systemId */
038: public String systemId;
039:
040: /** baseSystemId */
041: public String baseSystemId;
042:
043: /** notation */
044: public String notation;
045:
046: /** isPE */
047: public boolean isPE;
048:
049: /** inExternal */
050: /** <strong>Note:</strong> flag of where the entity is defined, not whether it is a external entity */
051: public boolean inExternal;
052:
053: /** Value. */
054: public String value;
055:
056: //
057: // Methods
058: //
059:
060: /**
061: * setValues
062: *
063: * @param name
064: * @param publicId
065: * @param systemId
066: * @param baseSystemId
067: * @param notation
068: * @param isPE
069: * @param inExternal
070: */
071: public void setValues(String name, String publicId,
072: String systemId, String baseSystemId, String notation,
073: boolean isPE, boolean inExternal) {
074: setValues(name, publicId, systemId, baseSystemId, notation,
075: null, isPE, inExternal);
076: }
077:
078: /**
079: * setValues
080: *
081: * @param name
082: * @param publicId
083: * @param systemId
084: * @param baseSystemId
085: * @param value
086: * @param notation
087: * @param isPE
088: * @param inExternal
089: */
090: public void setValues(String name, String publicId,
091: String systemId, String baseSystemId, String notation,
092: String value, boolean isPE, boolean inExternal) {
093: this .name = name;
094: this .publicId = publicId;
095: this .systemId = systemId;
096: this .baseSystemId = baseSystemId;
097: this .notation = notation;
098: this .value = value;
099: this .isPE = isPE;
100: this .inExternal = inExternal;
101: } // setValues(String,String,String,String,String,boolean,boolean)
102:
103: /**
104: * clear
105: */
106: public void clear() {
107: this .name = null;
108: this .publicId = null;
109: this .systemId = null;
110: this .baseSystemId = null;
111: this .notation = null;
112: this .value = null;
113: this .isPE = false;
114: this .inExternal = false;
115:
116: } // clear
117:
118: } // class XMLEntityDecl
|