Class ExtensionDefinition


  • public class ExtensionDefinition
    extends Object
    Represents the definition of an extension slot.
    • 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 (if null, defaults to xsd:string).
      • setSlotName

        public void setSlotName​(String name)
        Sets the slot name.
        Parameters:
        name - The new slot name to assign.