|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MockCentralNodeType>
org.mockcentral.editor.nodes.MockCentralNodeType
public enum MockCentralNodeType
An enum specifying the various types of MockCentralNode.
| Enum Constant Summary | |
|---|---|
DELETED
The node has been deleted |
|
EXPECTATION
The node type for a method expectation. |
|
EXPECTATION_GROUP
The node type for a group of method expectations. |
|
FIXTURE
The node type for a fixture. |
|
FIXTURE_GROUP
The node type for a group of fixtures. |
|
MOCK_OBJECT
The node type for a Mock Object |
|
MOCK_OBJECT_GROUP
The node type for a group of Mock Objects |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getElementName()
Returns the JDOM Element name corresponding to this value. |
protected java.lang.Class<?> |
getNodeClass()
Returns the MockCentralNode class corresponding to this
value. |
static MockCentralNodeType |
getNodeType(java.lang.String elementName)
Returns a value from this enum based on the supplied element name. |
static MockCentralNodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MockCentralNodeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MockCentralNodeType FIXTURE_GROUP
public static final MockCentralNodeType FIXTURE
public static final MockCentralNodeType MOCK_OBJECT_GROUP
public static final MockCentralNodeType MOCK_OBJECT
public static final MockCentralNodeType EXPECTATION_GROUP
public static final MockCentralNodeType EXPECTATION
public static final MockCentralNodeType DELETED
| Method Detail |
|---|
public static MockCentralNodeType[] values()
for (MockCentralNodeType c : MockCentralNodeType.values()) System.out.println(c);
public static MockCentralNodeType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullprotected java.lang.String getElementName()
Element name corresponding to this value.
Element name corresponding to this value.protected java.lang.Class<?> getNodeClass()
MockCentralNode class corresponding to this
value.
MockCentralNode class corresponding to this
value.public static MockCentralNodeType getNodeType(java.lang.String elementName)
elementName - the JDOM Element name corresponding to
the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||