Add a new configuration section to the container.

@throws IllegalArgumentException if same type is already present and a singleton
@return always {@code true}
422759
public boolean add(ConfigurationSection section) {
    if (section instanceof SingletonConfigurationSection) {
      if (getSection(section.getClass()) !=  null) {
        throw new IllegalArgumentException("Section of same type already inserted: " + section.getClass().getName());
      }
    }
    return sections.add(section);
  }
193320
public void expand(Configuration configuration) {
        OperationIterator it = this.problem.getOperationIterator(configuration);
        while (it.hasNext()) {
            Configuration c = it.next().execute(configuration);
            if (!this.queue.testPresence(c)) this.queue.add(c);
        }
    }
165040
public function addInstance()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_BadRequest('wrong request mode');
        }

        $id = $this->getRequestParameter('id');

        $this->validateInstanceRoot($id);

        $this->signatureValidator->checkSignature(
            $this->getRequestParameter('signature'),
            $id
        );

        $response = [];

        $clazz = $this->getClass($id);
        $label = $this->getClassService()->createUniqueLabel($clazz);

        $instance = $this->getClassService()->createInstance($clazz, $label);

        if(!is_null($instance) && $instance instanceof core_kernel_classes_Resource){
            $response = [
                'label' => $instance->getLabel(),
                'uri'   => $instance->getUri()
            ];
        }

        $this->returnJson($response);
    }
385627
public void addSection(String section, ConfigParams sectionParams) {
		if (section == null)
			throw new NullPointerException("Section name cannot be null");

		if (sectionParams != null) {
			for (Map.Entry<String, String> entry : sectionParams.entrySet()) {
				String key = entry.getKey();

				if (key.length() > 0 && section.length() > 0)
					key = section + "." + key;
				else if (key.length() == 0)
					key = section;

				String value = entry.getValue();

				put(key, value);
			}
		}
	}
232060
public boolean add(T element, Class<?> accessibleClass) {
		boolean added = false;

		while (accessibleClass != null && accessibleClass != this.baseClass) {
			added |= this.addSingle(element, accessibleClass);

			for (Class<?> interf : accessibleClass.getInterfaces()) {
				this.addSingle(element, interf);
			}

			accessibleClass = accessibleClass.getSuperclass();
		}

		return added;
	}
116095
public static <T> List<ConfigurationInfo<T>> newList(boolean isOptional, T location) {
    if (location == null) {
      throw new IllegalArgumentException("location cannot be null");
    }
    return newList(Collections.<T>singletonList(location), isOptional);
  }
494542
public boolean add(Object element) {

//        reporter.updateCounter++;
        if (elementCount >= elementData.length) {
            increaseCapacity();
        }

        elementData[elementCount] = element;

        elementCount++;

        return true;
    }
336622
BaseConfiguration addDefaultConfiguration(InputStream defaultConfig) throws ConfigValidationException, ConfigUpdateException {
        return defaultConfiguration.add(defaultConfig, serverXMLConfig, variableRegistry);
    }
753413
@Override
    public void add(final ComponentNameSpaceConfiguration compNSConfig) {
        add(new ComponentNameSpaceConfigurationProvider() {
            @Override
            public String toString() {
                return super.toString() + '[' + compNSConfig.getJ2EEName() + ']';
            }

            @Override
            public ComponentNameSpaceConfiguration getComponentNameSpaceConfiguration() {
                return compNSConfig;
            }
        });
    }
88362
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPSpecificationOption addCPSpecificationOption(
		CPSpecificationOption cpSpecificationOption) {
		cpSpecificationOption.setNew(true);

		return cpSpecificationOptionPersistence.update(cpSpecificationOption);
	}
241203
public void addConfigurations(Configuration... configurations) {
		Assert.notNull(configurations, "Configurations must not be null");
		this.configurations.addAll(Arrays.asList(configurations));
	}
316782
public void add(Component component, boolean addRelationships) {
        if (component != null) {
            if (!component.getContainer().equals(getContainer())) {
                throw new IllegalArgumentException("Only components belonging to " + container.getName() + " can be added to this view.");
            }

            addElement(component, addRelationships);
        }
    }
959918
@Override
    public ReferencesBuilder append(final String reference, final int section) {
        return doAppend(Collections.singletonList(new Reference(reference, section)));
    }
1060289
private ContainerCreateConfig add(String name, String value) {
        if (value != null) {
            createConfig.addProperty(name, value);
        }
        return this;
    }
1284337
@SuppressWarnings("unchecked")
  public <T extends ConfigurationSection> T getSection(Class<T> sectionType) {
    for (ConfigurationSection s : sections) {
      if (sectionType.equals(s.getClass())) {
        return (T) s;
      }
    }
    return null;
  }
43959
@NotNull
    @ObjectiveCName("addEndpoint:")
    public ConfigurationBuilder addEndpoint(@NotNull String url) {
        try {
            endpoints.addEndpoint(url);
        } catch (ConnectionEndpointArray.UnknownSchemeException e) {
            throw new RuntimeException(e.getMessage());
        }
        return this;
    }
419471
public boolean add(Object o) {

        resetCapacity();

        if (endindex == list.length) {
            endindex = 0;
        }

        list[endindex] = o;

        elementCount++;
        endindex++;

        return true;
    }