Sets the list of top-level extension elements.

@param CmisExtensionElementInterface[] $extensions
483083
public function setExtensions(array $extensions)
    {
        foreach ($extensions as $extension) {
            $this->checkType(CmisExtensionElementInterface::class, $extension);
        }

        $this->extensions = $extensions;
    }
1047713
public function setExtension($extension = '.png')
    {
        if (substr($extension, 0, 1) != '.') {
            $extension = '.' . $extension;
        }

        $this->extension = $extension;

        return $this;
    }
206047
public function registerExtension(ExtensionInterface $extension)
    {
        foreach ($extension->supports() as $section)
        {
            $this->extensions[$section] = $extension;
        }
    }
638623
public void setFileExtensions(final String fileExtensions) {
    this.fileExtensions = IterableExtensions.<String>toList(((Iterable<String>)Conversions.doWrapArray(fileExtensions.trim().split("\\s*,\\s*"))));
  }
1240508
public function setRichTextElements($pElements = null)
    {
        if (is_array($pElements)) {
            $this->_richTextElements = $pElements;
        } else {
            throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
        }
        return $this;
    }
341496
public function setPrefixes(array $prefixes) {
		$this->prefixes = [];
		foreach ($prefixes as $prefix => $baseDir) {
			$this->addPrefix($prefix, $baseDir);
		}
	}
243408
@Nonnull
  public PreprocessorContext setExcludeExtensions(@Nonnull @MustNotContainNull final List<String> extensions) {
    this.excludeExtensions = new HashSet<>(assertDoesntContainNull(extensions));
    return this;
  }
936320
public function addExtension(ExtensionInterface $extension)
    {
        if (array_key_exists($name = $extension->getName(), $this->extensions)) {
            throw new \RuntimeException(sprintf('UserExtension "%s" is already registered.', $name));
        }

        $this->extensions[$name] = $extension;
    }
695025
public void setExtensions(String extensions) throws PageException {
	if (extensions == null) return;
	this.extensions = ListUtil.toStringArrayTrim(ListUtil.listToArray(extensions, ','));
    }
646582
function setExtensions(swig, extensions) {
  for (var name in extensions) {
    swig.setExtension(name, extensions[name]);
  }


}
103939
public static function addList(DOMElement $parent, array $extensions) : void
    {
        if (empty($extensions)) {
            return;
        }

        $extElement = $parent->ownerDocument->createElementNS(Constants::NS_SAMLP, 'samlp:Extensions');
        $parent->appendChild($extElement);

        foreach ($extensions as $ext) {
            $ext->toXML($extElement);
        }
    }
6833
public function setTemplateExtension($extension)
    {
        $extension = (string) $extension;
        $extension = trim($extension);
        if ('.' == $extension[0]) {
            $extension = substr($extension, 1);
        }

        $this->extension = $extension;
    }
896451
public static function unRegister($extensions)
    {
        foreach ((array) $extensions as $extension) {
            foreach (static::$_registry as &$registered) {
                $key = array_search($extension, $registered['extensions'], true);
                if (false !== $key) {
                    unset($registered['extensions'][$key]);
                }

                if (empty($registered['extensions'])) {
                    unset($registered);
                }
            }
        }
    }
373500
public void setExtensionFields(java.util.Collection<ExtensionField> extensionFields) {
        if (extensionFields == null) {
            this.extensionFields = null;
            return;
        }

        this.extensionFields = new com.amazonaws.internal.SdkInternalList<ExtensionField>(extensionFields);
    }
1360152
protected function writeExtensions(\XMLWriter $xmlWriter, array $extensions)
    {
        foreach ($extensions as $extension) {
            switch ($extension::ID()) {
                case HR::ID():
                    $xmlWriter->startElement('HeartRateBpm');
                    $xmlWriter->writeElement('Value', (string)$extension->value());
                    $xmlWriter->endElement();
                    break;
            }
        }
    }
737284
public function addExtension(ExtensionInterface $extension, $structureType = 'all')
    {
        if (!isset($this->extensions[$structureType])) {
            $this->extensions[$structureType] = [];
        }

        $this->extensions[$structureType][$extension->getName()] = $extension;
    }
85182
public function setExtension(string $extension) {
        if(!$this->setModified('extension', $extension)->isModified()) {
            return $this;
        }
		$this->extension = $extension;
		return $this;
    }