|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.device.example.illustration.MetadataExample
public class MetadataExample
Example of listing properties and possible values from a Dataset
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 Summary | |
|---|---|
MetadataExample()
Creates a new Dataset using memory factory which creates a memory-resident representation of data. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetadataExample()
throws IOException
IOException - if there was a problem reading from the data file.| Method Detail |
|---|
public void listProperties()
throws IOException
IOException - if there was a problem reading from the data file.
public void close()
throws IOException
close in interface CloseableIOException - if there was a problem accessing the data file.
public static void main(String[] args)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||