MockCentralEditor-Core

MockCentralEditor-Core defines interfaces and supplies logic and utility classes for concrete editor applications used to edit MockCentral configuration files.

See:
          Description

Packages
org.mockcentral.editor Contains a top-level classes and interfaces used to build editor applications for Mock Central configuration files.
org.mockcentral.editor.dialogs Contains interfaces and an enum used for creating and processing dialogs for editors used to edit MockCentral configuration files.
org.mockcentral.editor.logging Contain an interface used for message logging for the MockCentralEditor-Core library and concrete editor applications.
org.mockcentral.editor.nodes Contains classes and interfaces used for constructing, editing, copying and pasting the MockCentralNode instances that comprise the data modelled from a MockCentral configuration file.
org.mockcentral.editor.nodes.expectation Contains classes and interfaces used for editing the method expectations for Mock Object definitions.
org.mockcentral.editor.nodes.expectation_group Contains classes and interfaces used for editing the group of method expectations for Mock Object definitions.
org.mockcentral.editor.nodes.expectation.part Contains classes and interfaces used for editing the parameters or expected results for method expectations for Mock Object definitions.
org.mockcentral.editor.nodes.fixture Contains classes and interfaces used for editing Fixture instances used to group Mock Object definitions.
org.mockcentral.editor.nodes.fixture_group Contains classes and interfaces used for editing the group of Fixture instances used to group Mock Object definitions.
org.mockcentral.editor.nodes.mockobject Contains Interfaces and Classes used for editing Mock Object definitions.
org.mockcentral.editor.nodes.mockobject_group Contains classes and interfaces used for editing groups of Mock Object definitions.
org.mockcentral.editor.nodes.problem Contains classes, interfaces and enums used for managing problems associated with MockCentralNode instances.
org.mockcentral.editor.nodes.root Contains a class (RootNode) used as the root node for the outline display.
org.mockcentral.editor.outline Contains an interface (IMockCentralEditorOutline) defining methods for the tree-type viewer used for selecting MockObjectNode instances for editing.
org.mockcentral.editor.preferences Contains a class used for managing user preferences for the editor.
org.mockcentral.editor.viewers Contains classes and an interface used for constructing UI elements needed for displaying data in table or tree-type viewers.

 

MockCentralEditor-Core defines interfaces and supplies logic and utility classes for concrete editor applications used to edit MockCentral configuration files. It utilizes the JDOM library to build the data model from the xml document containing the mock object definitions. This editor architecture includes several top-level manager interfaces and classes (IMockCentralEditor and MockCentralApplication) and an outline or tree-type viewer (defined by the IMockCentralEditorOutline interface) used to select elements of the configuration file for editing. These editable elements are encapsulated in MockCentralNode instances, which store the JDOM Element data pertaining to the specific part of the file.

The structure provided by this library relies heavily on MVC design and thus there are MockCentralNodeModel and Controller classes corresponding to the various node types, as well as interfaces for the corresponding view classes.