|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.prs.builder.extension.PluginNodeBuilder
unbbayes.prs.builder.extension.impl.ClassInstantiationPluginNodeBuilder
public class ClassInstantiationPluginNodeBuilder
This is a plugin node builder which basically uses
Class.newInstance() in order to build a node.
It generates a name using a static numeric field
| Constructor Summary | |
|---|---|
ClassInstantiationPluginNodeBuilder()
The default constructor must be public for plugin support |
|
ClassInstantiationPluginNodeBuilder(Class clazz)
This is equivalent to calling ClassInstantiationPluginNodeBuilder()
and then setNodeClass(Class) |
|
| Method Summary | |
|---|---|
IPluginNode |
buildPluginNode()
Obtains an instance of plugin node |
static int |
getCounter()
|
String |
getNamePrefix()
|
Class |
getNodeClass()
This is the class (implementing IPluginNode) which will be instantiated by this builder |
static void |
setCounter(int counter)
|
void |
setNamePrefix(String namePrefix)
|
void |
setNodeClass(Class clazz)
This is the class (implementing IPluginNode) which will be instantiated by this builder |
| Methods inherited from class unbbayes.prs.builder.extension.PluginNodeBuilder |
|---|
buildNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassInstantiationPluginNodeBuilder()
public ClassInstantiationPluginNodeBuilder(Class clazz)
ClassInstantiationPluginNodeBuilder()
and then setNodeClass(Class)
clazz - | Method Detail |
|---|
public IPluginNode buildPluginNode()
throws InstantiationException,
IllegalAccessException
PluginNodeBuilder
buildPluginNode in class PluginNodeBuilderInstantiationException
IllegalAccessExceptionpublic Class getNodeClass()
public void setNodeClass(Class clazz)
clazz - the clazz to setpublic static int getCounter()
public static void setCounter(int counter)
counter - the counter to setpublic String getNamePrefix()
public void setNamePrefix(String namePrefix)
namePrefix - the namePrefix to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||