Package org.dlese.dpc.schemedit.config
Class FrameworkConfigReader
java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
org.dlese.dpc.schemedit.config.FrameworkConfigReader
- All Implemented Interfaces:
Serializable
Extracts info to augment that of the Schema from a framework configuration
file.
Used by the MetaDataFramework and is
required for each of of the frameworks supported by DCS.
- Author:
- ostwald
- See Also:
-
Field Summary
FieldsFields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the baseRenderLevel attribute of the FrameworkConfigReader objectGets the renderer attribute of the FrameworkConfigReader objectoptional nodeCreate a FieldInfoMap containing information about each fieldInfo path specified in the config file.getName()Gets the name attribute of the FrameworkConfigReader objectGets the pageList attribute of the FrameworkConfigReader objectbooleanGets the rebuildOnStart attribute of the FrameworkConfigReader object.Gets the recordsDir attribute of the FrameworkConfigReader objectGets the renderer attribute of the FrameworkConfigReader objectGets the rootElementName attribute of the FrameworkConfigReader objectGets the schemaPathMap attribute of the FrameworkConfigReader objectNot currently used - designed for future "pathSpec" which will be more flexible in specifying path-specific attributes and behaviours.Gets the schemaURI attribute of the FrameworkConfigReader objectGets the vocabLayoutURI attribute of the FrameworkConfigReader objectGets the xmlFormat attribute of the FrameworkConfigReader objectprotected static voidPrint a line to standard out.voidrefresh()Force update by clearing cached valuesvoidsetBaseRenderLevel(int level) Sets the baseRenderLevel attribute of the FrameworkConfigReader objectvoidSets the renderer attribute of the FrameworkConfigReader objectvoidSets the discussionURL attribute of the FrameworkConfigReader objectvoidSets the name attribute of the FrameworkConfigReader objectvoidsetRebuildOnStart(boolean bool) Sets the rebuildOnStart attribute of the FrameworkConfigReader objectvoidSets the recordsDir attribute of the FrameworkConfigReader objectvoidSets the renderer attribute of the FrameworkConfigReader objectvoidSets the rootElementName attribute of the FrameworkConfigReader objectvoidSets the schemaURI attribute of the FrameworkConfigReader objectvoidSets the xmlFormat attribute of the FrameworkConfigReader objectMethods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, flush, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, setNodeText, setSource
-
Field Details
-
debug
protected static boolean debugNOT YET DOCUMENTED
-
-
Constructor Details
-
FrameworkConfigReader
Create a FrameworkConfigReader.- Parameters:
source- Description of the Parameter- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
refresh
public void refresh()Force update by clearing cached values- Overrides:
refreshin classAbstractConfigReader
-
getBaseRenderLevel
public int getBaseRenderLevel()Gets the baseRenderLevel attribute of the FrameworkConfigReader object- Returns:
- The baseRenderLevel value
-
setBaseRenderLevel
public void setBaseRenderLevel(int level) Sets the baseRenderLevel attribute of the FrameworkConfigReader object- Parameters:
level- The new baseRenderLevel value
-
getDiscussionURL
optional node- Returns:
- The discussionURL value
-
setDiscussionURL
Sets the discussionURL attribute of the FrameworkConfigReader object- Parameters:
s- The new discussionURL value
-
getRebuildOnStart
public boolean getRebuildOnStart()Gets the rebuildOnStart attribute of the FrameworkConfigReader object. If no value is provided, or if the value is not "false", return "true".- Returns:
- The rebuildOnStart value
-
setRebuildOnStart
public void setRebuildOnStart(boolean bool) Sets the rebuildOnStart attribute of the FrameworkConfigReader object- Parameters:
bool- The new rebuildOnStart value
-
getSchemaPathMap
Gets the schemaPathMap attribute of the FrameworkConfigReader object- Returns:
- The schemaPathMap value
-
getUserInfo
-
getSchemaPathMapNew
Not currently used - designed for future "pathSpec" which will be more flexible in specifying path-specific attributes and behaviours.- Returns:
- The schemaPathMapNew value
-
getName
Gets the name attribute of the FrameworkConfigReader object- Returns:
- The name value
-
setName
Sets the name attribute of the FrameworkConfigReader object- Parameters:
s- The new name value
-
getRecordsDir
Gets the recordsDir attribute of the FrameworkConfigReader object- Returns:
- The recordsDir value
-
setRecordsDir
Sets the recordsDir attribute of the FrameworkConfigReader object- Parameters:
s- The new recordsDir value
-
getRenderer
Gets the renderer attribute of the FrameworkConfigReader object- Returns:
- The renderer value
-
setRenderer
Sets the renderer attribute of the FrameworkConfigReader object- Parameters:
s- The new renderer value
-
getBestPracticesLabel
Gets the renderer attribute of the FrameworkConfigReader object- Returns:
- The renderer value
-
setBestPracticesLabel
Sets the renderer attribute of the FrameworkConfigReader object- Parameters:
s- The new renderer value
-
getRootElementName
Gets the rootElementName attribute of the FrameworkConfigReader object- Returns:
- The rootElementName value
-
setRootElementName
Sets the rootElementName attribute of the FrameworkConfigReader object- Parameters:
s- The new rootElementName value
-
getSchemaURI
Gets the schemaURI attribute of the FrameworkConfigReader object- Returns:
- The schemaURI value
-
getVocabLayoutURI
Gets the vocabLayoutURI attribute of the FrameworkConfigReader object- Returns:
- The vocabLayoutURI value
-
setSchemaURI
Sets the schemaURI attribute of the FrameworkConfigReader object- Parameters:
s- The new schemaURI value
-
getXmlFormat
Gets the xmlFormat attribute of the FrameworkConfigReader object- Returns:
- The xmlFormat value
-
setXmlFormat
Sets the xmlFormat attribute of the FrameworkConfigReader object- Parameters:
s- The new xmlFormat value
-
getPageList
Gets the pageList attribute of the FrameworkConfigReader object- Returns:
- The pageList value
-
getFieldInfoMap
Create a FieldInfoMap containing information about each fieldInfo path specified in the config file. FieldInfo elements point to a FieldInfo file containing best practices, definitions, and other information about a particular element in this framework.- Returns:
- The fieldInfoMap value
-
prtln
Print a line to standard out.- Parameters:
s- The String to print.
-