예제 #1
0
        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;
        }
예제 #2
0
        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);
        }
예제 #3
0
        public static void Validate(Archetype archetype, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            amValidator.ValidateArchetype(archetype);
        }
예제 #4
0
        public static void Validate(Archetype archetype, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            amValidator.ValidateArchetype(archetype);
        }