public class NewFieldInfoMap extends FieldInfoMap
E.g.,
getFieldsFileUri(URI, String)
.
directoryUri, map
Constructor and Description |
---|
NewFieldInfoMap()
Constructor for the NewFieldInfoMap object
|
NewFieldInfoMap(java.lang.String uri)
Constructor for the NewFieldInfoMap object
|
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
getFieldsFileUri(java.net.URI baseUri,
java.lang.String relativePath)
Gets an absolute URI be resolving a baseUri (pointing to the fields-list file) and a relativePath.
|
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.
|
getAllFieldInfo, getFieldInfo, getFields, getKeySet, hasFieldInfo, putFieldInfo, reload, removeFieldInfo, setDebug, toString
public NewFieldInfoMap()
public NewFieldInfoMap(java.lang.String uri)
uri
- NOT YET DOCUMENTEDpublic void init() throws java.lang.Exception
init
in class FieldInfoMap
java.lang.Exception
- Description of the Exceptionpublic static java.net.URI getFieldsFileUri(java.net.URI baseUri, java.lang.String relativePath) throws java.lang.Exception
The first two parts of the relative path form a format, version key. E.g. for relativePath "annotation/1.0.00/fields/annotation-anno-fields-en-us.xml" the key is "annotation", "1.0.00". To form an absolute fieldsFileUri, the part of the baseUri above the key are joined with the relativePath.
Exceptions are thrown if the relativePath does not contain a key, or if the baseUri does not contain the key specified by the relativePath.
baseUri
- baseUri pointing to a fields-list filerelativePath
- a relative path containing a framework, version key and the name of the fields
file.java.lang.Exception
- if absoluteFieldsFileUri cannot be computedprotected static void prtln(java.lang.String s)
s
- The String that will be output.