src/main/java/org/xmlet/xsdparser/xsdelements/AttributeValidations.java
private static Double validateDouble(String elementName, String attributeName, String value){
        try {
            return Double.parseDouble(value);
        } catch (NumberFormatException e){
            throw new ParsingException("The " + elementName + " " + attributeName + "  attribute should be a numeric value.");
        }
    }
private static Double validateDouble(String elementName, String attributeName, String value){
        try {
            return Double.parseDouble(value);
        } catch (NumberFormatException e){
            throw new ParsingException("The " + elementName + " " + attributeName + "  attribute should be a numeric value.");
        }
    }
private static Double validateDouble ( String elementName , String attributeName , String value ) { try { return Double . parseDouble ( value ) ; } catch ( NumberFormatException e ) { throw new ParsingException ( "The " + elementName + " " + attributeName + "  attribute should be a numeric value." ) ; } }
Validates if a given {@link String} is a {@link Double}. Throws an exception if the {@link String} isn't a
{@link Double}.
@param elementName The element name containing the field with the {@link Double} value.
@param attributeName The name of the attribute with the type {@link Double}.
@param value The value to be parsed to a {@link Double} object.
@return The parsed {@link Double} value.
Validates if a given {