Class ExtensionDefinition
- java.lang.Object
-
- org.incenp.obofoundry.sssom.model.ExtensionDefinition
-
public class ExtensionDefinition extends Object
Represents the definition of an extension slot.
-
-
Constructor Summary
Constructors Constructor Description ExtensionDefinition(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueTypegetEffectiveType()StringgetProperty()StringgetSlotName()StringgetTypeHint()voidsetSlotName(String name)Sets the slot name.voidsetTypeHint(String hint)Sets the type hint.
-
-
-
Constructor Detail
-
ExtensionDefinition
public ExtensionDefinition(String slotName, String property)
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
public ExtensionDefinition(String slotName, String property, String typeHint)
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 Detail
-
getSlotName
public String getSlotName()
- Returns:
- The name of the extension slot.
-
getProperty
public String getProperty()
- Returns:
- The property associated with the extension slot.
-
getTypeHint
public String getTypeHint()
- Returns:
- The declared type of the extension slot.
-
getEffectiveType
public ValueType getEffectiveType()
- Returns:
- The actual type used for this extension slot.
-
setTypeHint
public void setTypeHint(String hint)
Sets the type hint.- Parameters:
hint- The new type hint to assign (ifnull, defaults toxsd:string).
-
setSlotName
public void setSlotName(String name)
Sets the slot name.- Parameters:
name- The new slot name to assign.
-
-