|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.gui.action.genref.ReferenceGeneratorCollection
public class ReferenceGeneratorCollection
ReferenceGeneratorCollection: A collection of the ReferenceGenerators available to the application, with routines to produce arrays, and to return a reference to the user's chosen default reference generator. Follows the Singleton pattern, allowing global static access via its methods; it constructs its internal collection of generators the first time any of its methods get called.
Field Summary | |
---|---|
protected static java.util.TreeMap<java.lang.String,ReferenceGenerator> |
generatorCollection
|
protected static boolean |
initialized
|
Constructor Summary | |
---|---|
ReferenceGeneratorCollection()
|
Method Summary | |
---|---|
static ReferenceGenerator |
getDefaultGenerator()
Returns the user's currently chosen default reference generator. |
static ReferenceGenerator |
getGeneratorByName(java.lang.String name)
Return the global instance of the named generator. |
static int |
getPosOfGeneratorInList(ReferenceGenerator generatorToFind)
Given a name of a ReferenceGenrator, return the position in the array of that class. |
static ReferenceGenerator[] |
getReferenceGenerators()
Returns an array containing instantiations of all the available ReferenceGenerator subclasses |
protected static void |
initCollection()
Initialize the collection with objects representing each available kind of reference generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean initialized
protected static java.util.TreeMap<java.lang.String,ReferenceGenerator> generatorCollection
Constructor Detail |
---|
public ReferenceGeneratorCollection()
Method Detail |
---|
protected static void initCollection()
public static ReferenceGenerator[] getReferenceGenerators()
public static int getPosOfGeneratorInList(ReferenceGenerator generatorToFind)
generatorName
- The name of the ReferenceGenerator to locate
public static ReferenceGenerator getGeneratorByName(java.lang.String name)
name
- The name of the generator to retrieve
NoSuchReferenceGenerator
- if a non-existence ReferenceGenerator is requested.public static ReferenceGenerator getDefaultGenerator()
NoSuchReferenceGenerator
- if the default ReferenceGenerator is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |