/** * Gets the value out of the connector text after parsing the string * representation. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { if (StringUtils.isEmpty(getConnectedSComponent().getText())) { return null; } if (formatter != null) { try { Object value = formatter .parse(getTextForParser(getConnectedSComponent().getText())); getConnectedSComponent().setText(formatter.format(value)); return value; } catch (ParseException ex) { setConnecteeValue(null); return null; } } return super.getConnecteeValue(); }
/** * Gets the value out of the connector text after parsing the string * representation. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { if (StringUtils.isEmpty(getConnectedSComponent().getText())) { return null; } if (formatter != null) { try { Object value = formatter .parse(getTextForParser(getConnectedSComponent().getText())); getConnectedSComponent().setText(formatter.format(value)); return value; } catch (ParseException ex) { setConnecteeValue(null); return null; } } return super.getConnecteeValue(); }