org.exolab.castor.builder
Class SGStateInfo

java.lang.Object
  extended byorg.exolab.castor.builder.util.ClassInfoResolverImpl
      extended byorg.exolab.castor.builder.SGStateInfo
All Implemented Interfaces:
ClassInfoResolver

class SGStateInfo
extends ClassInfoResolverImpl

A class for maintaining state for the SourceGenerator

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:07:44 $
Author:
Keith Visco

Field Summary
protected  java.lang.String packageName
          The package used when creating new classes.
 
Constructor Summary
protected SGStateInfo(Schema schema)
          Creates a new SGStateInfo
 
Method Summary
(package private)  FactoryState getCurrentFactoryState()
          Returns the current FactoryState that holds information about the classes being generated.
(package private)  Dialog getDialog()
          Returns the Dialog used for interacting with the user
(package private)  Schema getSchema()
           
(package private)  boolean getSuppressNonFatalWarnings()
           
(package private)  void markAsProcessed(JClass jClass)
          Marks the given JClass as having been processed.
(package private)  boolean processed(JClass jClass)
          Returns true if the given JClass has been marked as processed
(package private)  boolean promptForOverwrite()
           
(package private)  void setCurrentFactoryState(FactoryState state)
          Sets the current FactoryState.
(package private)  void setDialog(Dialog dialog)
          Sets the Dialog used for interacting with the user
(package private)  void setPromptForOverwrite(boolean promptForOverwrite)
           
(package private)  void setSuppressNonFatalWarnings(boolean suppressNonFatalWarnings)
           
(package private)  void setVerbose(boolean verbose)
          Sets whether or not the source code generator prints additional messages during generating source code
(package private)  boolean verbose()
          Returns the value of the verbose flag.
 
Methods inherited from class org.exolab.castor.builder.util.ClassInfoResolverImpl
bindReference, keys, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packageName

protected java.lang.String packageName
The package used when creating new classes.

Constructor Detail

SGStateInfo

protected SGStateInfo(Schema schema)
Creates a new SGStateInfo

Method Detail

markAsProcessed

void markAsProcessed(JClass jClass)
Marks the given JClass as having been processed.

Parameters:
jClass - the JClass to mark as having been processed.

processed

boolean processed(JClass jClass)
Returns true if the given JClass has been marked as processed

Parameters:
jClass - the JClass to check for being marked as processed

promptForOverwrite

boolean promptForOverwrite()

setPromptForOverwrite

void setPromptForOverwrite(boolean promptForOverwrite)

getSchema

Schema getSchema()

getSuppressNonFatalWarnings

boolean getSuppressNonFatalWarnings()

setSuppressNonFatalWarnings

void setSuppressNonFatalWarnings(boolean suppressNonFatalWarnings)

getDialog

Dialog getDialog()
Returns the Dialog used for interacting with the user

Returns:
the Dialog, or null if none has been set.

setDialog

void setDialog(Dialog dialog)
Sets the Dialog used for interacting with the user

Parameters:
dialog - the Dialog to use

setVerbose

void setVerbose(boolean verbose)
Sets whether or not the source code generator prints additional messages during generating source code

Parameters:
verbose - a boolean, when true indicates to print additional messages

verbose

boolean verbose()
Returns the value of the verbose flag. A true value indicates that additional messages may be printed during processing

Returns:
the value of the verbose flag.

getCurrentFactoryState

FactoryState getCurrentFactoryState()
Returns the current FactoryState that holds information about the classes being generated.

Returns:
the current FactoryState

setCurrentFactoryState

void setCurrentFactoryState(FactoryState state)
Sets the current FactoryState.

Parameters:
state - the current FactoryState
See Also:
getCurrentFactoryState()


Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com