Public Member Functions | |
def | __init__ |
def | condition |
def | getInstance |
def | logger |
def | postRun |
def | preRun |
def | run |
Static Public Attributes | |
list | assetTypes = [] |
enable = True | |
list | fixers = [] |
list | hostApps = [] |
priority = None |
Defines a validation method 'run' which is used to ensure. This class is intended to be sub-classed and extended.
def assetQC.api.validator.Validator.__init__ | ( | self, | |
instance | |||
) |
def assetQC.api.validator.Validator.condition | ( | self, | |
ctx | |||
) |
Method for sub-classes to override with a condition that the object will run in. Return True to indicate the Validator should be run, False otherwise.
def assetQC.api.validator.Validator.getInstance | ( | self | ) |
def assetQC.api.validator.Validator.logger | ( | self | ) |
def assetQC.api.validator.Validator.postRun | ( | self, | |
ctx | |||
) |
Run after the Fixer 'run' method. Users can optionally override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
def assetQC.api.validator.Validator.preRun | ( | self, | |
ctx | |||
) |
Run before the Validator 'run' method. Users can optionally override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
def assetQC.api.validator.Validator.run | ( | self, | |
ctx | |||
) |
Runs the Validator function on the given Asset Instance Users MUST override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
list assetQC::api::validator.Validator::assetTypes = [] [static] |
assetQC::api::validator.Validator::enable = True [static] |
list assetQC::api::validator.Validator::fixers = [] [static] |
list assetQC::api::validator.Validator::hostApps = [] [static] |
assetQC::api::validator.Validator::priority = None [static] |