Removes and recreates tag using specified Long value

@param name  Tag name to replace
@param value New Long value
333879
public void setTagValue(String name, long value) {
        removeTag(name);
        XtraTag tag = new XtraTag(name);
        tag.values.addElement(new XtraValue(value));
        tags.addElement(tag);
    }
781186
public OverpassFilterQuery tag(String name, String value) {
        builder.equals(name, value);

        return this;
    }
929249
public void setValue (String name, long value)
    {
        Long oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Long.valueOf(_prefs.getLong(name, super.getValue(name, 0L)));
        }

        _prefs.putLong(name, value);
        _propsup.firePropertyChange(name, oldValue, Long.valueOf(value));
    }
1223038
public void setAnnotation( String name, String value)
    {
    String annotation = StringUtils.trimToNull( name);
    if( annotation == null)
      {
      throw new IllegalArgumentException( "Annotation name must be non-blank");
      }
    if( value == null)
      {
      annotations_.remove( annotation);
      }
    else
      {
      annotations_.put( annotation, value);
      }
    }
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);
  }
352743
public void set(long value) {
		if (this.value == value) return;
		long previous = this.value;
		this.value = value;
		event.fire(Long.valueOf(previous));
	}
133330
public void removeTag(String tagName) {
    int ids = -1;
    for (DataSet ds : iimFile.getDataSets()) {
      if (ds.getInfo().getName().equals(tagName))
        ids = ds.getInfo().getDataSetNumber();
    }
    if (ids != -1)
      iimFile.remove(ids);
  }
336310
public OverpassFilterQuery tagRegexNot(String name, String value) {
        builder.regexDoesntMatch(name, value);

        return this;
    }
339946
public static void putLong(final String key, final long value) {
        final Editor editor = getPreferences().edit();
        editor.putLong(key, value);
        editor.apply();
    }
1057784
public static String removeSimpleHTML(String value) {
		String rex = "<^[>]+/>|" + TAG + "[^<]*</[^>]*>|" + TAG;
		if (value == null || value.equals("")) return "";
		return value.replaceAll(rex, "");
	}
163443
public OverpassFilterQuery tagRegex(String name, String value) {
        builder.regexMatches(name, value);

        return this;
    }
919300
public void removeNameUrl(final String name, final String url) 
	throws IOException {
		// need to first see if there is already an entry for this name.
		// if not, do nothing
		// if so, loop thru all current url locations for name
		//     keep any that are not url
		// if any locations are left, update to the new value, sans url
		// if none are left, remove the entry from the db
		
		StringBuilder newValue = new StringBuilder();
		String oldValue = get(name);
		if(oldValue != null && oldValue.length() > 0) {
			String curUrls[] = oldValue.split(urlDelimiterRE);

			for(int i=0; i < curUrls.length; i++) {
				if(!url.equals(curUrls[i])) {
					if(newValue.length() > 0) {
						newValue.append(urlDelimiter);
					}
					newValue.append(curUrls[i]);
				}
			}
			
			if(newValue.length() > 0) {
				
				// update
				put(name, newValue.toString());
				
			} else {
				
				// remove the entry:
				delete(name);
			}
		}
	}
82212
public static Attribute<HtmlTag> meta( String name, String value )
    {
        return head( "meta", ignored ->
        {
        }, new Attribute<Void>()
        {
            @Override
            public String name()
            {
                return name;
            }

            @Override
            public String value( Void target )
            {
                return value;
            }
        } );
    }
1253838
public void setTimeDuration(String name, long value, TimeUnit unit) {
		set(name, value + ParsedTimeDuration.unitFor(unit).suffix());
	}
1287721
public long longValue(String name, String namespace) {
        String s = childValue(name, namespace);
        if (s != null) {
            return Long.parseLong(s);
        }
        throw new IllegalArgumentException(this + ": content: " + name);
    }
4719
public void removeAttribute(String name) {
        for(Map<String, ?> attributeValueMap : attributeMaps.values()) {
            clearAttribute(attributeValueMap, name);
        }
    }
663592
public XmlStringBuilder optLongAttribute(String name, Long value) {
        if (value != null && value >= 0) {
            attribute(name, Long.toString(value));
        }
        return this;
    }