public class Metadata extends Object implements Serializable
| Constructor and Description |
|---|
Metadata()
Instantiates a new metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
TiffObject value)
Adds a metadata value to the dictionary.
|
void |
add(String name,
TiffObject value,
boolean isDC,
String path)
Adds a metadata value to the dictionary.
|
void |
add(String name,
TiffObject value,
String path,
String schema)
Adds a metadata value to the dictionary.
|
void |
addMetadata(Metadata meta)
Adds a complete dictionary to the current one.
|
boolean |
contains(String name)
Check if the dictionary contains the given metadata.
|
TiffObject |
get(String name)
Gets a metadata value, returning the appropriate value when multiple are found.
|
List<TiffObject> |
getList(String name)
Gets the list of objects of the given metadata name.
|
MetadataObject |
getMetadataObject(String name)
Gets the metadata object.
|
Set<String> |
keySet()
Get the set of metadata names.
|
public void add(String name, TiffObject value, String path, String schema)
name - the namevalue - the valuepublic void add(String name, TiffObject value)
name - the namevalue - the valuepublic void add(String name, TiffObject value, boolean isDC, String path)
name - the namevalue - the valueisDC - the is dublin corepublic boolean contains(String name)
name - the namepublic TiffObject get(String name)
name - the name of the metadata.public List<TiffObject> getList(String name)
name - the namepublic MetadataObject getMetadataObject(String name)
name - the namepublic void addMetadata(Metadata meta)
meta - the metadata dictionary to addCopyright © 2015–2020. All rights reserved.