Trunk 3814

Finally, written RelationshipTypeValidator.java, (i have also set aIsToB and bIsToA) then  created and tested RelationshipTypeValidatorTest.java to be passing the JUnit test"