org.devaki.nextobjects.util
Class NOFileManager

java.lang.Object
  extended byorg.devaki.nextobjects.util.NOFileManager

public final class NOFileManager
extends java.lang.Object

This class is responsible for managing model's files

Author:
Emmanuel Florent

Method Summary
static boolean close(BaseModel pNOModel)
          Actions executed when closing an internal frame
static boolean dumpProjectDotXml(BaseModel pModel)
          Ask for a file and the write a project.xml
static javax.swing.JFileChooser getChooser()
          the chooser accessor
static void goodbye()
          Operations to make when exiting nextObjects
static void initChooser()
          init the chooser
static void newConceptualModel()
          Open the default model
static void newPhysicalModel()
          Open the default physical model
static void openModel()
          Open a model
static void openModelFile(java.io.File in, boolean log)
          Open a model
static void save(BaseModel pModel)
          Save the current model to its default file
static void save(BaseModel pModel, java.io.File out)
          Save the current model
static boolean saveToFile()
          Save as a model
static boolean saveToFile(BaseModel pModel)
          Save a model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPhysicalModel

public static void newPhysicalModel()
Open the default physical model


newConceptualModel

public static void newConceptualModel()
Open the default model


saveToFile

public static boolean saveToFile(BaseModel pModel)
Save a model

Parameters:
pModel - the model
Returns:
done

goodbye

public static void goodbye()
Operations to make when exiting nextObjects


saveToFile

public static boolean saveToFile()
Save as a model

Returns:
done

close

public static boolean close(BaseModel pNOModel)
Actions executed when closing an internal frame

Parameters:
pNOModel - the model
Returns:
done

dumpProjectDotXml

public static boolean dumpProjectDotXml(BaseModel pModel)
Ask for a file and the write a project.xml

Parameters:
pModel - the model to write
Returns:
sucess

save

public static void save(BaseModel pModel)
Save the current model to its default file

Parameters:
pModel - the model

save

public static void save(BaseModel pModel,
                        java.io.File out)
Save the current model

Parameters:
pModel - the model
out - the output file

openModelFile

public static void openModelFile(java.io.File in,
                                 boolean log)
Open a model

Parameters:
in - the file
log - Description of the Parameter

openModel

public static void openModel()
Open a model


getChooser

public static javax.swing.JFileChooser getChooser()
the chooser accessor

Returns:
the chooser

initChooser

public static void initChooser()
init the chooser



Copyright © 2002-2004 devaki.org. All Rights Reserved.