def style=(style)
      validator = EnumAttributeValidator.new('String', ["Default", "Solid", "ShortDash", "ShortDot", "ShortDashDot", "ShortDashDotDot", "Dot", "Dash", "LongDash", "DashDot", "LongDashDot", "LongDashDotDot"])
      if style.to_i == 0
        unless validator.valid?(style)
          raise ArgumentError, "invalid value for 'style', must be one of #{validator.allowable_values}."
        end
        @style = style
      else
        @style = validator.allowable_values[style.to_i]
      end
    end
def style=(style)
      validator = EnumAttributeValidator.new('String', ["Default", "Solid", "ShortDash", "ShortDot", "ShortDashDot", "ShortDashDotDot", "Dot", "Dash", "LongDash", "DashDot", "LongDashDot", "LongDashDotDot"])
      if style.to_i == 0
        unless validator.valid?(style)
          raise ArgumentError, "invalid value for 'style', must be one of #{validator.allowable_values}."
        end
        @style = style
      else
        @style = validator.allowable_values[style.to_i]
      end
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] style Object to be assigned