List of utility methods to do XML Attribute Get
double[] | getDoubleArrayTagAttribute(XMLStreamReader xmler, String attribute, double[] defaultValue) get Double Array Tag Attribute return getDoubleArrayTagAttribute(xmler, attribute, defaultValue, "\\"); |
double | getDoubleAttribute(Element element, String name) get Double Attribute String s = getTrimmedAttribute(element, name);
return s.isEmpty() ? 0d : Double.parseDouble(s);
|
double | getDoubleAttribute(Node n, String s) get Double Attribute return Double.parseDouble(getAttribute(n, s));
|
Double | getDoubleAttribute(String name, Element el) Gets the value of the DOM element's attribute with the given name as a Double, or null if the value is not a double. return stringToDouble(getAttribute(name, el));
|
double | getDoubleAttributeValue(Element element, String attribute) get Double Attribute Value double ret; Attr attr = element.getAttributeNode(attribute); try { ret = Double.valueOf(attr.getValue()); } catch (NumberFormatException e) { ret = 0d; return ret; ... |
Double | getDoubleAttributeValue(final Element element, final String attributeName) Get a double value from an attribute. if (null == element) { return null; final String str = element.getAttribute(attributeName); if (str.isEmpty()) { return null; } else { return Double.valueOf(str); ... |