Method updateActivationOS.

@param value
@param element
@param counter
@param xmlTag
431977
protected void updateActivationOS(ActivationOS value, String xmlTag, Counter counter, Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         findAndReplaceSimpleElement(innerCount, root, "name", value.getName(), null);
         findAndReplaceSimpleElement(innerCount, root, "family", value.getFamily(), null);
         findAndReplaceSimpleElement(innerCount, root, "arch", value.getArch(), null);
         findAndReplaceSimpleElement(innerCount, root, "version", value.getVersion(), null);
      }
   }
96678
public void setValue(List<Tag> value) throws IllegalArgumentException {
        this.type = null;
        this.value.clear();

        for(Tag tag : value) {
            this.add(tag);
        }
    }
239542
public void update(Value value) {
		if (size() == 0) {
			add(value);
		} else {
			Key subKey = makeSubKey(value);
			client.put(this.policy, subKey, new Bin(ListElementBinName, value));
		}
	}
1159086
protected void updateReportPlugin(ReportPlugin value, String xmlTag, Counter counter, Element element)
   {
      Element root = element;
      Counter innerCount = new Counter(counter.getDepth() + 1);
      findAndReplaceSimpleElement(innerCount, root, "groupId", value.getGroupId(), "org.apache.maven.plugins");
      findAndReplaceSimpleElement(innerCount, root, "artifactId", value.getArtifactId(), null);
      findAndReplaceSimpleElement(innerCount, root, "version", value.getVersion(), null);
      findAndReplaceSimpleElement(innerCount, root, "inherited", value.getInherited(), null);
      findAndReplaceXpp3DOM(innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration());
      iterateReportSet(innerCount, root, value.getReportSets(), "reportSets", "reportSet");
   }
202929
protected void updateNotifier(Notifier value, String xmlTag, Counter counter, Element element)
   {
      Element root = element;
      Counter innerCount = new Counter(counter.getDepth() + 1);
      findAndReplaceSimpleElement(innerCount, root, "type", value.getType(), "mail");
      findAndReplaceSimpleElement(innerCount, root, "sendOnError",
               (value.isSendOnError() == true) ? null : String.valueOf(value.isSendOnError()), "true");
      findAndReplaceSimpleElement(innerCount, root, "sendOnFailure",
               (value.isSendOnFailure() == true) ? null : String.valueOf(value.isSendOnFailure()), "true");
      findAndReplaceSimpleElement(innerCount, root, "sendOnSuccess",
               (value.isSendOnSuccess() == true) ? null : String.valueOf(value.isSendOnSuccess()), "true");
      findAndReplaceSimpleElement(innerCount, root, "sendOnWarning",
               (value.isSendOnWarning() == true) ? null : String.valueOf(value.isSendOnWarning()), "true");
      findAndReplaceSimpleElement(innerCount, root, "address", value.getAddress(), null);
      findAndReplaceProperties(innerCount, root, "configuration", value.getConfiguration());
   }
541598
@SuppressWarnings("unchecked")
   protected void replaceXpp3DOM(final Element parent, final Xpp3Dom parentDom, final Counter counter)
   {
      if (parentDom.getChildCount() > 0)
      {
         Xpp3Dom[] childs = parentDom.getChildren();
         Collection<Xpp3Dom> domChilds = new ArrayList<>();
         for (int i = 0; i < childs.length; i++)
         {
            domChilds.add(childs[i]);
         }

         ListIterator<Element> it = parent.getChildren().listIterator();
         while (it.hasNext())
         {
            Element elem = it.next();
            Iterator<Xpp3Dom> it2 = domChilds.iterator();
            Xpp3Dom corrDom = null;
            while (it2.hasNext())
            {
               Xpp3Dom dm = it2.next();
               if (dm.getName().equals(elem.getName()))
               {
                  corrDom = dm;
                  break;
               }
            }
            if (corrDom != null)
            {
               domChilds.remove(corrDom);
               replaceXpp3DOM(elem, corrDom, new Counter(counter.getDepth() + 1));
               counter.increaseCount();
            }
            else
            {
               it.remove();
            }
         }

         Iterator<Xpp3Dom> it2 = domChilds.iterator();
         while (it2.hasNext())
         {
            Xpp3Dom dm = it2.next();
            Element elem = factory.element(dm.getName(), parent.getNamespace());
            for (String attName : dm.getAttributeNames())
            {
               elem.setAttribute(attName, dm.getAttribute(attName));
            }
            insertAtPreferredLocation(parent, elem, counter);
            counter.increaseCount();
            replaceXpp3DOM(elem, dm, new Counter(counter.getDepth() + 1));
         }
      }
      else if (parentDom.getValue() != null)
      {
         parent.setText(parentDom.getValue());
      }
   }
