Class SSSOMTSuffixFunction
java.lang.Object
org.incenp.obofoundry.sssom.transform.BaseStringModifierFunction
org.incenp.obofoundry.sssom.transform.SSSOMTSuffixFunction
- All Implemented Interfaces:
IFormatModifierFunction
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 Summary
Constructors -
Method Summary
Methods inherited from class org.incenp.obofoundry.sssom.transform.BaseStringModifierFunction
call
-
Constructor Details
-
SSSOMTSuffixFunction
Creates a new instance.- Parameters:
prefixManager- The prefix manager to use to shorten the IRI in the substituted text.
-
-
Method Details
-
getName
Description copied from interface:IFormatModifierFunctionGets the name by which the function should be called in a placeholder.- Returns:
- The function name.
-
getSignature
Description copied from interface:IFormatModifierFunctionGets the expected signature of the function. This works similarly toISSSOMTFunction.getSignature(), but it only concerns the additional arguments beyond the value of the substituted placeholder to modify (e.g.extra_arg1in the example above).- Returns:
- The function signature.
-
apply
Description copied from class:BaseStringModifierFunctionApplies the function to a single value.- Specified by:
applyin classBaseStringModifierFunction- Parameters:
value- The value to apply the function to.extra- Arguments to the function, if any.- Returns:
- The modified value.
-