01: /*
02: * Copyright 2001-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: Translet.java,v 1.8 2004/02/16 20:54:58 minchau Exp $
18: */
19:
20: package org.apache.xalan.xsltc;
21:
22: import org.apache.xml.dtm.DTMAxisIterator;
23: import org.apache.xml.serializer.SerializationHandler;
24:
25: /**
26: * @author Jacek Ambroziak
27: * @author Santiago Pericas-Geertsen
28: */
29: public interface Translet {
30:
31: public void transform(DOM document, SerializationHandler handler)
32: throws TransletException;
33:
34: public void transform(DOM document, SerializationHandler[] handlers)
35: throws TransletException;
36:
37: public void transform(DOM document, DTMAxisIterator iterator,
38: SerializationHandler handler) throws TransletException;
39:
40: public Object addParameter(String name, Object value);
41:
42: public void buildKeys(DOM document, DTMAxisIterator iterator,
43: SerializationHandler handler, int root)
44: throws TransletException;
45:
46: public void addAuxiliaryClass(Class auxClass);
47:
48: public Class getAuxiliaryClass(String className);
49:
50: public String[] getNamesArray();
51:
52: public String[] getUrisArray();
53:
54: public int[] getTypesArray();
55:
56: public String[] getNamespaceArray();
57: }
|