Class ExtensionDefinition
java.lang.Object
org.incenp.obofoundry.sssom.model.ExtensionDefinition
Represents the definition of an extension slot.
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionDefinition(String slotName, String property) Creates a new instance with the default type.ExtensionDefinition(String slotName, String property, String typeHint) Creates a new instance with the specified type hint. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSlotName(String name) Sets the slot name.voidsetTypeHint(String hint) Sets the type hint.
-
Constructor Details
-
ExtensionDefinition
Creates a new instance with the default type.- Parameters:
slotName- The name of the extension slot.property- The property associated with the extension slot.
-
ExtensionDefinition
Creates a new instance with the specified type hint.- Parameters:
slotName- The name of the extension slot.property- The property associated with the extension slot.typeHint- The type of the extension slot.
-
-
Method Details
-
getSlotName
- Returns:
- The name of the extension slot.
-
getProperty
- Returns:
- The property associated with the extension slot.
-
getTypeHint
- Returns:
- The declared type of the extension slot.
-
getEffectiveType
- Returns:
- The actual type used for this extension slot.
-
setTypeHint
Sets the type hint.- Parameters:
hint- The new type hint to assign (ifnull, defaults toxsd:string).
-
setSlotName
Sets the slot name.- Parameters:
name- The new slot name to assign.
-