public abstract class FieldInfoMap
extends java.lang.Object
FieldInfoReader instances. The FieldInfoMap is instantiated by the
FrameworkConfigReader and accessed via the
MetaDataFramework.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
directoryUri |
protected java.util.HashMap |
map |
| Constructor and Description |
|---|
FieldInfoMap()
Constructor for the FieldInfoMap object
|
FieldInfoMap(java.lang.String uri)
Constructor for the FieldInfoMap object
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAllFieldInfo()
Gets all the FieldInfoReaders as a list.
|
FieldInfoReader |
getFieldInfo(java.lang.String xpath)
Gets the fieldInfo for given xpath.
|
java.util.List |
getFields()
Gets all the fields (xpaths) having FieldInfoReaders
|
java.util.Set |
getKeySet()
Gets the keySet attribute of the FieldInfoMap object
|
boolean |
hasFieldInfo(java.lang.String xpath)
Returns true if there is a FieldInfoReader present for the specified xpath.
|
abstract void |
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.
|
protected static void |
prtln(java.lang.String s)
Output a line of text to standard out, with datestamp, if debug is set to
true.
|
void |
putFieldInfo(java.lang.String xpath,
FieldInfoReader reader)
Add a FieldInfoReader to the map.
|
void |
reload()
Reload all the FieldInfoReaders in the map
|
void |
removeFieldInfo(java.lang.String xpath)
Description of the Method
|
static void |
setDebug(boolean d)
Sets the debug attribute of the FieldInfoMap class
|
java.lang.String |
toString()
Description of the Method
|
protected java.util.HashMap map
protected java.lang.String directoryUri
public FieldInfoMap()
public FieldInfoMap(java.lang.String uri)
uri - Description of the Parameterpublic abstract void init()
throws java.lang.Exception
java.lang.Exception - Description of the Exceptionpublic static void setDebug(boolean d)
d - The new debug valuepublic void putFieldInfo(java.lang.String xpath,
FieldInfoReader reader)
xpath - Description of the Parameterreader - Description of the Parameterpublic FieldInfoReader getFieldInfo(java.lang.String xpath)
xpath - Description of the Parameterpublic void removeFieldInfo(java.lang.String xpath)
xpath - Description of the Parameterpublic java.util.Set getKeySet()
public void reload()
throws java.lang.Exception
java.lang.Exception - Description of the Exceptionpublic java.util.List getAllFieldInfo()
public java.util.List getFields()
public boolean hasFieldInfo(java.lang.String xpath)
xpath - Description of the Parameterpublic java.lang.String toString()
toString in class java.lang.Objectprotected static void prtln(java.lang.String s)
s - The String that will be output.