Beispiel #1
0
        /// <summary>
        /// Validate the current operation sequence
        /// </summary>
        public override void validate()
        {
            ResourceValidator rv      = ResourceValidator.instance();
            string            altname = null;

            if (type == ResourceType.ArgumentEntry)
            {
                altname = resourceTypeAsString(type);
            }
            rv.validate(name, altname, operations, this);
        }
Beispiel #2
0
 /// <summary>
 /// Get the instance of the resource validator
 /// </summary>
 /// <returns></returns>
 public static ResourceValidator instance()
 {
     if (_instance == null)
     {
         lock (locker)
         {
             if (_instance == null)
             {
                 _instance = new ResourceValidator();
             }
         }
     }
     return(_instance);
 }