internal static bool ValidateCObject(CObject cObject, ITerminologyService terminologyService) { AmValidator amValidator = new AmValidator(terminologyService); try { amValidator.Validate(cObject); } catch (Exception ex) { if (ex.GetType() == typeof(RmInvariantException)) return false; else throw ex; } return true; }
internal static bool ValidateCAttribute(CAttribute cAttribute, ITerminologyService terminologyService) { AmValidator amValidator = new AmValidator(terminologyService); try { amValidator.Validate(cAttribute); } catch (Exception ex) { if (ex.GetType() == typeof(RmInvariantException)) { return(false); } else { throw ex; } } return(true); }
public static void Validate(Archetype archetype, ITerminologyService terminologyService) { AmValidator amValidator = new AmValidator(terminologyService); amValidator.ValidateArchetype(archetype); }