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 * <code>LSSerializerFilter</code>s provide applications the ability to 286N/A * examine nodes as they are being serialized and decide what nodes should 286N/A * be serialized or not. The <code>LSSerializerFilter</code> interface is 286N/A * <p> <code>Document</code>, <code>DocumentType</code>, 286N/A * <code>DocumentFragment</code>, <code>Notation</code>, <code>Entity</code> 286N/A * , and children of <code>Attr</code> nodes are not passed to the filter. 286N/A * The child nodes of an <code>EntityReference</code> node are only passed 286N/A * to the filter if the <code>EntityReference</code> node is skipped by the 286N/A * method <code>LSParserFilter.acceptNode()</code>. 286N/A * <p> When serializing an <code>Element</code>, the element is passed to the 286N/A * filter before any of its attributes are passed to the filter. Namespace 286N/A * declaration attributes, and default attributes (except in the case when " 286N/A * discard-default-content" is set to <code>false</code>), are never passed 286N/A * <p> The result of any attempt to modify a node passed to a 286N/A * <code>LSSerializerFilter</code> is implementation dependent. 286N/A * <p> DOM applications must not raise exceptions in a filter. The effect of 286N/A * throwing exceptions from a filter is DOM implementation dependent. 286N/A * <p> For efficiency, a node passed to the filter may not be the same as the 286N/A * one that is actually in the tree. And the actual node (node object 286N/A * identity) may be reused during the process of filtering and serializing a 286N/Aand Save Specification</a>. 286N/A * Tells the <code>LSSerializer</code> what types of nodes to show to the 286N/A * filter. If a node is not shown to the filter using this attribute, it 286N/A * is automatically serialized. See <code>NodeFilter</code> for 286N/A * definition of the constants. The constants <code>SHOW_DOCUMENT</code> 286N/A * , <code>SHOW_DOCUMENT_TYPE</code>, <code>SHOW_DOCUMENT_FRAGMENT</code> 286N/A * , <code>SHOW_NOTATION</code>, and <code>SHOW_ENTITY</code> are 286N/A * meaningless here, such nodes will never be passed to a 286N/A * <code>LSSerializerFilter</code>. 286N/A * , the <code>SHOW_ATTRIBUTE</code> constant indicates that the 286N/A * <code>Attr</code> nodes are shown and passed to the filter.