Package help.validator.location
Class HelpModuleCollection
java.lang.Object
help.validator.location.HelpModuleCollection
- All Implemented Interfaces:
TOCItemProvider
A class that is meant to hold a single help input directory and 0 or more
external, pre-built help sources (i.e., jar file or directory).
Note Note Note This class is a bit conceptually muddled. Our build system is reflected in this class in that we currently build one help module at a time. Thus, any dependencies of that module being built can be passed into this "collection" at build time. We used to build multiple help modules at once, resolving dependencies for all of the input modules after we built each module. This class will need to be tweaked in order to go back to a build system with multiple input builds.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static HelpModuleCollection
fromFiles
(Collection<File> files) Creates a help module collection that assumes zero or more pre-built help jar files and one help directory that is an input into the help building process.static HelpModuleCollection
fromHelpDirectory
(File dir) Creates a help module collection that contains only a singe help module from a help directory, not a pre-built help jar.static HelpModuleCollection
fromHelpLocations
(Collection<HelpModuleLocation> locations) Creates a help module collection that assumes zero or more pre-built help jar files and one help directory that is an input into the help building process.getAnchorDefinition
(Path target) Returns all external TOC items referenced by this providergetHelpFile
(Path helpPath) Input TOC items are those that we are building for the input help module of this collectionReturns all TOC items defined by this providertoString()
-
Method Details
-
fromHelpDirectory
Creates a help module collection that contains only a singe help module from a help directory, not a pre-built help jar.- Parameters:
dir
- the directory containing help- Returns:
- the help collection
-
fromFiles
Creates a help module collection that assumes zero or more pre-built help jar files and one help directory that is an input into the help building process.- Parameters:
files
- the files from which to get help- Returns:
- the help collection
-
fromHelpLocations
Creates a help module collection that assumes zero or more pre-built help jar files and one help directory that is an input into the help building process.- Parameters:
locations
- the locations from which to get help- Returns:
- the help collection
-
getSourceTOCFile
-
containsHelpFiles
public boolean containsHelpFiles() -
getHelpRoots
-
getDuplicateAnchorsByFile
-
getDuplicateAnchorsByTopic
-
getAllHREFs
-
getAllIMGs
-
getAllAnchorDefinitions
-
getAnchorDefinition
-
getHelpFile
-
getTocDefinitionsByID
Description copied from interface:TOCItemProvider
Returns all TOC items defined by this provider- Specified by:
getTocDefinitionsByID
in interfaceTOCItemProvider
- Returns:
- the items
-
getExternalTocItemsById
Description copied from interface:TOCItemProvider
Returns all external TOC items referenced by this provider- Specified by:
getExternalTocItemsById
in interfaceTOCItemProvider
- Returns:
- the items
-
getInputTOCItems
Input TOC items are those that we are building for the input help module of this collection- Returns:
- the items
-
getTOC_HREFs
-
toString
-