Adempiere 3.5.2a

org.adempiere.util
Class ModelInterfaceGenerator

java.lang.Object
  extended by org.adempiere.util.ModelInterfaceGenerator

public class ModelInterfaceGenerator
extends Object

Version:
$Id$
Author:
Trifon Trifonov, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1781629 ] Don't use Env.NL in model class/interface generators
  • FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
  • BF [ 1781632 ] Generated class/interfaces should be UTF-8
  • better formating of generated source
  • BF [ 1787833 ] ModelInterfaceGenerator: don't write timestamp
  • FR [ 1803309 ] Model generator: generate get method for Search cols, Victor Perez, e-Evolution
  • FR [ 1785001 ] Using ModelPackage of EntityType to Generate Model Class

  • Field Summary
    static String COPY
              File Header
    static String NL
               
     
    Constructor Summary
    ModelInterfaceGenerator(int AD_Table_ID, String directory, String packageName)
               
     
    Method Summary
     void generateJavaComment(String startOfComment, String propertyName, String description, StringBuffer result)
               
    static void main(String[] args)
              Generate Interface.
     String toString()
              String representation
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Field Detail

    NL

    public static final String NL
    See Also:
    Constant Field Values

    COPY

    public static final String COPY
    File Header

    See Also:
    Constant Field Values
    Constructor Detail

    ModelInterfaceGenerator

    public ModelInterfaceGenerator(int AD_Table_ID,
                                   String directory,
                                   String packageName)
    Method Detail

    generateJavaComment

    public void generateJavaComment(String startOfComment,
                                    String propertyName,
                                    String description,
                                    StringBuffer result)

    toString

    public String toString()
    String representation

    Overrides:
    toString in class Object
    Returns:
    string representation

    main

    public static void main(String[] args)
    Generate Interface.
            Example: java GenerateInterafce.class mydirectory myPackage 'U','A'
            would generate entity type User and Application classes into mydirectory.
            Without parameters, the default is used:
            C:\extend\src\compiere\model\ compiere.model 'U','A'
            
     

    Parameters:
    args - directory package entityType - directory where to save the generated file - package of the classes to be generated - entityType to be generated

    Adempiere 3.5.2a

    Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.