Package | Description |
---|---|
biolockj.exception |
This package contains
Exception subclasses specific to BioLockJ. |
biolockj.util |
Static utilities centralize and organize reusable core methods.
|
Modifier and Type | Class and Description |
---|---|
class |
FileWithoutMetadataException |
class |
MetadataWithoutFileException |
Modifier and Type | Method and Description |
---|---|
static void |
MetaUtil.addColumn(String colName,
Map<String,String> map,
File fileDir,
boolean removeMissingIds)
Adds a column to the metadata file.
|
static boolean |
MetaUtil.fieldValuesAreUnique(String field,
boolean ignoreNulls)
Determine if the given field has only unique values.
|
static String |
MetaUtil.getField(String sampleId,
String field)
Get metadata field value for given sampleId.
|
static List<String> |
MetaUtil.getFieldValues(String field,
boolean ignoreNulls)
Get metadata column for given field name.
|
static String |
MetaUtil.getForcedColumnName(String name)
Used to generate a guaranteed to be unique column name.
|
static File |
MetaUtil.getMetadata()
Metadata file getter.
|
static List<String> |
MetaUtil.getRecord(String sampleId)
Get metadata row for a given Sample ID.
|
static String |
MetaUtil.getSystemMetaCol(BioModule module,
String col)
Return a system generated metadata column name based on the module status.
|
static Set<String> |
MetaUtil.getUniqueFieldValues(String field,
boolean ignoreNulls)
Count the number of unique values in the given field.
|
static boolean |
MetaUtil.hasMetaColToSampleIdMap() |
static void |
MetaUtil.refreshCache()
Refresh the metadata cache.
|
static void |
MetaUtil.removeColumn(String colName,
File fileDir)
Remove the metadata column from the metadata file
|
static void |
MetaUtil.setFile(File file)
Set a new metadata file.
|
static boolean |
MetaUtil.setSampleId(File file,
String sampleId) |
static boolean |
MetaUtil.setSampleId(String filename,
String sampleId) |