Refactor rule check functions to put boilerplate code in a macro
Refactor rule check functions to put boilerplate code in a macro

Change-Id: If94fa8635d42a992755abaa323b64b4a33231da8
Signed-off-by: Steve Kinneberg <26c7c4dbb497207ccdafd1b965a306c70c2e698b@qce.qualcomm.com>

cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core