1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * The Apache Software License, Version 1.1 7 * 8 * 9 * Copyright (c) 1999-2002 The Apache Software Foundation. All rights 10 * reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 16 * 1. Redistributions of source code must retain the above copyright 17 * notice, this list of conditions and the following disclaimer. 18 * 19 * 2. Redistributions in binary form must reproduce the above copyright 20 * notice, this list of conditions and the following disclaimer in 21 * the documentation and/or other materials provided with the 22 * distribution. 23 * 24 * 3. The end-user documentation included with the redistribution, 25 * if any, must include the following acknowledgment: 26 * "This product includes software developed by the 27 * Apache Software Foundation (http://www.apache.org/)." 28 * Alternately, this acknowledgment may appear in the software itself, 29 * if and wherever such third-party acknowledgments normally appear. 30 * 31 * 4. The names "Xerces" and "Apache Software Foundation" must 32 * not be used to endorse or promote products derived from this 33 * software without prior written permission. For written 34 * permission, please contact apache@apache.org. 35 * 36 * 5. Products derived from this software may not be called "Apache", 37 * nor may "Apache" appear in their name, without prior written 38 * permission of the Apache Software Foundation. 39 * 40 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 41 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 42 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 43 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 44 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 46 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 47 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 48 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 49 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 50 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51 * SUCH DAMAGE. 52 * ==================================================================== 53 * 54 * This software consists of voluntary contributions made by many 55 * individuals on behalf of the Apache Software Foundation and was 56 * originally based on software copyright (c) 1999, International 57 * Business Machines, Inc., http://www.apache.org. For more 58 * information on the Apache Software Foundation, please see 59 * <http://www.apache.org/>. 60 */ 61 62 package com.sun.org.apache.xerces.internal.impl.dtd; 63 64 /** 65 */ 66 public class XMLEntityDecl { 67 68 // 69 // Data 70 // 71 72 /** name */ 73 public String name; 74 75 /** publicId */ 76 public String publicId; 77 78 /** systemId */ 79 public String systemId; 80 81 /** baseSystemId */ 82 public String baseSystemId; 83 84 /** notation */ 85 public String notation; 86 87 /** isPE */ 88 public boolean isPE; 89 90 /** inExternal */ 91 /** <strong>Note:</strong> flag of where the entity is defined, not whether it is a external entity */ 92 public boolean inExternal; 93 94 /** Value. */ 95 public String value; 96 97 // 98 // Methods 99 // 100 101 /** 102 * setValues 103 * 104 * @param name 105 * @param publicId 106 * @param systemId 107 * @param baseSystemId 108 * @param notation 109 * @param isPE 110 * @param inExternal 111 */ setValues(String name, String publicId, String systemId, String baseSystemId, String notation, boolean isPE, boolean inExternal)112 public void setValues(String name, String publicId, String systemId, 113 String baseSystemId, String notation, 114 boolean isPE, boolean inExternal) { 115 setValues(name, publicId, systemId, baseSystemId, notation, null, isPE, inExternal); 116 } 117 118 /** 119 * setValues 120 * 121 * @param name 122 * @param publicId 123 * @param systemId 124 * @param baseSystemId 125 * @param value 126 * @param notation 127 * @param isPE 128 * @param inExternal 129 */ setValues(String name, String publicId, String systemId, String baseSystemId, String notation, String value, boolean isPE, boolean inExternal)130 public void setValues(String name, String publicId, String systemId, 131 String baseSystemId, String notation, 132 String value, boolean isPE, boolean inExternal) { 133 this.name = name; 134 this.publicId = publicId; 135 this.systemId = systemId; 136 this.baseSystemId = baseSystemId; 137 this.notation = notation; 138 this.value = value; 139 this.isPE = isPE; 140 this.inExternal = inExternal; 141 } // setValues(String,String,String,String,String,boolean,boolean) 142 143 /** 144 * clear 145 */ clear()146 public void clear() { 147 this.name = null; 148 this.publicId = null; 149 this.systemId = null; 150 this.baseSystemId = null; 151 this.notation = null; 152 this.value = null; 153 this.isPE = false; 154 this.inExternal = false; 155 156 } // clear 157 158 } // class XMLEntityDecl 159