public Location setMode(LocationMode value) { 
      if (value == null)
        this.mode = null;
      else {
        if (this.mode == null)
          this.mode = new Enumeration<LocationMode>(new LocationModeEnumFactory());
        this.mode.setValue(value);
      }
      return this;
    }
public Location setMode ( LocationMode value ) { if ( value == null ) this . mode = null ; else { if ( this . mode == null ) this . mode = new Enumeration < LocationMode > ( new LocationModeEnumFactory ( ) ) ; this . mode . setValue ( value ) ; } return this ; }
@param value Indicates whether a resource instance represents a specific location or a class of locations.