Set the data that will be appended to the publican.cfg file when built.

@param name The custom configuration name.
@param publicanCfg The data to be appended.
10134
public void setAdditionalPublicanCfg(final String name, final String publicanCfg) {
        if (publicanCfg == null && !publicanCfgs.containsKey(name)) {
            return;
        } else if (publicanCfg == null) {
            removeChild(publicanCfgs.get(name));
            publicanCfgs.remove(name);
        } else if (!publicanCfgs.containsKey(name)) {
            final String fixedName = name + "-" + CommonConstants.CS_PUBLICAN_CFG_TITLE;
            final KeyValueNode<String> publicanCfgMetaData = new KeyValueNode<String>(fixedName, publicanCfg);
            publicanCfgs.put(name, publicanCfgMetaData);
            appendChild(publicanCfgMetaData, false);
        } else {
            publicanCfgs.get(name).setValue(publicanCfg);
        }
    }
1099833
public void setProperty(String name, String value) {
        Validate.notNullOrEmpty(name, "Name of property can not be a null object nor an empty string!");
        Validate.notNull(value, "Value of property can not be a null object!");

        configuration.put(name, value);
    }
1028130
public void setName(String name) {
        String oldname = this.name;
        this.name = name;
        //TODO Reset the main map
        save(oldname);
    }
912731
public function save($name, Config $config)
  {
    $path = $this->_getPath($name);
    
    $data = $config->valueOf();
    file_put_contents(
      $path, serialize($data)
    );
    
    return true;
  }
1124492
public static final void setApplId(byte[] name)
    {
        if (tc.isDebugEnabled())
            Tr.debug(tc, "setApplId", name);

        // Store the applId.
        applId = name;
    }
381270
protected void buildAdditionalPublicanCfg(final BuildData buildData) throws BuildProcessingException {
        final ContentSpec contentSpec = buildData.getContentSpec();
        final Map<String, String> overrides = buildData.getBuildOptions().getOverrides();
        final Map<String, String> additionalPublicanCfgs = contentSpec.getAllAdditionalPublicanCfgs();

        for (final Map.Entry<String, String> entry : additionalPublicanCfgs.entrySet()) {
            final String brandOverride = overrides.containsKey(CSConstants.BRAND_OVERRIDE) ? overrides.get(
                    CSConstants.BRAND_OVERRIDE) : (overrides.containsKey(CSConstants.BRAND_ALT_OVERRIDE) ? overrides.get(
                    CSConstants.BRAND_ALT_OVERRIDE) : null);
            final String brand = brandOverride != null ? brandOverride : (contentSpec.getBrand() == null ? getDefaultBrand(
                    buildData) : contentSpec.getBrand());

            // Setup publican.cfg
            final StringBuilder publicanCfg = new StringBuilder("xml_lang: ").append(buildData.getOutputLocale()).append("\n");
            publicanCfg.append("type: ").append(contentSpec.getBookType().toString().replaceAll("-Draft", "") + "\n");
            publicanCfg.append("brand: ").append(brand).append("\n");

            // Add the custom content
            publicanCfg.append(DocBookBuildUtilities.cleanUserPublicanCfg(entry.getValue()));

            // Add the dtdver property
            if (buildData.getDocBookVersion() == DocBookVersion.DOCBOOK_50) {
                publicanCfg.append("dtdver: \"5.0\"\n");
            }

            // Add docname if it wasn't specified and the escaped title is valid
            Matcher m = null;
            if (BuilderConstants.VALID_PUBLICAN_DOCNAME_PATTERN.matcher(buildData.getEscapedBookTitle()).matches()) {
                m = DOCNAME_PATTERN.matcher(publicanCfg);
                if (!m.find()) {
                    publicanCfg.append("docname: ").append(buildData.getEscapedBookTitle().replaceAll("_", " ")).append("\n");
                }
            }

            // Add product if it wasn't specified
            m = PRODUCT_PATTERN.matcher(publicanCfg);
            if (!m.find()) {
                publicanCfg.append("product: ").append(escapeProduct(buildData.getOriginalBookProduct())).append("\n");
            }

            // Add the mainfile attribute
            publicanCfg.append("mainfile: ").append(buildData.getRootBookFileName()).append("\n");

            // Add version if it wasn't specified
            m = VERSION_PATTERN.matcher(publicanCfg);
            if (!m.find()) {
                String version = contentSpec.getBookVersion();
                if (isNullOrEmpty(version)) {
                    version = DocBookBuildUtilities.getKeyValueNodeText(buildData, contentSpec.getVersionNode());
                }
                if (isNullOrEmpty(version)) {
                    version = BuilderConstants.DEFAULT_VERSION;
                }
                publicanCfg.append("version: ").append(escapeVersion(version)).append("\n");
            }

            String fixedPublicanCfg = publicanCfg.toString();

            if (buildData.getBuildOptions().getPublicanShowRemarks()) {
                // Remove any current show_remarks definitions
                if (publicanCfg.indexOf("show_remarks") != -1) {
                    fixedPublicanCfg = fixedPublicanCfg.replaceAll("show_remarks\\s*:\\s*\\d+\\s*(\\r)?(\\n)?", "");
                }
                fixedPublicanCfg += "show_remarks: 1\n";
            }

            addToZip(buildData.getRootBookFolder() + entry.getKey(), fixedPublicanCfg, buildData);
        }
    }
