public ElementDefinition setMax(String value) { 
      if (Utilities.noString(value))
        this.max = null;
      else {
        if (this.max == null)
          this.max = new StringType();
        this.max.setValue(value);
      }
      return this;
    }
public ElementDefinition setMax ( String value ) { if ( Utilities . noString ( value ) ) this . max = null ; else { if ( this . max == null ) this . max = new StringType ( ) ; this . max . setValue ( value ) ; } return this ; }
@param value The maximum number of times this element is permitted to appear in the instance.