public class TechnicalSystemGroup_StorageHandler extends java.lang.Object implements PersistenceServiceTechnicalSystemGroup
| Constructor and Description |
|---|
TechnicalSystemGroup_StorageHandler() |
| Modifier and Type | Method and Description |
|---|---|
GroupController |
getGroupController()
Gets the internal group controller.
|
int |
getIndexPositionOfMenuItem()
Has to return a desired index position for the JMenuItem to be returned through the current implementation.
|
javax.swing.JMenuItem |
getJMenueItem(PersistenceHandler.PersistenceAction action)
Has to return a JMenuItem for the specified persistence action.
|
java.lang.String |
getTechnicalSystemGroupAsBase64String(GroupController gc,
TechnicalSystemGroup technicalSystemGroup)
Returns a
TechnicalSystemGroup instance as base64 string. |
java.lang.String |
getTechnicalSystemGroupAsXMLString(GroupController gc,
TechnicalSystemGroup technicalSystemGroup)
Returns the model of a technical system group as XML-string.
|
TechnicalSystemGroup |
getTechnicalSystemGroupFromBase64String(GroupController gc,
java.lang.String base64EncodedModel)
Returns a
TechnicalSystemGroup from a base64 string. |
TechnicalSystemGroup |
getTechnicalSystemGroupFromGOMFile(GroupController gc,
java.io.File groupFile)
Gets the technical system from group file.
|
TechnicalSystemGroup |
getTechnicalSystemGroupFromXMLFile(GroupController gc,
java.io.File groupFile)
Load model from a XML file.
|
TechnicalSystemGroup |
getTechnicalSystemGroupFromXMLString(GroupController gc,
java.lang.String xmlString)
Gets the technical system group from a XML string.
|
TechnicalSystemGroup |
loadTechnicalSystemGroup(GroupController gc,
java.awt.Component invoker)
Load a
TechnicalSystemGroup. |
TechnicalSystemGroup |
loadTechnicalSystemGroup(GroupController gc,
java.io.File fileToLoad,
java.awt.Component invoker)
Loads a technical system group.
|
boolean |
saveTechnicalSystemGroup(GroupController gc,
TechnicalSystemGroup tsgSave,
java.awt.Component invoker)
Save a
TechnicalSystemGroup. |
boolean |
saveTechnicalSystemGroupAs(GroupController gc,
TechnicalSystemGroup tsgSaveAs,
java.awt.Component invoker)
Save as the specified TechnicalSystemGroup.
|
boolean |
saveTechnicalSystemGroupAsGOMFile(GroupController gc,
java.io.File technicalSystemFile,
TechnicalSystemGroup technicalSystemGroup)
Saves an Instance of a
TechnicalSystemGroup as TXT file. |
boolean |
saveTechnicalSystemGroupAsXMLFile(GroupController gc,
java.io.File groupFile,
TechnicalSystemGroup technicalSystemGroup)
Saves an Instance of a
TechnicalSystemGroup as XML file. |
void |
setGroupController(GroupController groupController)
Sets the internal group controller.
|
public void setGroupController(GroupController groupController)
groupController - the new group controllerpublic GroupController getGroupController()
public javax.swing.JMenuItem getJMenueItem(PersistenceHandler.PersistenceAction action)
PersistenceServiceActionListener to the menu item, since the
PersistenceHandler will manage to invoke the required actions.getJMenueItem in interface PersistenceServiceaction - the persistence action that has to be executed with the returning menu itempublic int getIndexPositionOfMenuItem()
PersistenceServicegetIndexPositionOfMenuItem in interface PersistenceService#getJMenueItem(PersistenceAction)public TechnicalSystemGroup loadTechnicalSystemGroup(GroupController gc, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroupTechnicalSystemGroup.loadTechnicalSystemGroup in interface PersistenceServiceTechnicalSystemGroupgc - the current GroupControllerinvoker - the invoker componentpublic TechnicalSystemGroup loadTechnicalSystemGroup(GroupController gc, java.io.File fileToLoad, java.awt.Component invoker)
gc - the current GroupControllerfileToLoad - the file to loadinvoker - the invoker componentpublic boolean saveTechnicalSystemGroup(GroupController gc, TechnicalSystemGroup tsgSave, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroupTechnicalSystemGroup.saveTechnicalSystemGroup in interface PersistenceServiceTechnicalSystemGroupgc - the current GroupControllertsgSave - the TechnicalSystemGroup to saveinvoker - the invoker componentpublic boolean saveTechnicalSystemGroupAs(GroupController gc, TechnicalSystemGroup tsgSaveAs, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroupsaveTechnicalSystemGroupAs in interface PersistenceServiceTechnicalSystemGroupgc - the current GroupControllertsgSaveAs - the TechnicalSystemGroup to save-asinvoker - the invoker componentpublic TechnicalSystemGroup getTechnicalSystemGroupFromXMLFile(GroupController gc, java.io.File groupFile)
groupFile - the file of the technical systempublic boolean saveTechnicalSystemGroupAsXMLFile(GroupController gc, java.io.File groupFile, TechnicalSystemGroup technicalSystemGroup)
TechnicalSystemGroup as XML file.gc - the current GroupControllergroupFile - the file to that the model has be savedtechnicalSystemGroup - the technical systempublic TechnicalSystemGroup getTechnicalSystemGroupFromXMLString(GroupController gc, java.lang.String xmlString)
xmlString - the XML stringpublic java.lang.String getTechnicalSystemGroupAsXMLString(GroupController gc, TechnicalSystemGroup technicalSystemGroup)
gc - the current GroupControllertechnicalSystemGroup - the instance of the technical system grouppublic TechnicalSystemGroup getTechnicalSystemGroupFromGOMFile(GroupController gc, java.io.File groupFile)
gc - the current GroupControllergroupFile - the file of the group modelpublic boolean saveTechnicalSystemGroupAsGOMFile(GroupController gc, java.io.File technicalSystemFile, TechnicalSystemGroup technicalSystemGroup)
TechnicalSystemGroup as TXT file.gc - the current GroupControllertechnicalSystemFile - the file to that the model has be savedtechnicalSystemGroup - the technical systempublic java.lang.String getTechnicalSystemGroupAsBase64String(GroupController gc, TechnicalSystemGroup technicalSystemGroup)
TechnicalSystemGroup instance as base64 string.gc - the current GroupControllertechnicalSystemGroup - the technical systempublic TechnicalSystemGroup getTechnicalSystemGroupFromBase64String(GroupController gc, java.lang.String base64EncodedModel)
TechnicalSystemGroup from a base64 string.gc - the current GroupControllerbase64EncodedModel - the base64 encoded model