edu.mayo.informatics.indexer.utility
Class MetaData
java.lang.Object
edu.mayo.informatics.indexer.utility.MetaData
public class MetaData
- extends java.lang.Object
This class reads and writes metadata to an xml file.
- Author:
- Dan Armbrust
Constructor Summary |
MetaData(java.io.File rootLocation)
|
MetaData(org.springframework.core.io.Resource rootLocation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaData
public MetaData(org.springframework.core.io.Resource rootLocation)
throws InternalErrorException,
java.io.IOException
- Throws:
InternalErrorException
java.io.IOException
MetaData
public MetaData(java.io.File rootLocation)
throws InternalErrorException
- Throws:
InternalErrorException
rereadFile
public void rereadFile(boolean releaseLockWhenDone)
throws InternalErrorException
- Only rereads if necessary (checks file timestamp
- Throws:
InternalErrorException
getIndexMetaDataKeys
public java.lang.String[] getIndexMetaDataKeys(java.lang.String indexName)
throws InternalErrorException
- Throws:
InternalErrorException
getIndexMetaDataValue
public java.lang.String getIndexMetaDataValue(java.lang.String indexName,
java.lang.String key)
throws InternalErrorException
- Throws:
InternalErrorException
getIndexMetaDataKeys
public java.lang.String[] getIndexMetaDataKeys()
throws InternalErrorException
- Throws:
InternalErrorException
getIndexMetaDataValue
public java.lang.String getIndexMetaDataValue(java.lang.String key)
throws InternalErrorException
- Throws:
InternalErrorException
setIndexMetaDataValue
public void setIndexMetaDataValue(java.lang.String key,
java.lang.String value)
throws InternalErrorException
- Throws:
InternalErrorException
setIndexMetaDataValue
public void setIndexMetaDataValue(java.lang.String indexName,
java.lang.String key,
java.lang.String value)
throws InternalErrorException
- Throws:
InternalErrorException
removeIndexMetaDataValue
public void removeIndexMetaDataValue(java.lang.String key)
throws InternalErrorException
- Throws:
InternalErrorException
removeAllIndexMetaDataValue
public void removeAllIndexMetaDataValue(java.lang.String indexName)
throws InternalErrorException
- Throws:
InternalErrorException
removeIndexMetaDataValue
public void removeIndexMetaDataValue(java.lang.String indexName,
java.lang.String key)
throws InternalErrorException
- Throws:
InternalErrorException
getMetaLocation
public java.lang.String getMetaLocation()
throws java.io.IOException
- Throws:
java.io.IOException