pt.moredata.netbeans.modules.moredatatemplates.generator
Class DataEntryGenerator

java.lang.Object
  extended bypt.moredata.netbeans.modules.moredatatemplates.generator.DataEntryGenerator
All Implemented Interfaces:
Generator

public class DataEntryGenerator
extends java.lang.Object
implements Generator

DataEntryGenerator.java Company MoreData

Version:
$Revision: 1.18 $
Author:
pcarmo

Field Summary
static java.lang.String COLUMNS_ITERATOR_MACRO_BEGIN
           
static java.lang.String COLUMNS_ITERATOR_MACRO_END
           
 
Method Summary
 org.openide.filesystems.FileObject generate()
          Gera todo o codigo atraves do DataEntryModel.
static DataEntryGenerator instance()
          Devolve a instancia (singleton) do DataEntryGenerator.
 void setDataEntryModel(DataEntryModel model)
          Store the reference to the data information
 boolean validateInformation()
          Validate if the information stored is correct to generate the data entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMNS_ITERATOR_MACRO_BEGIN

public static final java.lang.String COLUMNS_ITERATOR_MACRO_BEGIN
See Also:
Constant Field Values

COLUMNS_ITERATOR_MACRO_END

public static final java.lang.String COLUMNS_ITERATOR_MACRO_END
See Also:
Constant Field Values
Method Detail

instance

public static DataEntryGenerator instance()
Devolve a instancia (singleton) do DataEntryGenerator.

Returns:
A instancia (singleton) do DataEntryGenerator.

generate

public org.openide.filesystems.FileObject generate()
                                            throws java.io.IOException
Gera todo o codigo atraves do DataEntryModel.

Specified by:
generate in interface Generator
Returns:
The file object containing the code generated
Throws:
java.io.IOException - An exception trying openning the files or datanot setted

setDataEntryModel

public void setDataEntryModel(DataEntryModel model)
Store the reference to the data information

Specified by:
setDataEntryModel in interface Generator

validateInformation

public boolean validateInformation()
Validate if the information stored is correct to generate the data entry

Specified by:
validateInformation in interface Generator