|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtestcase.core.model.AssertInstance
public class AssertInstance
Represents an assert tag from the JTestCaseWizard XML.
| Field Summary | |
|---|---|
java.lang.String |
content
The content of the assert element |
java.lang.String |
key_type
The type of the keys for complex types in assert elements |
java.lang.String |
name
The name of the assert |
java.util.List |
nestedInstances
The list of nested instances in the assert |
java.lang.String |
type
The type of the assert |
java.lang.String |
value_type
The type of the value for complex types in assert elements |
| Constructor Summary | |
|---|---|
AssertInstance(java.lang.String name,
java.lang.String type,
java.lang.String action,
java.lang.String content,
java.lang.String key_type,
java.lang.String value_type)
Standard constructor. |
|
| Method Summary | |
|---|---|
void |
add(IUINode toAdd)
Callback function should delegate to addAssert() |
void |
addAssert(AssertInstance nestedInstance)
Adds a nested assert instance to the list of nested instances |
static AssertInstance |
createAssertInstance(org.jdom.Element expected)
Creates an assert instance from an assert element. |
static AssertInstance |
createAssertInstance(java.lang.String name,
java.lang.String type,
java.lang.String action,
java.lang.String content,
java.lang.String key_type,
java.lang.String value_type)
|
boolean |
equals(AssertInstance anotherExpectedInstance)
two ExpectedInstances should be considered equal if their fields are equal name field is case sensitive type field is not case sensitive ( to review ) content field is case sensitive |
java.lang.String |
getAction()
Returns the action of the assert |
java.lang.String |
getContent()
Returns the content of the param or assert element |
java.lang.String |
getKey_type()
Returns the type of the keys for complex types in param or assert elements |
java.lang.String |
getName()
Returns the name of the param or assert |
java.util.List |
getNestedInstances()
Returns the list of nested instances in the param or assert |
IUINode |
getNode()
|
java.lang.String |
getNodeImage()
|
java.lang.String |
getNodeLabel()
|
java.util.List |
getNodes()
|
java.lang.String |
getType()
Returns the type of the param or assert |
java.lang.Object |
getUISupport()
|
java.lang.String |
getValue_type()
Returns the type of the value for complex types in param or assert elements |
boolean |
isGUIsupported()
|
void |
remove(IUINode toRemove)
|
void |
removeAssert(AssertInstance nestedInstance)
|
void |
setAction(java.lang.String action)
Sets the action of the assert |
void |
setContent(java.lang.String content)
Sets the content of the assert element |
void |
setGUIsupported(boolean isGUIsupported)
|
void |
setKey_type(java.lang.String key_type)
Sets the type of the keys for complex types in assert elements |
void |
setName(java.lang.String name)
Sets the name of the assert |
void |
setType(java.lang.String type)
Sets the type of the assert |
void |
setValue_type(java.lang.String value_type)
Sets the type of the value for complex types in assert elements |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
public java.lang.String type
public java.lang.String content
public java.lang.String key_type
public java.lang.String value_type
public java.util.List nestedInstances
| Constructor Detail |
|---|
public AssertInstance(java.lang.String name,
java.lang.String type,
java.lang.String action,
java.lang.String content,
java.lang.String key_type,
java.lang.String value_type)
name - the name of the asserttype - the type of the assertaction - the action string for this assertcontent - the content of the assert elementkey_type - the type of the keys for complex types in assert elementsvalue_type - the type of the value for complex types in assert elements| Method Detail |
|---|
public void setName(java.lang.String name)
name - the name of the assertpublic void setType(java.lang.String type)
type - the type of the assertpublic void setAction(java.lang.String action)
action - the action of the assertpublic void setContent(java.lang.String content)
content - the content of the assert elementpublic java.lang.String getName()
AbstractType
getName in interface AbstractTypeAbstractType.getName()public java.lang.String getType()
AbstractType
getType in interface AbstractTypeAbstractType.getType()public java.lang.String getAction()
public java.lang.String getContent()
AbstractType
getContent in interface AbstractTypeAbstractType.getContent()public java.lang.String getKey_type()
AbstractType
getKey_type in interface AbstractTypeAbstractType.getKey_type()public void setKey_type(java.lang.String key_type)
key_type - the type of the keys for complex types in assert elementspublic java.lang.String getValue_type()
AbstractType
getValue_type in interface AbstractTypeAbstractType.getValue_type()public void setValue_type(java.lang.String value_type)
value_type - the type of the value for complex types in assert elementspublic void addAssert(AssertInstance nestedInstance)
nestedInstance - an assert instancepublic void removeAssert(AssertInstance nestedInstance)
public java.util.List getNestedInstances()
AbstractType
getNestedInstances in interface AbstractTypeAbstractType.getNestedInstances()public java.lang.Object getUISupport()
getUISupport in interface IUINodepublic java.lang.String getNodeImage()
getNodeImage in interface IUINodepublic java.lang.String getNodeLabel()
getNodeLabel in interface IUINodepublic void add(IUINode toAdd)
add in interface IUINodepublic IUINode getNode()
getNode in interface IUINodepublic java.util.List getNodes()
getNodes in interface IUINodepublic void remove(IUINode toRemove)
remove in interface IUINodepublic int size()
size in interface IUINodepublic boolean equals(AssertInstance anotherExpectedInstance)
anotherExpectedInstance -
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isGUIsupported()
isGUIsupported in interface IUINodepublic void setGUIsupported(boolean isGUIsupported)
public static AssertInstance createAssertInstance(org.jdom.Element expected)
expected - the assert element
public static AssertInstance createAssertInstance(java.lang.String name,
java.lang.String type,
java.lang.String action,
java.lang.String content,
java.lang.String key_type,
java.lang.String value_type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||