public class DemoSuite extends java.lang.Object implements IDemoSuite
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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)
public void accept(IDemoVisitor visitor)
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)
public java.lang.String getName()
null
.public int getDemoCount()
getDemoCount
in interface IDemoSuite
JDemo homepage: http://www.jdemo.de
Copyright © 2003-2012 Markus Gebhard. All Rights Reserved.