[['db','modelClass'],'match','pattern'=>'/^\w+$/','message'=>'Only word characters are allowed.'],
[['ns','baseClass'],'match','pattern'=>'/^[\w\\\\]+$/','message'=>'Only word characters and backslashes are allowed.'],
[['collectionName'],'match','pattern'=>'/^[^$ ]+$/','message'=>'Collection name can not contain spaces or "$" symbols.'],
[['databaseName'],'match','pattern'=>'/^[^\\/\\\\\\. "*:?\\|<>]+$/','message'=>'Database name can not contain spaces or any of "/\."*<>:|?" symbols.'],
[['db'],'validateDb'],
[['ns'],'validateNamespace'],
[['collectionName'],'validateCollectionName'],
[['attributeList'],'match','pattern'=>'/^(\w+\,[ ]*)*([\w]+)$/','message'=>'Attributes should contain only word characters, and should be separated by coma.'],