286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 286N/A * This code is free software; you can redistribute it and/or modify it 286N/A * under the terms of the GNU General Public License version 2 only, as 286N/A * published by the Free Software Foundation. Oracle designates this 286N/A * particular file as subject to the "Classpath" exception as provided 286N/A * by Oracle in the LICENSE file that accompanied this code. 286N/A * This code is distributed in the hope that it will be useful, but WITHOUT 286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 286N/A * version 2 for more details (a copy is included in the LICENSE file that 286N/A * accompanied this code). 286N/A * You should have received a copy of the GNU General Public License version 286N/A * 2 along with this work; if not, write to the Free Software Foundation, 286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 286N/A * or visit www.oracle.com if you need additional information or have any 286N/A * This file is available under and governed by the GNU General Public 286N/A * License version 2 only, as published by the Free Software Foundation. 286N/A * However, the following notice accompanied the original version of this 286N/A * file and, per its terms, should not be removed: 286N/A * Copyright (c) 2004 World Wide Web Consortium, 286N/A * (Massachusetts Institute of Technology, European Research Consortium for 286N/A * Informatics and Mathematics, Keio University). All Rights Reserved. This 286N/A * work is distributed under the W3C(r) Software License [1] in the hope that 286N/A * it will be useful, but WITHOUT ANY WARRANTY; without even the implied 286N/A * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 286N/A * This interface represents a known entity, either parsed or unparsed, in an 286N/A * XML document. Note that this models the entity itself <em>not</em> the entity declaration. 286N/A * <p>The <code>nodeName</code> attribute that is inherited from 286N/A * <code>Node</code> contains the name of the entity. 286N/A * <p>An XML processor may choose to completely expand entities before the 286N/A * structure model is passed to the DOM; in this case there will be no 286N/A * <code>EntityReference</code> nodes in the document tree. 286N/A * <p>XML does not mandate that a non-validating XML processor read and 286N/A * process entity declarations made in the external subset or declared in 286N/A * parameter entities. This means that parsed entities declared in the 286N/A * external subset need not be expanded by some classes of applications, and 286N/A * replacement text</a> is available, the corresponding <code>Entity</code> node's child list 286N/A * represents the structure of that replacement value. Otherwise, the child 286N/A * <p>DOM Level 3 does not support editing <code>Entity</code> nodes; if a 286N/A * user wants to make changes to the contents of an <code>Entity</code>, 286N/A * every related <code>EntityReference</code> node has to be replaced in the 286N/A * structure model by a clone of the <code>Entity</code>'s contents, and 286N/A * then the desired changes must be made to each of those clones instead. 286N/A * <code>Entity</code> nodes and all their descendants are readonly. 286N/A * <p>An <code>Entity</code> node does not have any parent. 286N/A * <p ><b>Note:</b> If the entity contains an unbound namespace prefix, the 286N/A * <code>namespaceURI</code> of the corresponding node in the 286N/A * <code>Entity</code> node subtree is <code>null</code>. The same is true 286N/A * for <code>EntityReference</code> nodes that refer to this entity, when 286N/A * they are created using the <code>createEntityReference</code> method of 286N/A * the <code>Document</code> interface. 286N/A * The public identifier associated with the entity if specified, and 286N/A * <code>null</code> otherwise. 286N/A * The system identifier associated with the entity if specified, and 286N/A * <code>null</code> otherwise. This may be an absolute URI or not. 286N/A * For unparsed entities, the name of the notation for the entity. For 286N/A * parsed entities, this is <code>null</code>. 286N/A * An attribute specifying the encoding used for this entity at the time 286N/A * of parsing, when it is an external parsed entity. This is 286N/A * <code>null</code> if it an entity from the internal subset or if it 286N/A * An attribute specifying, as part of the text declaration, the encoding 286N/A * of this entity, when it is an external parsed entity. This is 286N/A * <code>null</code> otherwise. 286N/A * An attribute specifying, as part of the text declaration, the version 286N/A * number of this entity, when it is an external parsed entity. This is 286N/A * <code>null</code> otherwise.