1068624
protected void updateOrganization(Organization value, String xmlTag, Counter counter, Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         findAndReplaceSimpleElement(innerCount, root, "name", value.getName(), null);
         findAndReplaceSimpleElement(innerCount, root, "url", value.getUrl(), null);
      }
   }
1272767
protected void updateRepositoryBase(RepositoryBase value, String xmlTag, Counter counter, Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
         findAndReplaceSimpleElement(innerCount, root, "name", value.getName(), null);
         findAndReplaceSimpleElement(innerCount, root, "url", value.getUrl(), null);
         findAndReplaceSimpleElement(innerCount, root, "layout", value.getLayout(), "default");
      }
   }
494155
public void addAction(M element, int value)
    {
        actions.put(element, Integer.valueOf(value));
    }
306351
synchronized public void set(Element value) {
    int bind = ((int)value.getIndex() & Integer.MAX_VALUE) % buckets.length;
    Element[] bucket = buckets[bind];
    int count = counts[bind];
    if (bucket == null)
      buckets[bind] = bucket = new Element[initBucketSize];
    else if (bucket.length == count) {
      bucket = new Element[count * 2];
      System.arraycopy(buckets[bind], 0, bucket, 0, count);
      buckets[bind] = bucket;
    }
    bucket[count] = value;
    counts[bind] = count + 1;
    totalSize += 1;
  }
1328886
private void setTag(final int i, final String name, final String value, 
      final boolean groupby) {
    setTagName(i, name);
    setTagValue(i, value);
    isTagGroupby(i, groupby);
  }
933052
@Override
	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
		if(localName.equals(TAG_LOG_ENTRY)) {
			if (currentTags != null) {
				throw new IllegalStateException("Should not have tags when a config starts in the XML, but had: " + currentTags);
			}
			currentTags = new LogEntry();
			if(attributes.getValue(TAG_REVISION) != null) {
				currentTags.revision = Long.parseLong(attributes.getValue(TAG_REVISION));
			}
		} else if (localName.equals(TAG_PATH)) {
			lastAction = attributes.getValue(TAG_PATH_ACTION);
		}
	}
1121642
public static void bindDown (final Value<Boolean> value, final ToggleButton toggle)
    {
        toggle.addClickHandler(new ClickHandler() {
            public void onClick (ClickEvent event) {
                value.updateIf(toggle.isDown());
            }
        });
        value.addListenerAndTrigger(new Value.Listener<Boolean>() {
            public void valueChanged (Boolean value) {
                toggle.setDown(value);
            }
        });
    }
160689
protected void updatePluginContainer(PluginContainer value, String xmlTag, Counter counter, Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         iteratePlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");
      }
   }
666792
protected void updateRepository(Repository value, String xmlTag, Counter counter, Element element)
   {
      Element root = element;
      Counter innerCount = new Counter(counter.getDepth() + 1);
      updateRepositoryPolicy(value.getReleases(), "releases", innerCount, root);
      updateRepositoryPolicy(value.getSnapshots(), "snapshots", innerCount, root);
      findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
      findAndReplaceSimpleElement(innerCount, root, "name", value.getName(), null);
      findAndReplaceSimpleElement(innerCount, root, "url", value.getUrl(), null);
      findAndReplaceSimpleElement(innerCount, root, "layout", value.getLayout(), "default");
   }
37904
protected void updatePluginConfiguration(PluginConfiguration value, String xmlTag, Counter counter,
            Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         updatePluginManagement(value.getPluginManagement(), "pluginManagement", innerCount, root);
         iteratePlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");
      }
   }
562473
protected void updateConfigurationContainer(ConfigurationContainer value, String xmlTag, Counter counter,
            Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         findAndReplaceSimpleElement(innerCount, root, "inherited", value.getInherited(), null);
         findAndReplaceXpp3DOM(innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration());
      }
   }