Adds the element collection metadata.

@param elementCollectionMetadata
the element collection metadata
346127
public void addElementCollectionMetadata(CollectionColumnInfo elementCollectionMetadata)
    {
        if (this.elementCollectionMetadatas == null)
        {
            this.elementCollectionMetadatas = new ArrayList<CollectionColumnInfo>();
        }

        if (!elementCollectionMetadatas.contains(elementCollectionMetadata))
        {
            elementCollectionMetadatas.add(elementCollectionMetadata);
        }
    }
891717
public function addAll(array $elements)
    {
        if (is_array($elements)) {
            foreach ($elements as $element) {
                $this->_items[] = $element;
            }
            $this->_iterator = null;
        } else {
            throw new CollectionException('Given array can not added to collection, because it is no array.', E_NOTICE);
        }
    }
1089271
protected function submitAddCollectionItem()
    {
        $this->setSubmitted(null, $this->getParam());
        $this->validateComponent('collection_item');
        $this->addCollectionItem();
    }
904232
public void copyNodeMetaData(ASTNode other) {
        if (other.metaDataMap == null) {
            return;
        }
        if (metaDataMap == null) {
            metaDataMap = new ListHashMap();
        }
        metaDataMap.putAll(other.metaDataMap);
    }
611905
public void addEntityMetadata(String persistenceUnit, Class<?> clazz, EntityMetadata entityMetadata)
    {
        Metamodel metamodel = getMetamodelMap().get(persistenceUnit);
        Map<String, EntityMetadata> entityClassToMetadataMap = ((MetamodelImpl) metamodel).getEntityMetadataMap();
        if (entityClassToMetadataMap == null || entityClassToMetadataMap.isEmpty())
        {
            entityClassToMetadataMap.put(clazz.getName(), entityMetadata);
        }
        else
        {
            if (logger.isDebugEnabled())
                logger.debug("Entity meta model already exists for persistence unit " + persistenceUnit + " and class "
                        + clazz + ". Noting needs to be done");
        }
    }
346865
public void addResourceMetadata(String resourceName,
      ResourceMetadata resourceMetadata) {
    if (resourceMetadataMap.put(resourceName, resourceMetadata) != null) {
      throw new RuntimeException("Resource name " + resourceName +
          " already exists!");
    }
  }
485617
public void addElements(
                    final Collection<? extends T> elements
                    )
    {
        if (elements == null  ||  elements.size() == 0) {
            return;
        }

        for (T  obj : elements) {
            addElement( obj );
        }
    }
190487
private void addFileElements(Collection<ArchiveEntry> files, Element filesElement) throws Exception
    {
        for (ArchiveEntry entry : files) {
            // Don't add files in META-INF to the package.xml file
            if (entry.getName().indexOf("META-INF") == -1) {
                XWikiDocument xdoc = getDocFromXML(entry.getFile());
                String reference = xdoc.getReference();
                Element element = new DOMElement(FILE_TAG);
                element.setText(reference);
                element.addAttribute("language", xdoc.getLocale());
                element.addAttribute("defaultAction", "0");

                // Add configured properties
                XAREntry cfgEntry = getEntryMap().get(reference);
                if (cfgEntry != null && cfgEntry.getType() != null) {
                    element.addAttribute("type", cfgEntry.getType());
                }

                filesElement.add(element);
            }
        }
    }
221499
private void updateMetadata(SegmentProperties segmentProperties) {
        this.metadata.setStorageLength(segmentProperties.getLength());
        if (segmentProperties.isSealed() && !this.metadata.isSealedInStorage()) {
            this.metadata.markSealed();
            this.metadata.markSealedInStorage();
        }
    }
282704
protected function addElementChildren(ElementInterface $element, AttributeCollection $collection)
    {
        $children = $element->getChildren();
        if ($children->count()) {
            $attribute = new Attribute('aoFields', $this->renderChildren($children), Attribute::TYPE_ARRAY);
            $collection->add($attribute);
        }
    }
