EpicsDeviceNameValidator

Inheritance diagram of EpicsDeviceNameValidator

class EpicsDeviceNameValidator[source]

Bases: taurus.core.epics.epicsfactory.AbstractEpicsNameValidator

A validator of names for EpicsDevice. By taurusconvention, the model name for an epics device name must end with the base separator (in order to distinguish device names from attribute names)

getNames(s, factory=None)[source]

Returns the complete, normal and short names. (note: complete=normal)

Parameters:
  • s (:class:~`str`) – input string describing the device
  • factory (:class:~`TaurusFactory`) – [Unused]
Return type:

:class:~`tuple` <:class:~`str`, :class:~`str`, :class:~`str`> or :class:~`None`

Returns:

A tuple of complete, normal and short names, or None if s is an invalid device name

name_pattern = '^(?P<scheme>epics)://(?P<epicsname>((?P<devname>[^?#]*)(?P<base_sep>:)))$'