public class OBOPreferenceLoader extends BasePreferenceLoader implements PreferenceLoader
log, prefs
Constructor and Description |
---|
OBOPreferenceLoader(java.net.URI OBOPreferences)
Constructor for creating an OBOPreferenceLoader.
|
OBOPreferenceLoader(java.net.URI OBOPreferences,
boolean validate)
Constructor for creating an OBOPreferenceLoader.
|
Modifier and Type | Method and Description |
---|---|
LoaderPreferences |
load()
Returns a generic Preferences object.
|
boolean |
validate()
Validates an XML preferences file against its corresponding XSD.
|
getPreferencesURI, setPreferencesURI, unmarshal, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferencesURI, setPreferencesURI
public OBOPreferenceLoader(java.net.URI OBOPreferences, boolean validate) throws LgConvertException
OBOPreferences
- The location of the XML preferences file.validate
- Whether or not to validate the preferences XML against the
associated XML schema. This will look for invalid, extra, or
missing values. Note that even if this is 'false', the XML
will be structurally validated. This means that even if it is
not validated against the schema, it will still be validated
to ensure it is a well-structured XML file.LgConvertException
- Thrown if the XML is not a valid XML file, or if 'validate'
is true this exception will be thrown if the XML does not
validate against the schema.public OBOPreferenceLoader(java.net.URI OBOPreferences) throws LgConvertException
OBOPreferences
- The location of the XML preferences file.LgConvertException
- Thrown if the XML is not a valid XML file, or if the XML does
not validate against the schema.public boolean validate()
validate
in interface PreferenceLoader
public LoaderPreferences load() throws LgConvertException
PreferenceLoader
load
in interface PreferenceLoader
LgConvertException