public final class ChoiceFactory extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static Map<String,Object> |
datamap
Storage of various registered objects
|
private static Map<String,Class<Choice>> |
map
Store of the known ChoiceTypes
|
Modifier | Constructor and Description |
---|---|
private |
ChoiceFactory()
Prevent instantiation
|
Modifier and Type | Method and Description |
---|---|
static Choice |
getChoice(org.jdom2.Element option,
ResourceBundle configResources)
Get a ChoiceFactory by element.
|
static Map<String,Object> |
getDataMap()
Method getDataMap.
|
public static Choice getChoice(org.jdom2.Element option, ResourceBundle configResources) throws ClassNotFoundException, IllegalAccessException, InstantiationException, StartupException
option
- The element to checkconfigResources
- the resource bundle holding the optionInstantiationException
- if this data
represents an abstract class,
an interface, an array class, a primitive type, or void;
or if the class has no nullary constructor;
or if the instantiation fails for some other reason.ClassNotFoundException
- if the class is not foundIllegalAccessException
- if the class or its nullary
constructor is not accessible.StartupException
- if startup is not possible