public class OAISetsXMLConfigManager
extends java.lang.Object
RepositoryManager
. See
sample ListSets XML config file .Modifier and Type | Method and Description |
---|---|
static SetDefinitionsForm |
getSetDefinitionsForm(java.lang.String listSetsXml,
java.lang.String setSpec)
Reads the ListSets config XML to extract the set definition for a given set into a SetDefinitionsForm
bean.
|
static boolean |
removeOAISetSpecDefinition(java.io.File setsConfigFile,
java.lang.String setSpec)
Removes the given OAI set definition from the ListSets config XML file and writes it to disc.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
static void |
setOAISetSpecDefinition(java.io.File setsConfigFile,
SetDefinitionsForm sb)
Sets the definition for a given OAI set, writing the ListSets config XML to file.
|
public static SetDefinitionsForm getSetDefinitionsForm(java.lang.String listSetsXml, java.lang.String setSpec) throws java.lang.Exception
listSetsXml
- The ListSets config XML to readsetSpec
- The setSpec to readjava.lang.Exception
- If error parsing the XMLpublic static boolean removeOAISetSpecDefinition(java.io.File setsConfigFile, java.lang.String setSpec) throws java.lang.Exception
setsConfigFile
- The ListSets config filesetSpec
- The set to removejava.lang.Exception
- If errorpublic static void setOAISetSpecDefinition(java.io.File setsConfigFile, SetDefinitionsForm sb) throws java.lang.Exception
setsConfigFile
- File to read/writesb
- The bean that contains the set definition valuesjava.lang.Exception
- If errorpublic static void setDebug(boolean db)
db
- The new debug value