|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.expectation.ExpectationElementBuilder
public class ExpectationElementBuilder
A class used to build a JDOM Element for a Mock Object method
expectation.
| Constructor Summary | |
|---|---|
ExpectationElementBuilder()
|
|
| Method Summary | |
|---|---|
static org.jdom.Element |
createExpectationElement(ExpectationDataBean bean)
Returns a new JDOM Element for a Mock Object method
expectation. |
static ExpectationModel |
createNewExpectationModel(MockObjectModel mockObjectModel)
Creates and returns a new ExpectationModel. |
static org.mockcentral.server.SignaturePartBean |
createSignaturePartBean(java.lang.Class<?> clazz,
boolean deduce)
Returns a SignaturePartBean created using the supplied
Class. |
static org.mockcentral.server.SignaturePartBean |
createSignaturePartBean(org.jdom.Element e,
java.util.List<NodeProblem> nodeProblems)
Returns a new SignaturePartBean constructed from data in the
supplied Element. |
static java.util.ArrayList<org.mockcentral.server.SignaturePartBean> |
createSignaturePartBeanList(java.util.List<java.lang.Class<?>> classes,
SignaturePartElementCreationStrategy strategy)
Returns a list of SignaturePartBean instances built from the
supplied Class list using the specified
SignaturePartElementCreationStrategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpectationElementBuilder()
| Method Detail |
|---|
public static org.jdom.Element createExpectationElement(ExpectationDataBean bean)
Element for a Mock Object method
expectation.
bean - the ExpectationDataBean containing the data for
building the Element.
Element for a Mock Object method
expectation.
public static org.mockcentral.server.SignaturePartBean createSignaturePartBean(org.jdom.Element e,
java.util.List<NodeProblem> nodeProblems)
SignaturePartBean constructed from data in the
supplied Element. Any errors generated during the process
will result in new NodeProblem instances being added to the
supplied list.
e - the JDOM Element.nodeProblems - the list for any NodeProblem instances.
SignaturePartBean constructed from data in the
supplied Element.
public static java.util.ArrayList<org.mockcentral.server.SignaturePartBean> createSignaturePartBeanList(java.util.List<java.lang.Class<?>> classes,
SignaturePartElementCreationStrategy strategy)
SignaturePartBean instances built from the
supplied Class list using the specified
SignaturePartElementCreationStrategy.
classes - the list of Classes.strategy - the SignaturePartElementCreationStrategy
SignaturePartBean instances built from the
supplied Class list.
public static org.mockcentral.server.SignaturePartBean createSignaturePartBean(java.lang.Class<?> clazz,
boolean deduce)
SignaturePartBean created using the supplied
Class. If the deduce flag is set, various strategies will be
used to set the bean's ValueType and value as necessary,
based on the class. If not, the bean's ValueType will be set
to null.
clazz - the Class.deduce - whether to use a deduction strategy in creating the bean.
SignaturePartBean created using the supplied
Class.public static ExpectationModel createNewExpectationModel(MockObjectModel mockObjectModel)
ExpectationModel.
mockObjectModel - the MockObjectModel to enclose the
new expectation, or null if none.
ExpectationModel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||