Class CheckDigitSEDOL

  • All Implemented Interfaces:
    LTRandom, Comparable<LogicalType>

    public class CheckDigitSEDOL
    extends CheckDigitLT
    Plugin to detect valid SEDOL identifiers.
    • Field Detail

      • SEMANTIC_TYPE

        public static final String SEMANTIC_TYPE
        The Semantic type for this Plugin.
        See Also:
        Constant Field Values
      • REGEXP

        public static final String REGEXP
        The Regular Expression for this Semantic type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckDigitSEDOL

        public CheckDigitSEDOL​(PluginDefinition plugin)
        Construct a plugin to detect SEDOLs (Stock Exchange Daily Official List) based on the Plugin Definition.
        Parameters:
        plugin - The definition of this plugin.
    • Method Detail

      • getRegExp

        public String getRegExp()
        Description copied from class: LogicalType
        The Regular Expression that most closely matches (See LogicalType.isRegExpComplete()) this Semantic Type. Note: All valid matches will match this RE, but the inverse is not necessarily true.
        Overrides:
        getRegExp in class CheckDigitLT
        Returns:
        The Java Regular Expression that most closely matches this Semantic Type.
      • getSemanticType

        public String getSemanticType()
        Description copied from class: LogicalType
        The name of the Semantic Type. For example, EMAIL for an email address.
        Overrides:
        getSemanticType in class LogicalType
        Returns:
        The name of the Semantic Type.
      • getBaseType

        public FTAType getBaseType()
        Description copied from class: LogicalType
        The underlying type we are qualifying.
        Overrides:
        getBaseType in class CheckDigitLT
        Returns:
        The underlying type - e.g. STRING, LONG, etc.
      • nextRandom

        public String nextRandom()
        Description copied from interface: LTRandom
        nextRandom will generate a random (secure) valid example of this Semantic Type.
        Specified by:
        nextRandom in interface LTRandom
        Overrides:
        nextRandom in class CheckDigitLT
        Returns:
        a new valid example of the Semantic Type.