redora.generator
Class ModelGenerationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by redora.generator.ModelGenerationException
All Implemented Interfaces:
Serializable

public class ModelGenerationException
extends Exception

Occurs when it generates. Has a simple util to print the model.

Author:
Nanjing RedOrange (http://www.red-orange.cn)
See Also:
Serialized Form

Constructor Summary
ModelGenerationException(String s)
           
ModelGenerationException(String s, Exception e)
           
 
Method Summary
static String printInclude(FileLocations where, String includeFileName)
          Similar to the printModel, but then it takes the include file.
static String printModel(FileLocations where, String modelFileName)
          Return a string with the contents of the model's XML.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelGenerationException

public ModelGenerationException(String s,
                                Exception e)

ModelGenerationException

public ModelGenerationException(String s)
Method Detail

printModel

public static String printModel(FileLocations where,
                                String modelFileName)
Return a string with the contents of the model's XML.

Parameters:
where - (Mandatory)
modelFileName - (Mandatory) Filename including .xml suffix but without the path.
Returns:
Always something, the file as string or an error message.

printInclude

public static String printInclude(FileLocations where,
                                  String includeFileName)
Similar to the printModel, but then it takes the include file.

Parameters:
where - (Mandatory)
includeFileName - (Mandatory) Filename including .xml suffix but without the path.
Returns:
Always something, the file as string or an error message.


Copyright © 2012 Nanjing RedOrange Co. ltd. All Rights Reserved.