|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.NameProvider
public class NameProvider
This class maintains the single global NameProvider. There is no default name provider, so if the application doesn't
provide one, the static method getName
will always return the constant NO_NAME_STRING
,
which will be something like "NO_NAME_STRING".
Typically at start up an application will locate a dictionary file, use the NameProviderFactory
to
create a INameProvider
, and then call the static method @link #setProvider(INameProvider).
Method Summary | |
---|---|
static java.lang.String |
getName(BaseStructure structure)
Returns the pretty name of some evio structure. |
static boolean |
isProviderSet()
Returns true if the provider (dictionary) was set, else false. |
static void |
setProvider(INameProvider aProvider)
Sets the one global (singleton) name provider. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isProviderSet()
true
if the provider (dictionary) was set, else false
.public static void setProvider(INameProvider aProvider)
aProvider
- the provider to use.public static java.lang.String getName(BaseStructure structure)
structure
- the structure to find the name of.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |