|
||||||||||
| 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.mockobject_group.MockObjectGroupModel
public class MockObjectGroupModel
A class that models the list of Mock Objects defined in a Fixture.
| Field Summary |
|---|
| Fields inherited from class org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
|---|
observers |
| Fields inherited from class org.mockcentral.editor.nodes.MockCentralNodeModel |
|---|
element, node |
| Constructor Summary | |
|---|---|
MockObjectGroupModel(MockCentralNode node)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getChildNodeTypeDescription(boolean singular)
Returns a String description of the MockCentralNode's child
type, ie "Fixture", "Mock Object" etc. |
MockCentralTableModel<MockCentralNode> |
getClonableMockObjectsListModel()
Returns the MockCentralTableModel for the list of Mock
Objects available for cloning. |
java.lang.String |
getFirstReferencingMockObjectName(MockObjectNode mockObjectNode)
Returns the name of the the first found Mock Object within the Fixture that references (as a method parameter or result) the one defined by the supplied MockObjectNode, if any. |
MockObjectModel |
getMockObjectModel(java.lang.String mockObjectName)
Returns the MockObjectModel for the Mock Object identified
by the parameter. |
boolean |
isDuplicateJndiName(java.lang.String jndiName,
java.lang.Object o)
Returns whether an new or edited Mock Object JNDI name is already in use. |
boolean |
isDuplicateMockObjectName(java.lang.String mockObjectName,
int elementHashCode)
Returns whether the supplied Mock Object name is in use for a Mock Object not identified by the supplied hashcode. |
| Methods inherited from class org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
|---|
addChildNode, addObserver, editSelectedChild, fireChildrenChanged, getChildren, getElement, loadElementData, removeChildNode, 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 |
| Constructor Detail |
|---|
public MockObjectGroupModel(MockCentralNode node)
node - the MockCentralNode containing the JDOM
Element whose data this class models.| Method Detail |
|---|
public MockCentralTableModel<MockCentralNode> getClonableMockObjectsListModel()
MockCentralTableModel for the list of Mock
Objects available for cloning.
MockCentralTableModel for the list of Mock
Objects available for cloning.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 MockObjectModel getMockObjectModel(java.lang.String mockObjectName)
MockObjectModel for the Mock Object identified
by the parameter.
mockObjectName - the name of the Mock Object.
MockObjectModel for the Mock Object identified
by the parameter.
public boolean isDuplicateMockObjectName(java.lang.String mockObjectName,
int elementHashCode)
mockObjectName - the proposed Mock Object name.elementHashCode - the hashcode of the jdom element
identifying the Mock Object being edited so it can be excluded from
duplicate name testing.
public boolean isDuplicateJndiName(java.lang.String jndiName,
java.lang.Object o)
jndiName - the new or edited Mock Object JNDI name.o - the Object to test for eqivalency to any currently defined Mock
Object.
public java.lang.String getFirstReferencingMockObjectName(MockObjectNode mockObjectNode)
MockObjectNode, if any.
mockObjectNode - the MockObjectNode defining the Mock
Object to test.
MockObjectNode, if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||