1 /*
2  * reserved comment block
3  * DO NOT REMOVE OR ALTER!
4  */
5 /*
6  * Licensed to the Apache Software Foundation (ASF) under one or more
7  * contributor license agreements.  See the NOTICE file distributed with
8  * this work for additional information regarding copyright ownership.
9  * The ASF licenses this file to You under the Apache License, Version 2.0
10  * (the "License"); you may not use this file except in compliance with
11  * the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 package com.sun.org.apache.xml.internal.serializer;
23 
24 import javax.xml.transform.Transformer;
25 
26 import org.w3c.dom.Node;
27 /**
28  * This interface is meant to be used by a base interface to
29  * TransformState, but which as only the setters which have non Xalan
30  * specific types in their signature, so that there are no dependancies
31  * of the serializer on Xalan.
32  *
33  * This interface is not a public API, it is only public because it is
34  * used by Xalan.
35  *
36  * @see com.sun.org.apache.xalan.internal.transformer.TransformState
37  * @xsl.usage internal
38  */
39 public interface TransformStateSetter
40 {
41 
42 
43   /**
44    * Set the current node.
45    *
46    * @param n The current node.
47    */
setCurrentNode(Node n)48   void setCurrentNode(Node n);
49 
50   /**
51    * Reset the state on the given transformer object.
52    *
53    * @param transformer
54    */
resetState(Transformer transformer)55   void resetState(Transformer transformer);
56 
57 }
58