public interface SearchableDocumentation
Specification for a Map of SortableLocations correlated to their respective JavaDocData. To simplify searching and accessing within the JavaDocData, the paths of each SortableLocation is exposed for searching and listing.
Modifier and Type | Method and Description |
---|---|
SortedMap<SortableLocation,JavaDocData> |
getAll()
The full map relating each SortableLocation subclass to its corresponding JavaDocData.
|
<T extends SortableLocation> |
getAll(Class<T> type)
Convenience method which retrieves a SortedMap relating all SortableLocations of a particular type
to their JavaDocData, respectively.
|
JavaDocData |
getJavaDoc(String path)
Convenience method to acquire the JavaDocData for a SortableLocation with the supplied path.
|
<T extends SortableLocation> |
getLocation(String path)
Convenience method to acquire the SortableLocation corresponding to the given path.
|
SortedSet<String> |
getPaths()
Retrieves all unique SortableLocation paths within this SearchableDocumentation.
|
SortedSet<String> getPaths()
null
.JavaDocData getJavaDoc(String path)
path
- A non-null path for which the harvested JavaDocData should be retrieved.null
if no
SortableLocation with the supplied path was found within this SearchableDocumentation.<T extends SortableLocation> T getLocation(String path)
T
- The SortableLocation subtype.path
- The path of a SortableLocation, which is retrieved by a call to its toString()
method.null
if this SearchableDocumentation
does not contain a SortableLocation with the provided path.SortedMap<SortableLocation,JavaDocData> getAll()
<T extends SortableLocation> SortedMap<T,JavaDocData> getAll(Class<T> type)
T
- The SortableLocation subtype for which all JavaDocData should be retrieved.type
- The exact type of SortableLocation which should be filtered from the result and returned in the
form of a SortedMap, along with its respective JavaDocData.null
.Copyright © 2005–2015 MojoHaus. All rights reserved.