Class Descendants
java.lang.Object
com.persequor.extension.eventservice.Descendants
This class represents a tree/hierarchy structure of Epcs.
-
Constructor Summary
ConstructorsConstructorDescriptionDescendants
(QuantityElement quantityElement) Descendants
(String epc) Descendants
(String epc, DescendantsList descendants, List<UUID> sagaEventIds) -
Method Summary
Modifier and TypeMethodDescriptiongetEpc()
Returns an EPC of a container if this instance represents a container, Returns an EPC of an item if this instance represents an item.In case if leafs are representing quantity elements EPC class will be included into the result.void
setContainer
(String container) void
setDecommissionedEvent
(Event decommissionedEvent) void
setDisplayName
(String displayName) void
visit
(BiConsumer<Descendants, Integer> visitor) Visit each node in the tree structure
-
Constructor Details
-
Descendants
-
Descendants
-
Descendants
-
-
Method Details
-
getDescendants
-
getEpc
Returns an EPC of a container if this instance represents a container, Returns an EPC of an item if this instance represents an item. Returns an EPC class if this instance represents a quantity element- Returns:
- EPC of a container or an item inside a container or an EPC class of a quantity element
-
getQuantityElement
-
setDecommissionedEvent
-
getDecommissionedEvent
-
getDecommissionedAt
-
getSagaEventIds
-
getLeafEpcs
In case if leafs are representing quantity elements EPC class will be included into the result.- Returns:
- EPCs or EPC classes of the leaf nodes
-
getLeafNodes
-
getAllNonLeafEpcs
-
getAllEpcs
-
getAncestor
-
visit
Visit each node in the tree structure- Parameters:
visitor
- the visitor accepting:node
anddepth
-
getDisplayName
-
setDisplayName
-
setContainer
-
getContainer
-