public class MetadataExample extends Object implements Closeable
The example illustrates:
dataset = MemoryFactory.create(Shared.getLitePatternV32(), true);
for(Property property : dataset.getProperties()) {
property.getDescription();
for (Value value : property.getValues().getAll()) {
if (value.getDescription() != null) {
main assumes it is being run with a working directory at root of project or of this module.
| Constructor and Description |
|---|
MetadataExample()
Creates a new Dataset using memory factory which creates a
memory-resident representation of data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Don't forget to close datasets when you are done with them.
|
void |
listProperties()
Lists all properties available in provided data file and all possible
values for each property.
|
static void |
main(String[] args) |
public MetadataExample()
throws IOException
IOException - if there was a problem reading from the data file.public void listProperties()
throws IOException
IOException - if there was a problem reading from the data file.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if there was a problem accessing the data file.public static void main(String[] args) throws IOException
IOExceptionCopyright © 2018 51Degrees. All rights reserved.