public AddressMutableState asMutable(AddressStringStateConverter converter) { return new AddressMutableState( converter.toAddressId(addressId), converter.toStreetName(streetName), converter.toZipcode(zipcode), converter.toCity(city)); }
public void validateAddressId( String value, Object rootElement, String parent, ValidationErrors.Builder errors) { try { converter.toAddressId(value); } catch (Exception e) { errors.addTypeConversionError(rootElement, "addressId", parent); } }