public class FragmentFactory<F>
extends java.lang.Object
Constructor and Description |
---|
FragmentFactory() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
getClass(java.lang.String className)
Get the class for the specified class name.
|
static <F extends XML> |
newFragment(Store store,
org.w3c.dom.Element root)
Instantiate a fragment using its type.
|
public static java.lang.Class getClass(java.lang.String className) throws XBRLException
className
- The full name of the class to get.XBRLException
- if the class cannot be obtained.public static <F extends XML> F newFragment(Store store, org.w3c.dom.Element root) throws XBRLException
F
- The subclass of XML being returned.store
- The data store that contains the fragment.root
- The root element of the fragment.XBRLException
- if the class cannot be loaded.