gov.llnl.babel.config
public class Metadata extends java.lang.Object
Metadata
class contains information from the machine
configuration database XML metadata file. It defines the languages
supported by the Babel compiler, the configuration options allowed
for each language, and the valid parameters for each option. A
Metadata
object is required to confirm the validity
of the configurations read from the machine configuration XML files.Constructor and Description |
---|
Metadata(java.lang.String uri)
The constructor for the
Metadata class initializes the
internal data structures and parses the specified XML document. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOptionDescription(java.lang.String language,
java.lang.String option)
Return a long description of the option for the specified language.
|
java.lang.String |
getOptionSummary(java.lang.String language,
java.lang.String option)
Return a short summary of the option for the specified language.
|
java.util.Set |
getValidLanguages()
Return the valid language names supported by the Babel compiler as
a set of strings.
|
java.util.Set |
getValidOptionParameters(java.lang.String language,
java.lang.String option)
Return the set of valid option parameter string associated with a
language and option.
|
java.util.Set |
getValidOptions(java.lang.String language)
Given a particular language, return the valid configuration option
strings supported by that language.
|
public Metadata(java.lang.String uri) throws java.io.IOException, org.xml.sax.SAXException
Metadata
class initializes the
internal data structures and parses the specified XML document.java.io.IOException
org.xml.sax.SAXException
public java.util.Set getValidLanguages()
public java.util.Set getValidOptions(java.lang.String language)
public java.util.Set getValidOptionParameters(java.lang.String language, java.lang.String option)
public java.lang.String getOptionSummary(java.lang.String language, java.lang.String option)
public java.lang.String getOptionDescription(java.lang.String language, java.lang.String option)