private int getIntValue(Element element) {
		if (element != null) {
			try {
				return Integer.parseInt(element.getValue());
			} catch (NumberFormatException e) {
				logger.error("Failed to extract an integer from: " + element.getValue());
			}
		}
		return 0;
	}
private int getIntValue ( Element element ) { if ( element != null ) { try { return Integer . parseInt ( element . getValue ( ) ) ; } catch ( NumberFormatException e ) { logger . error ( "Failed to extract an integer from: " + element . getValue ( ) ) ; } } return 0 ; }
Gets an integer from the given element.
<p>
If the given element is {@code null} or does not have an integer, zero is returned.

@param element the element with the integer value
@return an integer