return value != null ? Short.valueOf( TypeFormat.parseShort( value ) ) : defaultValue;
}
private Float getAttribute( final InputElement input, final String name, final Float defaultValue ) throws XMLStreamException {
final CharArray value = input.getAttribute( name );
return value != null ? Float.valueOf( value.toFloat() ) : defaultValue;
}
private Double getAttribute( final InputElement input, final String name, final Double defaultValue ) throws XMLStreamException {
final CharArray value = input.getAttribute( name );
return value != null ? Double.valueOf( value.toDouble() ) : defaultValue;