@Override public final void getElementAs(TypedValueDecoder tvd) throws XMLStreamException { // !!! TODO: optimize String value = getElementText(); value = value.trim(); if (value.length() == 0) { _handleEmptyValue(tvd); return; } try { tvd.decode(value); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, value); } }
@Override public final void getElementAs(TypedValueDecoder tvd) throws XMLStreamException { // !!! TODO: optimize String value = getElementText(); value = value.trim(); if (value.length() == 0) { _handleEmptyValue(tvd); return; } try { tvd.decode(value); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, value); } }