Class SSSOMTSuffixFunction

  • All Implemented Interfaces:
    IFormatModifierFunction

    public class SSSOMTSuffixFunction
    extends BaseStringModifierFunction
    Represents the SSSOM/T modifier function "suffix".

    This function replaces the substituted text, which is expected to be a IRI, by the local part (the "suffix") of its short form. It does not take any additional argument.

    • Constructor Detail

      • SSSOMTSuffixFunction

        public SSSOMTSuffixFunction​(PrefixManager prefixManager)
        Creates a new instance.
        Parameters:
        prefixManager - The prefix manager to use to shorten the IRI in the substituted text.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IFormatModifierFunction
        Gets the name by which the function should be called in a placeholder.
        Returns:
        The function name.
      • getSignature

        public String getSignature()
        Description copied from interface: IFormatModifierFunction
        Gets the expected signature of the function. This works similarly to ISSSOMTFunction.getSignature(), but it only concerns the additional arguments beyond the value of the substituted placeholder to modify (e.g. extra_arg1 in the example above).
        Returns:
        The function signature.