You can create your own components that judge uniqueness based on the marker properties you identify or the business logic you define. One approach is to provide multiple compare components, each of which is tailored to the uniqueness criteria required for a particular type of marker (as identified by marker key)
.
To create a compare component that determines equality based on marker property values:
Create a component of class
atg.markers.CompareByProperties
.Set the
propertiesTocompare
property to the marker property or properties that will be compared to determine equality.If you have multiple compare components, update the
markerDuplicateComparators
map property to use each one: set the key to the markerkey
value and the value to a compare component.
To create a compare component that determines equality based on the business logic you define:
Create a subclass of
atg.markers.MarkerDuplicateComparator
and create a component of that class.If you have multiple compare components, update the
markerDuplicateComparators
map property to use each one: set the key to the markerkey
value and the value to a compare component.