968757
public static <T> void addAll(Collection<? super T> collection, Collection<? extends T> toAdd)
    {
        if (collection == null || toAdd == null)
        {
            return;
        }
        if (toAdd instanceof RandomAccess)
        {
            List<? extends T> randomAccess = (List<? extends T>) toAdd;
            for (int i = 0, size = randomAccess.size(); i < size; i++)
            {
                T element = randomAccess.get(i);
                collection.add(element);
            }
        }
        else
        {
            collection.addAll(toAdd);
        }
    }
1126896
private void addMetaData() {
		document.addTitle(getDocumentTitle());
		document.addAuthor(ReleaseInfoAdapter.getCompany());
		document.addCreator("NextReports " + ReleaseInfoAdapter.getVersionNumber());
		document.addSubject("Created by NextReports Designer" + ReleaseInfoAdapter.getVersionNumber());
		document.addCreationDate();
		document.addKeywords(ReleaseInfoAdapter.getHome());
	}
447800
@Override
  public void addUserMetadata(String key, String value)
  {
    this.s3Metadata.addUserMetadata(key, value);
  }
372657
public void setColumnMetadata(java.util.Collection<ColumnMetadata> columnMetadata) {
        if (columnMetadata == null) {
            this.columnMetadata = null;
            return;
        }

        this.columnMetadata = new java.util.ArrayList<ColumnMetadata>(columnMetadata);
    }
1088831
@Override
	public void add(Collection<Object> values) {
		for(Object value : values)
			addOne(value);
	}
364494
protected function wizardAddCollection()
    {
        $this->validatePrompt('title', $this->text('Title'), 'collection');
        $this->validateMenu('type', $this->text('Type'), 'collection', $this->collection->getTypes());
        $this->validatePrompt('store_id', $this->text('Store'), 'collection');
        $this->validatePrompt('description', $this->text('Description'), 'collection', '');
        $this->validatePrompt('status', $this->text('Status'), 'collection', 0);

        $this->validateComponent('collection');
        $this->addCollection();
    }
410881
protected void addAssociatedEntitiesToDocument(EntityMetadata metadata, Object entity, Document document,
        MetamodelImpl metaModel) {
        try {
            IndexCollection indexes = metadata.getEntityClazz().getAnnotation(IndexCollection.class);
            if (indexes != null) {
                List<String> columnsNameToBeIndexed = new ArrayList<String>();
                for (com.impetus.kundera.index.Index indexedColumn : indexes.columns()) {
                    Attribute attrib = metaModel.getEntityAttribute(entity.getClass(), indexedColumn.name());
                    columnsNameToBeIndexed.add(((AbstractAttribute) attrib).getJPAColumnName());
                }

                String indexName = metadata.getIndexName();
                List<Relation> relations = metadata.getRelations();
                for (Relation relation : relations) {
                    if (relation.getType().equals(ForeignKey.MANY_TO_ONE)
                        || relation.getType().equals(ForeignKey.ONE_TO_ONE)) {
                        String propertyName = relation.getJoinColumnName(null);
                        if (propertyName != null && columnsNameToBeIndexed.contains(propertyName)) {
                            java.lang.reflect.Field property = relation.getProperty();
                            Object obj = PropertyAccessorHelper.getObject(entity, property);
                            if (obj != null) {
                                EntityMetadata relMetaData = metaModel.getEntityMetadata(obj.getClass());
                                Object id = PropertyAccessorHelper.getId(obj, relMetaData);
                                if (id != null) {
                                    Field luceneField =
                                        new Field(getCannonicalPropertyName(indexName, propertyName), id.toString(),
                                            Field.Store.YES, Field.Index.ANALYZED_NO_NORMS);

                                    document.add(luceneField);
                                } else {
                                    LOG.warn("value is null for field" + property.getName());
                                }
                            }
                        }
                    }
                }
            }
        } catch (PropertyAccessException e) {
            LOG.error("Error in accessing field, Caused by:" + e.getMessage());
            throw new LuceneIndexingException("Error in creating indexes on associated columns", e);
        }
    }