DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.config
Class FrameworkConfigReader

java.lang.Object
  extended by org.dlese.dpc.schemedit.config.AbstractConfigReader
      extended by org.dlese.dpc.schemedit.config.FrameworkConfigReader
All Implemented Interfaces:
Serializable

public class FrameworkConfigReader
extends AbstractConfigReader

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:
Serialized Form

Field Summary
protected static boolean debug
          NOT YET DOCUMENTED
 
Fields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy
 
Constructor Summary
FrameworkConfigReader(File source)
          Create a FrameworkConfigReader.
 
Method Summary
 int getBaseRenderLevel()
          Gets the baseRenderLevel attribute of the FrameworkConfigReader object
 String getBestPracticesLabel()
          Gets the renderer attribute of the FrameworkConfigReader object
 String getDiscussionURL()
          optional node
 FieldInfoMap getFieldInfoMap()
          Create a FieldInfoMap containing information about each fieldInfo path specified in the config file.
 String getName()
          Gets the name attribute of the FrameworkConfigReader object
 PageList getPageList()
          Gets the pageList attribute of the FrameworkConfigReader object
 boolean getRebuildOnStart()
          Gets the rebuildOnStart attribute of the FrameworkConfigReader object.
 String getRecordsDir()
          Gets the recordsDir attribute of the FrameworkConfigReader object
 String getRenderer()
          Gets the renderer attribute of the FrameworkConfigReader object
 String getRootElementName()
          Gets the rootElementName attribute of the FrameworkConfigReader object
 SchemaPathMap getSchemaPathMap()
          Gets the schemaPathMap attribute of the FrameworkConfigReader object
 SchemaPathMap getSchemaPathMapNew()
          Not currently used - designed for future "pathSpec" which will be more flexible in specifying path-specific attributes and behaviours.
 String getSchemaURI()
          Gets the schemaURI attribute of the FrameworkConfigReader object
 UserInfo getUserInfo()
           
 String getVocabLayoutURI()
          Gets the vocabLayoutURI attribute of the FrameworkConfigReader object
 String getXmlFormat()
          Gets the xmlFormat attribute of the FrameworkConfigReader object
protected static void prtln(String s)
          Print a line to standard out.
 void refresh()
          Force update by clearing cached values
 void setBaseRenderLevel(int level)
          Sets the baseRenderLevel attribute of the FrameworkConfigReader object
 void setBestPracticesLabel(String s)
          Sets the renderer attribute of the FrameworkConfigReader object
 void setDiscussionURL(String s)
          Sets the discussionURL attribute of the FrameworkConfigReader object
 void setName(String s)
          Sets the name attribute of the FrameworkConfigReader object
 void setRebuildOnStart(boolean bool)
          Sets the rebuildOnStart attribute of the FrameworkConfigReader object
 void setRecordsDir(String s)
          Sets the recordsDir attribute of the FrameworkConfigReader object
 void setRenderer(String s)
          Sets the renderer attribute of the FrameworkConfigReader object
 void setRootElementName(String s)
          Sets the rootElementName attribute of the FrameworkConfigReader object
 void setSchemaURI(String s)
          Sets the schemaURI attribute of the FrameworkConfigReader object
 void setXmlFormat(String s)
          Sets the xmlFormat attribute of the FrameworkConfigReader object
 
Methods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, flush, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, setNodeText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static boolean debug
NOT YET DOCUMENTED

Constructor Detail

FrameworkConfigReader

public FrameworkConfigReader(File source)
                      throws Exception
Create a FrameworkConfigReader.

Parameters:
source - Description of the Parameter
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

refresh

public void refresh()
Force update by clearing cached values

Overrides:
refresh in class AbstractConfigReader

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

public String getDiscussionURL()
optional node

Returns:
The discussionURL value

setDiscussionURL

public void setDiscussionURL(String s)
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

public SchemaPathMap getSchemaPathMap()
Gets the schemaPathMap attribute of the FrameworkConfigReader object

Returns:
The schemaPathMap value

getUserInfo

public UserInfo getUserInfo()

getSchemaPathMapNew

public SchemaPathMap 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

public String getName()
Gets the name attribute of the FrameworkConfigReader object

Returns:
The name value

setName

public void setName(String s)
Sets the name attribute of the FrameworkConfigReader object

Parameters:
s - The new name value

getRecordsDir

public String getRecordsDir()
Gets the recordsDir attribute of the FrameworkConfigReader object

Returns:
The recordsDir value

setRecordsDir

public void setRecordsDir(String s)
Sets the recordsDir attribute of the FrameworkConfigReader object

Parameters:
s - The new recordsDir value

getRenderer

public String getRenderer()
Gets the renderer attribute of the FrameworkConfigReader object

Returns:
The renderer value

setRenderer

public void setRenderer(String s)
Sets the renderer attribute of the FrameworkConfigReader object

Parameters:
s - The new renderer value

getBestPracticesLabel

public String getBestPracticesLabel()
Gets the renderer attribute of the FrameworkConfigReader object

Returns:
The renderer value

setBestPracticesLabel

public void setBestPracticesLabel(String s)
Sets the renderer attribute of the FrameworkConfigReader object

Parameters:
s - The new renderer value

getRootElementName

public String getRootElementName()
Gets the rootElementName attribute of the FrameworkConfigReader object

Returns:
The rootElementName value

setRootElementName

public void setRootElementName(String s)
Sets the rootElementName attribute of the FrameworkConfigReader object

Parameters:
s - The new rootElementName value

getSchemaURI

public String getSchemaURI()
Gets the schemaURI attribute of the FrameworkConfigReader object

Returns:
The schemaURI value

getVocabLayoutURI

public String getVocabLayoutURI()
Gets the vocabLayoutURI attribute of the FrameworkConfigReader object

Returns:
The vocabLayoutURI value

setSchemaURI

public void setSchemaURI(String s)
Sets the schemaURI attribute of the FrameworkConfigReader object

Parameters:
s - The new schemaURI value

getXmlFormat

public String getXmlFormat()
Gets the xmlFormat attribute of the FrameworkConfigReader object

Returns:
The xmlFormat value

setXmlFormat

public void setXmlFormat(String s)
Sets the xmlFormat attribute of the FrameworkConfigReader object

Parameters:
s - The new xmlFormat value

getPageList

public PageList getPageList()
Gets the pageList attribute of the FrameworkConfigReader object

Returns:
The pageList value

getFieldInfoMap

public FieldInfoMap 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

protected static void prtln(String s)
Print a line to standard out.

Parameters:
s - The String to print.

DLESE Tools
v1.6.0