Class SlotVisitorBase<T>
java.lang.Object
org.incenp.obofoundry.sssom.slots.SlotVisitorBase<T>
- Type Parameters:
T- The SSSOM object whose slots this visitor will visit.
- All Implemented Interfaces:
ISlotVisitor<T>
- Direct Known Subclasses:
SetMerger,SlotExtractor,VersionComplianceVisitor,VersionEnforcerVisitor
A default implementation of the
ISlotVisitor interface that does
nothing for every slot type. Client code can extend this class and override
only the method they need instead of implementing ISlotVisitor
directly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVisits a slot that holds a curie map.voidVisits a date-typed slot.voidvisit(DoubleSlot<T> slot, T object, Double value) Visits a double-typed slot.voidvisit(EntityReferenceSlot<T> slot, T object, String value) Visits a slot that holds an entity reference.voidVisits a multi-valued slot that holds entity references.voidvisit(EntityTypeSlot<T> slot, T object, EntityType value) Visits a slot that holds an entity type enumeration value.voidvisit(ExtensionDefinitionSlot<T> slot, T object, List<ExtensionDefinition> values) Visits a slot that holds a list of extension definitions for non-standard metadata.voidvisit(ExtensionSlot<T> slot, T object, Map<String, ExtensionValue> value) Visits a slot that holds extension values (non-standard metadata).voidvisit(MappingCardinalitySlot<T> slot, T object, MappingCardinality value) Visits a slot that holds a mapping cardinality enumeration value.voidvisit(PredicateModifierSlot<T> slot, T object, PredicateModifier value) Visits a slot that holds a predicate modifier enumeration value.voidVisits a generic slot.voidvisit(StringSlot<T> slot, T object, String value) Visits a string-typed slot.voidVisits a multi-valued string-typed slot.voidVisits a URI-typed slot.voidVisits a multi-valued URI-typed slot.voidvisit(VersionSlot<T> slot, T object, Version value) Visits a slot that holds a SSSOM version value.
-
Constructor Details
-
SlotVisitorBase
public SlotVisitorBase()
-
-
Method Details
-
visit
Description copied from interface:ISlotVisitorVisits a generic slot.This method is normally not used as all slots in a SSSOM object have more precise types. But it can be used to implement behaviours that should be common to several slot types.
- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a string-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a multi-valued string-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.values- The values of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a URI-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a multi-valued URI-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.values- The values of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds an entity reference.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a multi-valued slot that holds entity references.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.values- The values of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a double-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a date-typed slot.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds an entity type enumeration value.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds a mapping cardinality enumeration value.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds a predicate modifier enumeration value.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds a SSSOM version value.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds a curie map.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The value of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds a list of extension definitions for non-standard metadata.- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.values- The values of the slot.
-
visit
Description copied from interface:ISlotVisitorVisits a slot that holds extension values (non-standard metadata).- Specified by:
visitin interfaceISlotVisitor<T>- Parameters:
slot- The slot that is being visited.object- The object to which the slot is attached.value- The values of the slot.
-