/* (non-Javadoc)
@see com.ibm.ws.sib.processor.MPSelectionCriteria#setSelectorProperties(java.util.Map)
960769
public void setSelectorProperties(Map<String, Object> selectorProperties)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setSelectorProperties", selectorProperties);

    this.selectorProperties = selectorProperties;
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setSelectorProperties");
  }
789448
@com.fasterxml.jackson.annotation.JsonProperty("RequiredParameters")
    public void setRequiredParameters(java.util.Collection<String> requiredParameters) {
        if (requiredParameters == null) {
            this.requiredParameters = null;
            return;
        }

        this.requiredParameters = new java.util.ArrayList<String>(requiredParameters);
    }
63429
public void setValue(Properties properties)  {
        if (properties == null) {
            throw new IllegalArgumentException("properties must not be null");
        }
        if (type == null) {
            type = ItemType.PROPERTIES;
        }
        if (!isMappableType()) {
            throw new IllegalArgumentException("The type of this item must be 'properties' or 'map'");
        }
        tokensMap = new LinkedHashMap<>();
        for (String key : properties.stringPropertyNames()) {
            Object o = properties.get(key);
            if (o instanceof Token[]) {
                tokensMap.put(key, (Token[])o);
            } else if (o instanceof Token) {
                Token[] tokens = new Token[] { (Token)o };
                tokensMap.put(key, tokens);
            } else {
                Token[] tokens = TokenParser.makeTokens(o.toString(), isTokenize());
                putValue(name, tokens);
            }
        }
    }
504894
@Override
  public void setSystemProperty(String propertyName, String value) {
    if (Strings.isNullOrEmpty(propertyName)) {
      throw new IllegalArgumentException("Property name can't be empty.");
    }

    execute(
        "-selendroid-setAndroidOsSystemProperty",
        ImmutableMap.of(
            "propertyName", propertyName,
            "value", value));
  }
770175
public void setFlowProperties(Flow[] flows)
    throws SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setFlowProperties", flows);

    try
    {
      // Take the Write Lock for classifications
      classificationWriteLock.lock();

      // Disallow null flows
      if(flows == null)
      {
        SIIncorrectCallException e =
          new SIIncorrectCallException(
            nls.getFormattedMessage(
                "NULL_FLOW_CLASSIFICATIONS_CWSIP0851",
                new Object[] {
                  "com.ibm.ws.sib.processor.impl.JSConsumerSet.setFlowProperties",
                  "1:877:1.16",
                  label },
                null));
        
        // FFDC
        FFDCFilter.processException(
          e,
          "com.ibm.ws.sib.processor.impl.JSConsumerSet.setFlowProperties",
          "1:885:1.16",
          this);
            
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
          SibTr.exit(tc, "setFlowProperties", "SIIncorrectCallException");
        throw e;
      }
    
      // Set up the new classifications for the ConsumerSet
      boolean weightChangeOnly = classifications.setClassifications(flows);
    
      // Need to notify registered keys of the change but only if the flow change is
      // substantive - i.e. more than just a change in the relative weightings of the 
      // current flows.
      if(!weightChangeOnly)
      {
        Iterator<DispatchableKey> it = keyRegistry.iterator();
        while (it.hasNext())
        {
          DispatchableKey key = (DispatchableKey)it.next();
          // Notify the appropriate key
          if(key instanceof LocalQPConsumerKey)
          {
            ((LocalQPConsumerKey)(key)).notifyResetFlowProperties();
          }
          else if(key instanceof LocalQPConsumerKeyGroup)
          {
            ((LocalQPConsumerKeyGroup)(key)).notifyResetFlowProperties();
          }
        }
      }
    }
    catch(InvalidFlowsException ife)
    {
      // FFDC
      FFDCFilter.processException(
        ife,
        "com.ibm.ws.sib.processor.impl.JSConsumerSet.setFlowProperties",
        "1:923:1.16",
        this);
      
      // Map the InvalidFlowsException to an SIIncorrectCallException
      SIIncorrectCallException e =
        new SIIncorrectCallException(
          nls.getFormattedMessage(
              "INVALID_FLOW_CLASSIFICATIONS_CWSIP0852",
              new Object[] {
                "com.ibm.ws.sib.processor.impl.JSConsumerSet.setFlowProperties",
                "1:933:1.16",
                label },
              null));
          
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
        SibTr.exit(tc, "setFlowProperties", "SIIncorrectCallException");
      throw e;
    }
    finally
    {
      // Free the write lock
      classificationWriteLock.unlock();
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setFlowProperties");        
  }
320062
@Nonnull
  public static JSInvocation setSelectOptions (@Nonnull final IJSExpression aSelector,
                                               @Nonnull final IJSExpression aValueList)
  {
    return getFormHelper ().invoke ("setSelectOptions").arg (aSelector).arg (aValueList);
  }
923963
public void setProperties(Collection<String> properties) {
        if (null == this.properties) {
            this.properties = new ArrayList<>();
        }
        this.properties.clear();
        this.properties.addAll(properties);
    }
565615
public int setProperties(Map<String,Object> properties)
    {
        return this.setProperties(properties, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE);
    }
978774
public void setProperty(final String propertyName, final String value) {
        Preconditions.checkNotNull(propertyName);
        if (value == null) {
            properties.put(propertyName, null);
            return;
        }
        List<String> values = new ArrayList<>();
        values.add(value);
        properties.put(propertyName, values);
    }
352417
public void putProperties(Map<String, String> properties) {
		for (Map.Entry<String, String> property : properties.entrySet()) {
			put(property.getKey(), property.getValue());
		}
	}
20954
public void setSelectedSystemProperties (final Set <String> aCollection)
  {
    selectedSystemProperties = new HashSet <> ();
    if (aCollection != null)
    {
      for (final String sName : aCollection)
        if (StringHelper.hasText (sName))
          if (!selectedSystemProperties.add (sName))
            getLog ().warn ("The selected system property '" + sName + "' is contained more than once");
    }
    if (!selectedSystemProperties.isEmpty ())
    {
      // If we have a set of selected, don't use all system properties
      if (withAllSystemProperties)
      {
        getLog ().warn ("Disabling all system properties, because selected system properties are defined!");
        setWithAllSystemProperties (false);
      }
    }
  }
478226
public void setTypeMap(Map<TypeElement, org.revapi.java.model.TypeElement> typeMap) {
        this.typeMap = typeMap;
    }
147294
public void setConfigurationProperties(java.util.Collection<SdkConfigurationProperty> configurationProperties) {
        if (configurationProperties == null) {
            this.configurationProperties = null;
            return;
        }

        this.configurationProperties = new java.util.ArrayList<SdkConfigurationProperty>(configurationProperties);
    }
805278
public void setMapperProperties(Properties properties) {
        if (this.mapperHelper == null) {
            this.mapperHelper = new MapperHelper();
        }
        this.mapperHelper.setProperties(properties);
    }
446582
public void setProperties(Properties props) throws Exception {
		// Use reflection to read in all possible properties of int, String or boolean.
		for (Method method: BoneCPConfig.class.getDeclaredMethods()){
			String tmp = null;
			if (method.getName().startsWith("is")){
				tmp = lowerFirst(method.getName().substring(2));
			} else if (method.getName().startsWith("set")){
				tmp = lowerFirst(method.getName().substring(3));
			} else {
				continue;
			}

			if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(int.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					try{
						method.invoke(this, Integer.parseInt(val));
					} catch (NumberFormatException e){
						// do nothing, use the default value
					}
				}
			} else if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(long.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					try{
						method.invoke(this, Long.parseLong(val));
					} catch (NumberFormatException e){
						// do nothing, use the default value
					}
				}
			} else if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(String.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					method.invoke(this, val);
				}
			} if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(boolean.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					method.invoke(this, Boolean.parseBoolean(val));
				}
			}
		}
	}
189541
public void setSelector(String selector)
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setSelector", selector);

    this.selector = selector;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setSelector");
  }
1241029
public void setSelectFields(java.util.Collection<FieldInfo> selectFields) {
        if (selectFields == null) {
            this.selectFields = null;
            return;
        }

        this.selectFields = new com.amazonaws.internal.SdkInternalList<FieldInfo>(selectFields);
    }