Package org.dlese.dpc.schemedit.vocab
Class FieldInfoMap
java.lang.Object
org.dlese.dpc.schemedit.vocab.FieldInfoMap
- Direct Known Subclasses:
NewFieldInfoMap,OldFieldInfoMap
Data structure mapping xpaths to
FieldInfoReader instances. The FieldInfoMap is instantiated by the
FrameworkConfigReader and accessed via the
MetaDataFramework.- Author:
- ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the FieldInfoMap objectFieldInfoMap(String uri) Constructor for the FieldInfoMap object -
Method Summary
Modifier and TypeMethodDescriptionGets all the FieldInfoReaders as a list.getFieldInfo(String xpath) Gets the fieldInfo for given xpath.Gets all the fields (xpaths) having FieldInfoReadersGets the keySet attribute of the FieldInfoMap objectbooleanhasFieldInfo(String xpath) Returns true if there is a FieldInfoReader present for the specified xpath.abstract voidinit()Read a listing of URIs Fields files from directoryUri and then loads each of the listed files as FieldInfoReader objects, which are stored in a map.protected static voidOutput a line of text to standard out, with datestamp, if debug is set to true.voidputFieldInfo(String xpath, FieldInfoReader reader) Add a FieldInfoReader to the map.voidreload()Reload all the FieldInfoReaders in the mapvoidremoveFieldInfo(String xpath) Description of the Methodstatic voidsetDebug(boolean d) Sets the debug attribute of the FieldInfoMap classtoString()Description of the Method
-
Field Details
-
map
-
directoryUri
-
-
Constructor Details
-
FieldInfoMap
public FieldInfoMap()Constructor for the FieldInfoMap object -
FieldInfoMap
Constructor for the FieldInfoMap object- Parameters:
uri- Description of the Parameter
-
-
Method Details
-
init
Read a listing of URIs Fields files from directoryUri and then loads each of the listed files as FieldInfoReader objects, which are stored in a map.- Throws:
Exception- Description of the Exception
-
setDebug
public static void setDebug(boolean d) Sets the debug attribute of the FieldInfoMap class- Parameters:
d- The new debug value
-
putFieldInfo
Add a FieldInfoReader to the map.- Parameters:
xpath- Description of the Parameterreader- Description of the Parameter
-
getFieldInfo
Gets the fieldInfo for given xpath.- Parameters:
xpath- Description of the Parameter- Returns:
- The fieldInfo value or null if not found.
-
removeFieldInfo
Description of the Method- Parameters:
xpath- Description of the Parameter
-
getKeySet
Gets the keySet attribute of the FieldInfoMap object- Returns:
- The keySet value
-
reload
Reload all the FieldInfoReaders in the map- Throws:
Exception- Description of the Exception
-
getAllFieldInfo
Gets all the FieldInfoReaders as a list.- Returns:
- a List of FieldInfoReaders
-
getFields
Gets all the fields (xpaths) having FieldInfoReaders- Returns:
- a list of xpaths to Fields
-
hasFieldInfo
Returns true if there is a FieldInfoReader present for the specified xpath.- Parameters:
xpath- Description of the Parameter- Returns:
- Description of the Return Value
-
toString
Description of the Method -
prtln
Output a line of text to standard out, with datestamp, if debug is set to true.- Parameters:
s- The String that will be output.
-