|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.UserConfiguration
gov.nih.nlm.mms.ApplicationConfiguration
public class ApplicationConfiguration
Represents all application-level configuration data. This is the set of static configuration data that does not change, such as the list of sources present in the current release, as well as the set of default configurations for the user data.
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.UserConfiguration |
|---|
default_subsets, selected_default_subset |
| Constructor Summary | |
|---|---|
ApplicationConfiguration(File config_file)
Constructs an ApplicationConfiguration from the specified
properties file. |
|
ApplicationConfiguration(Properties p)
Constructs an ApplicationConfiguration from the specified
Properties. |
|
| Method Summary | |
|---|---|
String |
getConfigDirectory()
Returns the path to the configuration directory. |
String |
getHomeDirectory()
Returns the path to the home directory. |
List |
getSemanticTypeChildren(String stn)
Returns the list of HierarchicalSemanticTypes that are children of
a specified tree number. |
Set |
getSemanticTypeChildrenAsSet(String stn)
Returns the set of HierarchicalSemanticTypes that are children of
a specified tree number. |
SourceTermType |
getSourceTermType(String sab,
String tty)
Returns the SourceTermType for the specified source abbreviation
and term type. |
List |
getSourceTermTypes()
Returns a List of all SourceTermType objects. |
boolean |
isSuppressedTerm(Atom a)
Returns a List of suppressible cui,sui values. |
protected Properties |
loadProperties(Properties props)
Configures the class by reading in Properties. |
void |
setConfigDirectory(String config_d)
Sets the path to the configuration directory. |
void |
setHomeDirectory(String home_d)
Sets the path to the home directory. |
void |
setSelectedDefaultSubset(DefaultSubset ds)
Gets called every time opened or changed config file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationConfiguration(File config_file)
throws LocalException
ApplicationConfiguration from the specified
properties file. Typically, this object is built from one of the
METAMSYS/config/mmsys.{a,b,c}.prop files.
config_file - a java properties File
LocalException - if there is a problem loading the properties file
public ApplicationConfiguration(Properties p)
throws LocalException
ApplicationConfiguration from the specified
Properties.
p - Properties
LocalException - if there is a problem loading the properties file| Method Detail |
|---|
public List getSemanticTypeChildren(String stn)
HierarchicalSemanticTypes that are children of
a specified tree number.
stn - a semantic type tree number
List of HierarchicalSemanticTypes that are
children ofpublic Set getSemanticTypeChildrenAsSet(String stn)
HierarchicalSemanticTypes that are children of
a specified tree number.
stn - a semantic type tree number
Set of HierarchicalSemanticTypes that are
children ofpublic List getSourceTermTypes()
List of all SourceTermType objects.
List of all SourceTermType objects.
public SourceTermType getSourceTermType(String sab,
String tty)
SourceTermType for the specified source abbreviation
and term type. If the source abbreviation and term type combination is not
valid, null is returned.
sab - a source abbreviation, can be root or versionedtty - a term type
SourceTermType for the specified source abbreviation
and term typepublic boolean isSuppressedTerm(Atom a)
List of suppressible cui,sui values. Each element of the
list is a String with the format "cui|sui".
a - Atom
List of suppressible cui,sui values.
protected Properties loadProperties(Properties props)
throws LocalException
Properties.
loadProperties in class UserConfigurationprops - default/application-level Properties
Properties
LocalExceptionpublic void setSelectedDefaultSubset(DefaultSubset ds)
setSelectedDefaultSubset in class UserConfigurationds - DefaultSubsetpublic String getConfigDirectory()
MMSYS/config directory.
public void setConfigDirectory(String config_d)
MMSYS/config directory.
config_d - the path to the configuration directorypublic void setHomeDirectory(String home_d)
home_d - the path to the home directorypublic String getHomeDirectory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||