All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mybatis.generator.api.JavaFormatter Maven / Gradle / Ivy

The newest version!
/*
 *  Copyright 2011 The MyBatis Team
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.mybatis.generator.api;

import org.mybatis.generator.api.dom.java.CompilationUnit;
import org.mybatis.generator.config.Context;

/**
 * Objects implementing this interface are used to convert the internal 
 * representation of the Java DOM classes into a string suitable for
 * saving to the file system.  Note that the string generated by this
 * class will be saved directly to the file system with no additional modifications.
 * 
 * Only one instance of the class will be created in each context.  Configuration can
 * be passed into the class through the use of properties in the Context.
 * 
 * @author Jeff Butler
 *
 */
public interface JavaFormatter {
    void setContext(Context context);
    String getFormattedContent(CompilationUnit compilationUnit);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy