Set the children of the object.
557107
def set_children(self, value, defined):
        """"""
        self.children = value
        self.children_defined = defined
        return self
517084
public void setChildren(List<PrintComponent<?>> children) {
		this.children = children;
		// needed for Json unmarshall !!!!
		for (PrintComponent<?> child : children) {
			child.setParent(this);
		}
	}
652177
@Override
  public void setChildren(Tree[] children) {
    if (children == null || children.length == 0) {
      this.children = ZERO_TGN_CHILDREN;
    } else {
      if (children instanceof TreeGraphNode[]) {
        this.children = (TreeGraphNode[]) children;
      } else {
        this.children = new TreeGraphNode[children.length];
        for (int i = 0; i < children.length; i++) {
          this.children[i] = (TreeGraphNode)children[i];
        }
      }
    }
  }
200395
public void setChildren(com.google.api.ads.admanager.axis.v201811.CustomCriteriaNode[] children) {
        this.children = children;
    }
1366370
def child_set(self, child, **kwargs):
        """"""

        for name, value in kwargs.items():
            name = name.replace('_', '-')
            self.child_set_property(child, name, value)
955354
def emit_children(self, node):
        """"""
        return "".join([self.emit_node(child) for child in node.children])
286795
private void setTree(ComponentTree tree) {
        synchronized (this) {
            this.tree = tree;
            for (ComponentVertex child : children) {
                child.setTree(tree);
            }
        }
    }
530951
private void setChildObjects(Object pParent, ObjectMapper pOM)
        throws SQLException {
        if (pOM == null) {
            throw new NullPointerException("ObjectMapper in readChildObjects "
                                           + "cannot be null!!");
        }

        for (Enumeration keys = pOM.mMapTypes.keys(); keys.hasMoreElements();) {
            String property = (String) keys.nextElement();
            String mapType = (String) pOM.mMapTypes.get(property);
	    
            if (property.length() <= 0 || mapType == null) {
                continue;
            }
	    
            // Get the id of the parent
            Object id = getPropertyValue(pParent, 
                                         pOM.getProperty(pOM.getPrimaryKey()));

            if (mapType.equals(ObjectMapper.OBJECTMAP)) {
                // OBJECT Mapping		

                // Get the class for this property
                Class objectClass = (Class) pOM.mClasses.get(property);
		
                DatabaseReadable dbr = null;
                try {
                    dbr = (DatabaseReadable) objectClass.newInstance();
                }
                catch (Exception e) {
                    mLog.logError(e);
                }
		
                /*
                  Properties mapping = readMapping(objectClass);
                */
		    
                // Get property mapping for child object
                if (pOM.mJoins.containsKey(property))
                    // mapping.setProperty(".join", (String) pOM.joins.get(property));
                    dbr.getMapping().put(".join", pOM.mJoins.get(property));
		
                // Find id and put in where hash
                Hashtable where = new Hashtable();

                // String foreignKey = mapping.getProperty(".foreignKey");
                String foreignKey = (String) 
                    dbr.getMapping().get(".foreignKey");

                if (foreignKey != null) {
                    where.put(".foreignKey", id);
                }

                Object[] child = readObjects(dbr, where);
                // Object[] child = readObjects(objectClass, mapping, where);

                if (child.length < 1)
                    throw new SQLException("No child object with foreign key "
                                           + foreignKey + "=" + id);
                else if (child.length != 1)
                    throw new SQLException("More than one object with foreign "
                                           + "key " + foreignKey + "=" + id);

                // Set child object to the parent
                setPropertyValue(pParent, property, child[0]);
            }
            else if (mapType.equals(ObjectMapper.COLLECTIONMAP)) {
                // COLLECTION Mapping

                // Get property mapping for child object
                Hashtable mapping = pOM.getPropertyMapping(property);

                // Find id and put in where hash
                Hashtable where = new Hashtable();
                String foreignKey = (String) mapping.get(".foreignKey");
                if (foreignKey != null) {
                    where.put(".foreignKey", id);
                }
		
                DBObject dbr = new DBObject();
                dbr.mapping = mapping; // ugh...
                // Read the objects
                Object[] objs = readObjects(dbr, where);

                // Put the objects in a hash
                Hashtable children = new Hashtable();
                for (int i = 0; i < objs.length; i++) {
                    children.put(((DBObject) objs[i]).getId(), 
                                 ((DBObject) objs[i]).getObject());
                }
		
                // Set child properties to parent object
                setPropertyValue(pParent, property, children);
            }
        }
    }
280248
public function setChildren (array $components = [])
  {
    self::removeAll ($components);
    $this->children = $components;
    $this->attach ($components);
  }
174683
void setChildrenContexts(Map<String, List<TraverserContext<T>>> children) {
        assertTrue(this.children == null, "children already set");
        this.children = children;
    }
1341172
function (callback, context) {
        var _children = this._children;
        for(var i = 0, len = _children.length; i < len; i++) {
            var child = _children[i];
            callback.call(context, child, i);
        }
    }
1078452
def add_children_gos(self, gos):
        """"""
        lst = []
        obo_dag = self.obo_dag
        get_children = lambda go_obj: list(go_obj.get_all_children()) + [go_obj.id]
        for go_id in gos:
            go_obj = obo_dag[go_id]
            lst.extend(get_children(go_obj))
        return set(lst)
578988
def set_children(self, child_ids):
        """"""
        if not self._supports_simple_sequencing():
            raise errors.IllegalState()
        self._my_map['childIds'] = [str(i) for i in child_ids]
984388
public void putAll(List<IPRangeNode<Map>> children) {

	for (IPRangeNode child: children) {

	    this.put(child, false); // pass false for optimized insertion performance
	}
    }
391858
def set_property(self, prop, objects):
        """"""
        self._properties.add(prop)
        objects = set(objects)
        self._objects |= objects
        pairs = self._pairs
        for o in self._objects:
            if o in objects:
                pairs.add((o, prop))
            else:
                pairs.discard((o, prop))
258074
public void addChild(LockedObject newChild) {
        if (_children == null) {
            _children = new LockedObject[0];
        }
        int size = _children.length;
        LockedObject[] newChildren = new LockedObject[size + 1];
        System.arraycopy(_children, 0, newChildren, 0, size);
        newChildren[size] = newChild;
        _children = newChildren;
    }
582267
function _cacheChildren(node) {
  var children = node.get('children');
  if(children) {
    node.set('allChildren', children);
    children.forEach(_cacheChildren);
  }
}