01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: /*
17: * $Id: TransformStateSetter.java,v 1.4 2005/01/23 00:52:41 mcnamara Exp $
18: */
19: package org.apache.xml.serializer;
20:
21: import javax.xml.transform.Transformer;
22:
23: import org.w3c.dom.Node;
24:
25: /**
26: * This interface is meant to be used by a base interface to
27: * TransformState, but which as only the setters which have non Xalan
28: * specific types in their signature, so that there are no dependancies
29: * of the serializer on Xalan.
30: *
31: * This interface is not a public API, it is only public because it is
32: * used by Xalan.
33: *
34: * @see org.apache.xalan.transformer.TransformState
35: * @xsl.usage internal
36: */
37: public interface TransformStateSetter {
38:
39: /**
40: * Set the current node.
41: *
42: * @param n The current node.
43: */
44: void setCurrentNode(Node n);
45:
46: /**
47: * Reset the state on the given transformer object.
48: *
49: * @param transformer
50: */
51: void resetState(Transformer transformer);
52:
53: }
|