def assert_type(self):
    if (self.type is not None):
        for value in self.type:
            if ((value is not None) and (value.lower() not in ['number', 'date', 'string', 'token', 'reference', 'composite', 'quantity', 'uri'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'number, date, string, token, reference, composite, quantity, uri'))
def assert_type(self):
    if (self.type is not None):
        for value in self.type:
            if ((value is not None) and (value.lower() not in ['number', 'date', 'string', 'token', 'reference', 'composite', 'quantity', 'uri'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'number, date, string, token, reference, composite, quantity, uri'))