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)
PersistenceService
ActionListener
to the menu item, since the
PersistenceHandler
will manage to invoke the required actions.getJMenueItem
in interface PersistenceService
action
- the persistence action that has to be executed with the returning menu itempublic int getIndexPositionOfMenuItem()
PersistenceService
getIndexPositionOfMenuItem
in interface PersistenceService
#getJMenueItem(PersistenceAction)
public TechnicalSystemGroup loadTechnicalSystemGroup(GroupController gc, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroup
TechnicalSystemGroup
.loadTechnicalSystemGroup
in interface PersistenceServiceTechnicalSystemGroup
gc
- the current GroupController
invoker
- the invoker componentpublic TechnicalSystemGroup loadTechnicalSystemGroup(GroupController gc, java.io.File fileToLoad, java.awt.Component invoker)
gc
- the current GroupController
fileToLoad
- the file to loadinvoker
- the invoker componentpublic boolean saveTechnicalSystemGroup(GroupController gc, TechnicalSystemGroup tsgSave, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroup
TechnicalSystemGroup
.saveTechnicalSystemGroup
in interface PersistenceServiceTechnicalSystemGroup
gc
- the current GroupController
tsgSave
- the TechnicalSystemGroup to saveinvoker
- the invoker componentpublic boolean saveTechnicalSystemGroupAs(GroupController gc, TechnicalSystemGroup tsgSaveAs, java.awt.Component invoker)
PersistenceServiceTechnicalSystemGroup
saveTechnicalSystemGroupAs
in interface PersistenceServiceTechnicalSystemGroup
gc
- the current GroupController
tsgSaveAs
- 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 GroupController
technicalSystemGroup
- the technical systempublic TechnicalSystemGroup getTechnicalSystemGroupFromBase64String(GroupController gc, java.lang.String base64EncodedModel)
TechnicalSystemGroup
from a base64 string.gc
- the current GroupController
base64EncodedModel
- the base64 encoded model