public void addAttribute(String name, long value, boolean hex) {
		/*
		if the value is negative (and in hex) we want
		the negative sign ('-') to appear before the '0x'
		*/
		buffer.append(" " + name + "=\"");
		String valueString = Long.toString(value, hex ? 16 : 10);
		if (valueString.startsWith("-")) {
			buffer.append("-");
			valueString = valueString.substring(1);
		}
		if (hex) {
			buffer.append("0x");
		}
		buffer.append(valueString);
		buffer.append("\"");
	}
Add a new long attribute.
@param name  the name of the new attribute
@param value the long value
@param hex   true if value should be written in hex
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlAttributes.java