Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxp/src/javax/xml/transform/sax/TemplatesHandler.java
32288 views
/*1* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.transform.sax;2627import javax.xml.transform.*;2829import org.xml.sax.ContentHandler;3031/**32* A SAX ContentHandler that may be used to process SAX33* parse events (parsing transformation instructions) into a Templates object.34*35* <p>Note that TemplatesHandler does not need to implement LexicalHandler.</p>36*/37public interface TemplatesHandler extends ContentHandler {3839/**40* When a TemplatesHandler object is used as a ContentHandler41* for the parsing of transformation instructions, it creates a Templates object,42* which the caller can get once the SAX events have been completed.43*44* @return The Templates object that was created during45* the SAX event process, or null if no Templates object has46* been created.47*48*/49public Templates getTemplates();5051/**52* Set the base ID (URI or system ID) for the Templates object53* created by this builder. This must be set in order to54* resolve relative URIs in the stylesheet. This must be55* called before the startDocument event.56*57* @param systemID Base URI for this stylesheet.58*/59public void setSystemId(String systemID);6061/**62* Get the base ID (URI or system ID) from where relative63* URLs will be resolved.64* @return The systemID that was set with {@link #setSystemId}.65*/66public String getSystemId();67}686970