Set individual property group to default values.
@param propertyGroup <code>String</code> name of the property group to set to default.
@since 2.0.8
769947
public void setToDefault(String propertyGroup) {
		if(COLOR.equals(propertyGroup)) {
			setProperty(COLOR_FG, new Color(0,0,0));
			setProperty(COLOR_BG, new Color(255,255,255));
			return;
		}
		if(CHARACTER.equals(propertyGroup)) {
			setProperty(CHARACTER_BOLD, 0);
			setProperty(CHARACTER_UNDERLINE, 0);
			setProperty(CHARACTER_ITALIC, 0);
			setProperty(CHARACTER_SIZE, 24);// 1/2 pt sizes
			setProperty(CHARACTER_FONT, 0);
			return;
		}
		if(PARAGRAPH.equals(propertyGroup)) {
			setProperty(PARAGRAPH_INDENT_LEFT, 0);
			setProperty(PARAGRAPH_INDENT_RIGHT, 0);
			setProperty(PARAGRAPH_INDENT_FIRST_LINE, 0);
			setProperty(PARAGRAPH_JUSTIFICATION, JUSTIFY_LEFT);
			setProperty(PARAGRAPH_BORDER, PARAGRAPH_BORDER_NIL);
			setProperty(PARAGRAPH_BORDER_CELL, PARAGRAPH_BORDER_NIL);
			return;
		}
		if(SECTION.equals(propertyGroup)) {
			setProperty(SECTION_NUMBER_OF_COLUMNS, 0);
			setProperty(SECTION_BREAK_TYPE, SBK_NONE);
			setProperty(SECTION_PAGE_NUMBER_POSITION_X, 0);
			setProperty(SECTION_PAGE_NUMBER_POSITION_Y, 0);
			setProperty(SECTION_PAGE_NUMBER_FORMAT, PGN_DECIMAL);
			return;
		}
		if(DOCUMENT.equals(propertyGroup)) {
			setProperty(DOCUMENT_PAGE_WIDTH_TWIPS, 12240);
			setProperty(DOCUMENT_PAGE_HEIGHT_TWIPS, 15480);
			setProperty(DOCUMENT_MARGIN_LEFT_TWIPS, 1800);
			setProperty(DOCUMENT_MARGIN_TOP_TWIPS, 1440);
			setProperty(DOCUMENT_MARGIN_RIGHT_TWIPS, 1800);
			setProperty(DOCUMENT_MARGIN_BOTTOM_TWIPS, 1440);
			setProperty(DOCUMENT_PAGE_NUMBER_START, 1);
			setProperty(DOCUMENT_ENABLE_FACING_PAGES, 1);
			setProperty(DOCUMENT_PAGE_ORIENTATION, PAGE_PORTRAIT);
			setProperty(DOCUMENT_DEFAULT_FONT_NUMER, 0);	
			return;
		}
	}
648029
@Override
    public void setProperties(Configuration<?> config) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "setProperties", config);
        }
        if (properties != null) {
            for (Property ptype : properties) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "Name is " + ptype.getName() + "Value is " + ptype.getValue());
                }
                config.addProperty(ptype.getName(), ptype.getValue());
            }
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "setProperties");
        }
    }
621217
public void setDefaultSecurityGroupNames(java.util.Collection<String> defaultSecurityGroupNames) {
        if (defaultSecurityGroupNames == null) {
            this.defaultSecurityGroupNames = null;
            return;
        }

        this.defaultSecurityGroupNames = new com.amazonaws.internal.SdkInternalList<String>(defaultSecurityGroupNames);
    }
779913
public void setProperties(Map<String, Value> properties) {
        if (properties != null) {
            this.properties = new HashMap<>(properties);
        } else {
            this.properties = null;
        }
    }
1175523
public Setting set(String group, String key, String value) {
		this.put(group, key, value);
		return this;
	}
181821
public PropertyConstraint inGroup(String propertyName, Object[] group) {
        return value(propertyName, new InGroup(group));
    }
99896
@Override
	public boolean setPrevGroup(String prevGroup) {
		if (LOGGER.isTraceEnabled()) LOGGER.trace(String.format("set previous group : %s", prevGroup));
		this.prevGroup = prevGroup;
		return true;
	}
341397
public void setThingGroups(java.util.Collection<GroupNameAndArn> thingGroups) {
        if (thingGroups == null) {
            this.thingGroups = null;
            return;
        }

        this.thingGroups = new java.util.ArrayList<GroupNameAndArn>(thingGroups);
    }
433233
public static void setPropertyValue(BeanDefinitionBuilder builder, String propertyValue, String propertyName) {
        if (StringUtils.hasText(propertyValue)) {
            builder.addPropertyValue(propertyName, propertyValue);
        }
    }
584929
public synchronized void setProperty(PropertyKey key, Object value)
    {
        if (!isValidKey(key))
            throw new IllegalArgumentException("Key " + key + " is not valid for " + getMapClass());

        //
        // Validate the value argument, based upon the property type reference by the key
        //
        Class propType = key.getPropertyType();
        if (value == null)
        {
            if (propType.isPrimitive() || propType.isAnnotation())
                throw new IllegalArgumentException("Invalid null value for key " + key);
        }
        else
        {
            if (propType.isPrimitive())
                propType = (Class)_primToObject.get(propType);

            if (!propType.isAssignableFrom(value.getClass()))
            {
                throw new IllegalArgumentException("Value class (" + value.getClass() + 
                                                   ") not of expected type: " + propType);
            }
        }
        _properties.put(key, value);
        _propertySets.add(key.getPropertySet());
    }
28380
public void setGroups(java.util.Collection<ReservationCoverageGroup> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<ReservationCoverageGroup>(groups);
    }
889742
public void setPropertiesClass(Class<?> propertiesClass) {
        Validate.notNull(propertiesClass);
        setProperty(SOABaseProperty.PROPERTIES_CLASS, propertiesClass.getName());
    }
145819
@Override
    public void setListProperty(String propertyName, List<String> values) {
        setProperty(propertyName, values);

    }
654465
@JsOverlay
  public final void addJavaPropDefaultValue(Function javaMethod, String propertyName) {
    PropOptions propDefinition = getProps().get(propertyName);
    propDefinition.defaultValue = javaMethod;
  }
323796
@Override
	public synchronized void setProperties(Map<Object, Object> properties)
	{
		if(this.properties == null)
			this.properties = new Properties();
		
		
		this.properties.putAll(properties);
	}
463243
public void setGroups(java.util.Collection<GroupIdentifier> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new com.amazonaws.internal.SdkInternalList<GroupIdentifier>(groups);
    }
1346140
protected static void setStaticProperties(Properties properties){
        //defaultCount，这是一个全局生效的参数，多数据源时也是统一的行为
        if(properties != null){
            DEFAULT_COUNT = Boolean.valueOf(properties.getProperty("defaultCount", "true"));
        }
    }