|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtestcase.core.model.AssertParamInstance
public class AssertParamInstance
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 | |
---|---|
AssertParamInstance(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(AssertParamInstance nestedInstance)
Adds a nested assert instance to the list of nested instances |
static AssertParamInstance |
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)
|
static AssertParamInstance |
createAssertParamInstance(org.jdom.Element expected)
Creates an assert instance from an assert element. |
boolean |
equals(AssertParamInstance 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(AssertParamInstance 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 AssertParamInstance(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 elementsMethod 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 AbstractType
AbstractType.getName()
public java.lang.String getType()
AbstractType
getType
in interface AbstractType
AbstractType.getType()
public java.lang.String getAction()
public java.lang.String getContent()
AbstractType
getContent
in interface AbstractType
AbstractType.getContent()
public java.lang.String getKey_type()
AbstractType
getKey_type
in interface AbstractType
AbstractType.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 AbstractType
AbstractType.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(AssertParamInstance nestedInstance)
nestedInstance
- an assert instancepublic void removeAssert(AssertParamInstance nestedInstance)
public java.util.List getNestedInstances()
AbstractType
getNestedInstances
in interface AbstractType
AbstractType.getNestedInstances()
public java.lang.Object getUISupport()
getUISupport
in interface IUINode
public java.lang.String getNodeImage()
getNodeImage
in interface IUINode
public java.lang.String getNodeLabel()
getNodeLabel
in interface IUINode
public void add(IUINode toAdd)
add
in interface IUINode
public IUINode getNode()
getNode
in interface IUINode
public java.util.List getNodes()
getNodes
in interface IUINode
public void remove(IUINode toRemove)
remove
in interface IUINode
public int size()
size
in interface IUINode
public boolean equals(AssertParamInstance anotherExpectedInstance)
anotherExpectedInstance
-
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isGUIsupported()
isGUIsupported
in interface IUINode
public void setGUIsupported(boolean isGUIsupported)
public static AssertParamInstance createAssertParamInstance(org.jdom.Element expected)
expected
- the assert element
public static AssertParamInstance 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 |