com.drew.metadata
| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Directory> |
addDirectory(T directory)
Adds a directory to this metadata collection.
|
boolean |
containsDirectoryOfType(Class<? extends Directory> type)
Indicates whether an instance of the given directory type exists in this Metadata instance.
|
Iterable<Directory> |
getDirectories()
Returns an iterable set of the
Directory instances contained in this metadata collection. |
<T extends Directory> |
getDirectoriesOfType(Class<T> type) |
int |
getDirectoryCount()
Returns the count of directories in this metadata collection.
|
<T extends Directory> |
getFirstDirectoryOfType(Class<T> type)
Gets the first
Directory of the specified type contained within this metadata collection. |
boolean |
hasErrors()
Indicates whether any errors were reported during the reading of metadata values.
|
String |
toString() |
public Iterable<Directory> getDirectories()
Directory instances contained in this metadata collection.public <T extends Directory> Collection<T> getDirectoriesOfType(Class<T> type)
public int getDirectoryCount()
public <T extends Directory> void addDirectory(T directory)
directory - the Directory to add into this metadata collection.public <T extends Directory> T getFirstDirectoryOfType(Class<T> type)
Directory of the specified type contained within this metadata collection.
If no instances of this type are present, null is returned.T - the Directory typetype - the Directory typenull if none existpublic boolean containsDirectoryOfType(Class<? extends Directory> type)
public boolean hasErrors()
Directory objects.Copyright © 2002-2015 Drew Noakes. All Rights Reserved.