Package io.bdeploy.bhive.objects.view
Class ManifestRefView
java.lang.Object
io.bdeploy.bhive.objects.view.ElementView
io.bdeploy.bhive.objects.view.TreeView
io.bdeploy.bhive.objects.view.ManifestRefView
- All Implemented Interfaces:
Comparable<ElementView>
View of a
Manifest reference in a Tree.
A Manifest reference uses the referenced Manifest's root Tree ObjectId as
element ID. Since ManifestRefView extends TreeView this means that
ManifestRefView's can be visited as TreeView's without caring that this is actually a referenced
Manifest.
The ObjectId of the actual reference in the source Tree can be obtained using getReferenceId() in case
it is required (i.e. collecting all ObjectIds transitively required by a Tree).
-
Constructor Summary
ConstructorsConstructorDescriptionManifestRefView(ObjectId refId, Manifest.Key referenced, ObjectId rootTreeId, Collection<String> path) -
Method Summary
Methods inherited from class io.bdeploy.bhive.objects.view.TreeView
addChild, getChildren, visit, visitDfsMethods inherited from class io.bdeploy.bhive.objects.view.ElementView
compareTo, equals, getElementId, getName, getPath, getPathString, hashCode
-
Constructor Details
-
ManifestRefView
public ManifestRefView(ObjectId refId, Manifest.Key referenced, ObjectId rootTreeId, Collection<String> path)
-
-
Method Details
-
getReferenced
- Returns:
- the
Manifest.Keyof the referencedManifest.
-
getReferenceId
-
toString
- Overrides:
toStringin classElementView
-