org.jlab.coda.jevio
Class NameProviderFactory
java.lang.Object
org.jlab.coda.jevio.NameProviderFactory
public class NameProviderFactory
- extends java.lang.Object
A Factory class for generating an appropriate INameProvider. It makes its decisions based on the dictionary file that
it gets handed in its only public method, createNameProvider
. For example, if it is given an xml file
(based on a ".xml" extension) it guesses that you want a reader that can handle the xml diction file developed for
GEMC.
- Author:
- heddle
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameProviderFactory
public NameProviderFactory()
createNameProvider
public static INameProvider createNameProvider(java.io.File file)
- Creates a NameProvider based on the file name.
- Parameters:
file
- dictionary file.
- Returns:
- a NameProvider appropriate for the fileName.
createNameProvider
public static INameProvider createNameProvider(java.lang.String xmlString)
- Creates a NameProvider based on the file name.
- Parameters:
xmlString
- xml dictionary string.
- Returns:
- a NameProvider appropriate for the fileName.