Interface DocsBinder
- All Superinterfaces:
Iterable<DocsNameSpace>
- All Known Implementing Classes:
Docs
DocsInfo is a manifest view of a set of namespaces and included
paths. The namespaces act as content slots to allow content to be
managed by different layers of artifacts. For example, a downstream
artifact can replace a context by replacing the same-named namespace.
docsinfo = {
'namespaces': [
{
'namespace': 'example-namespace-1',
'paths': ['path1','path2']
},
{
'namespace': 'example-namespace-2',
'paths': ['path-foo','other-path']
}
]
}
Internally, The namespace entries are represented by DocsNameSpace types.-
Method Summary
Modifier and TypeMethodDescriptiongetPaths()merge(DocsBinder other) The result of merging two DocsInfo elements together is a combined DocsInfo element with all unique namespaces occurring exactly once, and with the other namespace overwriting same-named namespaces in the original element.merge(DocsNameSpace other) The result of merging a DocPathInfo entry into a DocsInfo element is the combined DocsInfo element with the added entry overwriting any namespace of the same name.The result of removing a set of namespaces from a DocsInfo element is a new DocsInfo element containing only the namespaces which were removed.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
merge
The result of merging two DocsInfo elements together is a combined DocsInfo element with all unique namespaces occurring exactly once, and with the other namespace overwriting same-named namespaces in the original element.- Parameters:
other- The DocsInfo containing namespaces to overlay into this DocsInfo- Returns:
-
merge
The result of merging a DocPathInfo entry into a DocsInfo element is the combined DocsInfo element with the added entry overwriting any namespace of the same name.- Parameters:
other- The namespace entry to overlay into this DocsInfo- Returns:
-
remove
The result of removing a set of namespaces from a DocsInfo element is a new DocsInfo element containing only the namespaces which were removed. The original DocsInfo element is modified statefully in this case. It is not an error to remove namespaces which are not present in the original DocsInfo. If this condition is important, check for it manually.- Parameters:
namespaces- The names of the namespaces to remove, should they be present.- Returns:
- A new DocsInfo object representing what was actually removed.
-
getPaths
-
getPathMap
-
getNamespaces
List<DocsNameSpace> getNamespaces()
-