|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jdemo.framework.DemoSuite
public class DemoSuite
Constructor Summary | |
---|---|
DemoSuite()
Constructs an empty DemoSuite. |
|
DemoSuite(java.lang.Class theClass)
Constructs a DemoSuite from the given class. |
|
DemoSuite(java.lang.Class theClass,
java.lang.String name)
Constructs a DemoSuite from the given class with the given name. |
|
DemoSuite(java.lang.String name)
Constructs an empty DemoSuite. |
Method Summary | |
---|---|
void |
accept(IDemoVisitor visitor)
|
void |
addDemo(IDemo demo)
Adds a demo to the suite. |
void |
addDemoSuite(java.lang.Class demoClass)
Adds the demos from the given class to the suite |
static IDemo |
createDemo(java.lang.Class theClass,
java.lang.String name)
...as the moon sets over the early morning Merlin, Oregon mountains, our intrepid adventurers type... |
IDemo |
getDemoAt(int index)
Returns the demo at the given index |
static java.lang.reflect.Constructor |
getDemoConstructor(java.lang.Class theClass)
Gets a constructor which takes a single String as its argument or a no arg constructor. |
int |
getDemoCount()
Returns the number of demos in this suite |
java.lang.String |
getName()
Returns the name of the suite. |
void |
setName(java.lang.String name)
Sets the name of the suite. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DemoSuite()
public DemoSuite(java.lang.Class theClass, java.lang.String name)
DemoSuite(Class)
public DemoSuite(java.lang.Class theClass)
public DemoSuite(java.lang.String name)
Method Detail |
---|
public void accept(IDemoVisitor visitor)
accept
in interface IDemo
public void addDemo(IDemo demo)
public void addDemoSuite(java.lang.Class demoClass)
public static IDemo createDemo(java.lang.Class theClass, java.lang.String name)
public static java.lang.reflect.Constructor getDemoConstructor(java.lang.Class theClass) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public IDemo getDemoAt(int index)
getDemoAt
in interface IDemoSuite
public java.lang.String toString()
toString
in class java.lang.Object
public void setName(java.lang.String name)
setName
in interface IDemo
name
- The name to setpublic java.lang.String getName()
null
.
getName
in interface IDemo
public int getDemoCount()
getDemoCount
in interface IDemoSuite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |