public class DefaultMetadataOptions extends java.lang.Object implements MetadataOptions
MetadataOptions
.Modifier and Type | Field and Description |
---|---|
private MetadataLevel |
metadataLevel |
private boolean |
validate |
Constructor and Description |
---|
DefaultMetadataOptions()
Construct a new
DefaultMetadataOptions . |
DefaultMetadataOptions(MetadataLevel level)
Construct a new
DefaultMetadataOptions . |
Modifier and Type | Method and Description |
---|---|
MetadataLevel |
getMetadataLevel()
Get the configured metadata level.
|
boolean |
isValidate()
Checks whether file validation has been set.
|
void |
setMetadataLevel(MetadataLevel level)
Set the metadata level.
|
void |
setValidate(boolean validateMetadata)
Specifies whether or not to validate files when reading.
|
private MetadataLevel metadataLevel
private boolean validate
public DefaultMetadataOptions()
DefaultMetadataOptions
. Set the metadata level
to MetadataLevel.ALL
and disable file validation.public DefaultMetadataOptions(MetadataLevel level)
DefaultMetadataOptions
. Set the metadata level
to the specified value and disable file validation.level
- the MetadataLevel
to use.public MetadataLevel getMetadataLevel()
MetadataOptions
getMetadataLevel
in interface MetadataOptions
MetadataLevel
.public void setMetadataLevel(MetadataLevel level)
MetadataOptions
setMetadataLevel
in interface MetadataOptions
level
- a MetadataLevel
.public boolean isValidate()
MetadataOptions
isValidate
in interface MetadataOptions
true
if files are validated when read, false
otherwise.public void setValidate(boolean validateMetadata)
MetadataOptions
setValidate
in interface MetadataOptions
validateMetadata
- true
if files should be validated, false
otherwise.Copyright © 2020 Open Microscopy Environment