return value != null ? value.toString() : defaultValue;
}
private Boolean getAttribute( final InputElement input, final String name, final Boolean defaultValue ) throws XMLStreamException {
final CharArray value = input.getAttribute( name );
return value != null ? Boolean.valueOf( value.toBoolean() ) : defaultValue;
}
private Integer getAttribute( final InputElement input, final String name, final Integer defaultValue ) throws XMLStreamException {
final CharArray value = input.getAttribute( name );
return value != null ? Integer.valueOf( value.toInt() ) : defaultValue;