1226786
public void setName(String name) {
        this.name = name;

        List<Token> tokens = Tokenizer.tokenize(name, true);
        int tokenCount = 0;

        for (Token t : tokens) {
            if (t.getType() != TokenType.TEXT) {
                tokenCount++;
            }
        }

        if (tokenCount > 0) {
            this.nameTokens = tokens.toArray(new Token[0]);
        } else {
            this.nameTokens = null;
        }
    }
284121
public void setName(String name) {
		if (name == null) {
			throw new IllegalArgumentException("Field name cannot be null");
		}

		if (name.length() == 0 || name.length() > 10) {
			throw new IllegalArgumentException("Field name should be of length 0-10");
		}
		if (!DBFUtils.isPureAscii(name)) {
			throw new IllegalArgumentException("Field name must be ASCII");
		}
		this.name = name;
	}
1254730
public function set($name = null, $config = null) {
		if (is_array($config)) {
			$this->_configurations[$name] = $config;
			return;
		}
		if ($config === false) {
			unset($this->_configurations[$name]);
		}
	}
1080846
public String getAdditionalPublicanCfg(final String name) {
        return !publicanCfgs.containsKey(name) ? null : publicanCfgs.get(name).getValueText();
    }
67400
public void setOemName(String name) {
        if (name.length() > 8) throw new IllegalArgumentException(
                "only 8 characters are allowed");

        for (int i = 0; i < 8; i++) {
            char ch;
            if (i < name.length()) {
                ch = name.charAt(i);
            } else {
                ch = (char) 0;
            }

            set8(0x3 + i, ch);
        }
    }
1223038
public void setAnnotation( String name, String value)
    {
    String annotation = StringUtils.trimToNull( name);
    if( annotation == null)
      {
      throw new IllegalArgumentException( "Annotation name must be non-blank");
      }
    if( value == null)
      {
      annotations_.remove( annotation);
      }
    else
      {
      annotations_.put( annotation, value);
      }
    }
236047
public void addPlugin(String name, MoskitoPlugin plugin, PluginConfig config){
		plugins.put(name, plugin);
		try{
			plugin.initialize();
			configs.put(name, config);
		}catch(Exception e){
			log.warn("couldn't initialize plugin "+name+" - "+plugin+", removing", e);
			plugins.remove(name);
		}
	}
674062
public void init(String name, Map<String,Object> config) {
        this.name = name;
        this.config = config;
        this.run = true;
        this.stopped = false;
    }
954903
@Override
    public void setProperty(String name, Object value) {
        if (currentBeanConfig != null) {
            setPropertyOnBeanConfig(name, value);
        }
    }
327033
public void addToConfiguration(String name, String value) {
        if (this.sessionConfigProperties == null) {
            this.sessionConfigProperties = new Properties();
        }
        this.sessionConfigProperties.setProperty(name, value);
    }
401122
public void addSarlCapacityUses(String... name) {
		if (name != null && name.length > 0) {
			SarlCapacityUses member = SarlFactory.eINSTANCE.createSarlCapacityUses();
			this.sarlBehavior.getMembers().add(member);
			member.setAnnotationInfo(XtendFactory.eINSTANCE.createXtendMember());
			Collection<JvmParameterizedTypeReference> thecollection = member.getCapacities();
			for (final String aname : name) {
				if (!Strings.isEmpty(aname)) {
					thecollection.add(newTypeRef(this.sarlBehavior, aname));
				}
			}
		}

	}