function VDWEnum ()
{
   for (var i =0;i <arguments.length;i++)
   {
      this[arguments[i]]=i;
   }
   this._typeName = "VDWEnum";
}

VDWEnum.prototype.getValues = function ()
{
   if (!this._values)
   {
      var values ={};
      for (var f in this)
      {
         if (typeof(this[f])!='function')
         {
            values[f]=this[f];
         }
      }
      this._values =values;
   }
   return this._values;
}
   
VDWEnum.prototype.parse = function (s)
{
   for (var f in this)
   {
      if (f == s)
      {
         return this[f];
      }
   }
   throw 'Invalid VDWEnum Value';
}

VDWEnum.prototype.toString = function (value)
{
   for (var i in this)
   {
      if (this[i]==value)
      {
         return i;
      }
   }
   throw 'Invalid VDWEnum Value';
}



