public class TechnicalSystem_BundleLoader extends java.lang.Object implements PersistenceServiceTechnicalSystem
| Modifier and Type | Class and Description |
|---|---|
class |
TechnicalSystem_BundleLoader.BundleModel
The Class BundleModel serves as reminder class for bundle specific reminder for system definitions.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EOM_MANIFEST_ENTRY_TECHNICAL_SYSTEM |
| Constructor and Description |
|---|
TechnicalSystem_BundleLoader() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
TechnicalSystem |
getTechnicalSystemFromEOMFile(java.io.InputStream inputStream)
Gets the technical system from eom file.
|
TechnicalSystem |
getTechnicalSystemFromXMLFile(java.io.InputStream inputStream)
Load model from a XML file.
|
TechnicalSystem |
loadTechnicalSystem(OptionModelController omc,
java.awt.Component invoker)
Load a
TechnicalSystem. |
TechnicalSystem |
loadTechnicalSystem(OptionModelController omc,
java.lang.String bundleName,
java.lang.String fileReference,
java.awt.Component invoker)
Tries to load the specified
TechnicalSystem. |
TechnicalSystem |
loadTechnicalSystemFromBundle(org.osgi.framework.Bundle bundle,
java.lang.String fileReference)
Load a TechnicalSystem from the specified bundle.
|
TechnicalSystem |
loadTechnicalSystemFromBundle(java.lang.String symbolicBundleName,
java.lang.String fileReference)
Load a TechnicalSystem from the specified bundle.
|
boolean |
saveTechnicalSystem(OptionModelController omc,
TechnicalSystem tsSave,
java.awt.Component invoker)
Save a
TechnicalSystem. |
boolean |
saveTechnicalSystemAs(OptionModelController omc,
TechnicalSystem tsSaveAs,
java.awt.Component invoker)
Save as the specified
TechnicalSystem. |
public static final java.lang.String EOM_MANIFEST_ENTRY_TECHNICAL_SYSTEM
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 TechnicalSystem loadTechnicalSystem(OptionModelController omc, java.awt.Component invoker)
PersistenceServiceTechnicalSystemTechnicalSystem.loadTechnicalSystem in interface PersistenceServiceTechnicalSystemomc - the current OptionModelControllerinvoker - the invoker componentpublic TechnicalSystem loadTechnicalSystem(OptionModelController omc, java.lang.String bundleName, java.lang.String fileReference, java.awt.Component invoker)
TechnicalSystem.omc - the current OptionModelControllerbundleName - the bundle namefileReference - the file referenceinvoker - the invokerpublic TechnicalSystem loadTechnicalSystemFromBundle(java.lang.String symbolicBundleName, java.lang.String fileReference)
symbolicBundleName - the symbolic bundle namefileReference - the bundle internal file referencepublic TechnicalSystem loadTechnicalSystemFromBundle(org.osgi.framework.Bundle bundle, java.lang.String fileReference)
bundle - the bundlefileReference - the bundle internal file referencepublic TechnicalSystem getTechnicalSystemFromXMLFile(java.io.InputStream inputStream)
technicalSystemFile - the file of the technical systempublic TechnicalSystem getTechnicalSystemFromEOMFile(java.io.InputStream inputStream)
technicalSystemFile - the technical system filepublic boolean saveTechnicalSystem(OptionModelController omc, TechnicalSystem tsSave, java.awt.Component invoker)
PersistenceServiceTechnicalSystemTechnicalSystem.saveTechnicalSystem in interface PersistenceServiceTechnicalSystemomc - the current OptionModelControllertsSave - the TechnicalSystem to saveinvoker - the invoker componentpublic boolean saveTechnicalSystemAs(OptionModelController omc, TechnicalSystem tsSaveAs, java.awt.Component invoker)
PersistenceServiceTechnicalSystemTechnicalSystem.saveTechnicalSystemAs in interface PersistenceServiceTechnicalSystemomc - the current OptionModelControllertsSaveAs - the TechnicalSystem to save-asinvoker - the invoker component