|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.MockCentralNodeModel
org.mockcentral.editor.nodes.MockCentralGroupNodeModel
org.mockcentral.editor.nodes.fixture_group.FixtureGroupModel
public class FixtureGroupModel
A class that models the list of Fixtures defined in the configuration file.
| Field Summary | |
|---|---|
protected FixtureGroupNode |
node
The FixtureGroupNode associated with this model. |
| Fields inherited from class org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
|---|
observers |
| Fields inherited from class org.mockcentral.editor.nodes.MockCentralNodeModel |
|---|
element |
| Constructor Summary | |
|---|---|
FixtureGroupModel(MockCentralNode node)
Casts and assigns the MockCentralNode. |
|
| Method Summary | |
|---|---|
FixtureNode |
createFixtureNode(java.lang.String fixtureName,
java.lang.String fixtureDescription)
Creates and returns a new FixtureNode from the supplied
data. |
java.lang.String |
getChildNodeTypeDescription(boolean singular)
Returns a String description of the MockCentralNode's child
type, ie "Fixture", "Mock Object" etc. |
java.lang.String |
getDefaultNewFixtureName()
Returns a default new Fixture name value, which will be unique. |
java.lang.String |
getImportingFixtureName(java.lang.String fixtureName)
Returns the name of the first Fixture found that imports the Fixture with the supplied name. |
boolean |
isDuplicateFixtureName(java.lang.String fixtureName,
int elementHashCode)
Returns whether the supplied Fixture name is in use for a Fixture not identified by the supplied hashcode. |
boolean |
isFixtureNameInUse(java.lang.String fixtureName)
Returns whether the supplied Fixture name is already in use within the document. |
void |
removeChildNode(MockCentralNode childNode)
Deletes the indexed child MockCentralNode. |
void |
updateImportedFixtureName(java.lang.String oldFixtureName,
java.lang.String newFixtureName)
Updates the "importFixture" element instances for all
Fixtures that import one whose name has been changed. |
| Methods inherited from class org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
|---|
addChildNode, addObserver, editSelectedChild, fireChildrenChanged, getChildren, getElement, loadElementData, sortChildren |
| Methods inherited from class org.mockcentral.editor.nodes.MockCentralNodeModel |
|---|
addObserver, getEnclosingFixtureNode, getNode, getNotRemovableMessage, getObservers, registerChanges, removeObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FixtureGroupNode node
FixtureGroupNode associated with this model.
| Constructor Detail |
|---|
public FixtureGroupModel(MockCentralNode node)
MockCentralNode.
node - the MockCentralNode containing the JDOM
element whose data this class models.| Method Detail |
|---|
public boolean isFixtureNameInUse(java.lang.String fixtureName)
IFixtureNameEditor
isFixtureNameInUse in interface IFixtureNameEditorfixtureName - the proposed name for the Fixture.
public java.lang.String getDefaultNewFixtureName()
public boolean isDuplicateFixtureName(java.lang.String fixtureName,
int elementHashCode)
fixtureName - the proposed FixtureName
public java.lang.String getChildNodeTypeDescription(boolean singular)
MockCentralGroupNodeModelMockCentralNode's child
type, ie "Fixture", "Mock Object" etc.
getChildNodeTypeDescription in class MockCentralGroupNodeModelsingular - value for whether the String should be in singular form.
MockCentralNode type.public void removeChildNode(MockCentralNode childNode)
MockCentralGroupNodeModelMockCentralNode.
removeChildNode in class MockCentralGroupNodeModelchildNode - the child MockCentralNode to delete.
public FixtureNode createFixtureNode(java.lang.String fixtureName,
java.lang.String fixtureDescription)
FixtureNode from the supplied
data.
fixtureName - the name for the new Fixture.fixtureDescription - the description for the new Fixture.
FixtureNode created from the data.
public void updateImportedFixtureName(java.lang.String oldFixtureName,
java.lang.String newFixtureName)
element instances for all
Fixtures that import one whose name has been changed.
oldFixtureName - the old name of the imported Fixture.newFixtureName - the new name for the imported Fixture.public java.lang.String getImportingFixtureName(java.lang.String fixtureName)
fixtureName - the name of the possibly imported Fixture.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||