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;
}
private Byte getAttribute( final InputElement input, final String name, final Byte defaultValue ) throws XMLStreamException {
final CharArray value = input.getAttribute( name );
return value != null ? Byte.valueOf( TypeFormat.parseByte( value ) ) : defaultValue;