maiolum
Class FragmentTypeFactory

java.lang.Object
  extended bymaiolum.FragmentTypeFactory

public class FragmentTypeFactory
extends java.lang.Object

Factory object that simplifies creating instances of FragmentType objects by name.


Constructor Summary
FragmentTypeFactory()
           
 
Method Summary
static FragmentType getFragmentTypeByName(java.lang.String name)
          Returns instance of one of the subclasses of FragmentType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentTypeFactory

public FragmentTypeFactory()
Method Detail

getFragmentTypeByName

public static FragmentType getFragmentTypeByName(java.lang.String name)
                                          throws java.lang.ClassNotFoundException,
                                                 java.lang.InstantiationException,
                                                 java.lang.IllegalAccessException
Returns instance of one of the subclasses of FragmentType. The exact type of the instance is specified of String name.

Ex.
getFragmentTypeByName("Chapter") returns an instance of Chapter object.

Returns:
instance of FragmentType with exact type given by name.
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException