# `TaurusAuthorityNameValidator`

digraph inheritance6dfb75c137 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "TaurusAuthorityNameValidator" [URL="#taurus.core.taurusvalidator.TaurusAuthorityNameValidator",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Base class for Authority name validators."]; }

class TaurusAuthorityNameValidator(*p, **k)

  Base class for Authority name validators. The namePattern will be composed from URI segments as follows:

  <scheme>:<authority>[/<path>][?<query>][#<fragment>]

  Derived classes must provide attributes defining a regexp string for each URI segment (they can be empty strings):

  - scheme

  - authority

  - path

  - query

  - fragment

  Import from `taurus.core.taurusvalidator` as:

      from taurus.core.taurusvalidator import TaurusAuthorityNameValidator

  getNames(name, factory=None)

    basic implementation for getNames for authorities. You may reimplement it in your scheme if required

  pattern = '^(?P<scheme>%(scheme)s):(?P<authority>%(authority)s)((?=/)(?P<path>%(path)s))?(\\?(?P<query>%(query)s))?(#(?P<fragment>%(fragment)s))?$'