1 /*
2 * Copyright 2005-2007 Werner Guttmann
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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 package org.exolab.castor.builder.printing;
17
18 import org.exolab.javasource.JClass;
19
20 /**
21 * Interface for printing {@link JClass} instances as Java source code to the
22 * file system.
23 */
24 public interface JClassPrinter {
25
26 /**
27 * Prints the given {@link JClass} instance to the given output directory.
28 *
29 * @param jClass The JClass to print.
30 * @param outputDir The target directory.
31 * @param lineSeparator The line separator to use.
32 * @param header The standard header to print.
33 */
34 void printClass(final JClass jClass, final String outputDir,
35 final String lineSeparator, final String header);
36
37 }