Class MappingCardinalitySlot<T>
java.lang.Object
org.incenp.obofoundry.sssom.slots.Slot<T>
org.incenp.obofoundry.sssom.slots.MappingCardinalitySlot<T>
- Type Parameters:
T
- The type of SSSOM object the slot is associated with. Of note, currently, only the Mapping object is defined to have a slot of that type.
Represents a metadata slot that holds a mapping cardinality value.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.incenp.obofoundry.sssom.slots.Slot
accept, getCompliantVersion, getName, getType, getURI, getValue, isEntityReference, isPropagatable, isURI, setValue
-
Constructor Details
-
MappingCardinalitySlot
Creates a new instance.- Parameters:
field
- The Java field that store the slot's data in a SSSOM object.
-
-
Method Details
-
accept
Description copied from class:Slot
Accepts a visitor. -
setValue
Parses a string into a mapping cardinality value.- Overrides:
setValue
in classSlot<T>
- Parameters:
object
- The object (e.g. a mapping or a mapping set) for which the slot should be set.value
- The value to assign to the slot on the given object.- Throws:
IllegalArgumentException
- If the string does not represent any known mapping cardinality value.
-