286N/A/*
286N/A * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A *
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 *
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 *
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 *
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 * questions.
286N/A */
286N/A
286N/Apackage javax.xml.transform.sax;
286N/A
286N/Aimport javax.xml.transform.*;
286N/A
286N/Aimport org.xml.sax.ContentHandler;
286N/A
286N/A/**
286N/A * A SAX ContentHandler that may be used to process SAX
286N/A * parse events (parsing transformation instructions) into a Templates object.
286N/A *
286N/A * <p>Note that TemplatesHandler does not need to implement LexicalHandler.</p>
286N/A */
286N/Apublic interface TemplatesHandler extends ContentHandler {
286N/A
286N/A /**
286N/A * When a TemplatesHandler object is used as a ContentHandler
286N/A * for the parsing of transformation instructions, it creates a Templates object,
286N/A * which the caller can get once the SAX events have been completed.
286N/A *
286N/A * @return The Templates object that was created during
286N/A * the SAX event process, or null if no Templates object has
286N/A * been created.
286N/A *
286N/A */
286N/A public Templates getTemplates();
286N/A
286N/A /**
286N/A * Set the base ID (URI or system ID) for the Templates object
286N/A * created by this builder. This must be set in order to
286N/A * resolve relative URIs in the stylesheet. This must be
286N/A * called before the startDocument event.
286N/A *
286N/A * @param systemID Base URI for this stylesheet.
286N/A */
286N/A public void setSystemId(String systemID);
286N/A
286N/A /**
286N/A * Get the base ID (URI or system ID) from where relative
286N/A * URLs will be resolved.
286N/A * @return The systemID that was set with {@link #setSystemId}.
286N/A */
286N/A public String getSystemId();
286N/A}