public void parameter(final String name, final String value) throws URISyntaxException { assertProperty(property); // parameter names are case-insensitive, but convert to upper case to simplify further processing final Parameter param = parameterFactory.createParameter(name.toUpperCase(), Strings.escapeNewline(value)); property.getParameters().add(param); if (param instanceof TzId && tzRegistry != null && !(property instanceof XProperty)) { final TimeZone timezone = tzRegistry.getTimeZone(param.getValue()); if (timezone != null) { updateTimeZone(property, timezone); } else { // VTIMEZONE may be defined later, so so keep // track of dates until all components have been // parsed, and then try again later datesMissingTimezones.add(property); } } }
public void parameter(final String name, final String value) throws URISyntaxException { assertProperty(property); // parameter names are case-insensitive, but convert to upper case to simplify further processing final Parameter param = parameterFactory.createParameter(name.toUpperCase(), Strings.escapeNewline(value)); property.getParameters().add(param); if (param instanceof TzId && tzRegistry != null && !(property instanceof XProperty)) { final TimeZone timezone = tzRegistry.getTimeZone(param.getValue()); if (timezone != null) { updateTimeZone(property, timezone); } else { // VTIMEZONE may be defined later, so so keep // track of dates until all components have been // parsed, and then try again later datesMissingTimezones.add(property); } } }
@Override public void parameter(final String name, final String value) throws URISyntaxException { assertProperty(property); // parameter names are case-insensitive, but convert to upper case to simplify further processing final Parameter param = parameterFactory.createParameter(name.toUpperCase(), value); property.getParameters().add(param); if ((param instanceof TzId) && (tzRegistry != null) && !(property instanceof XProperty)) { final TimeZone timezone = tzRegistry.getTimeZone(param.getValue()); if (timezone != null) { updateTimeZone(property, timezone); /* Bedework - for the moment switch ids if they differ */ if (!timezone.getID().equals(param.getValue())) { /* Fetched timezone has a different id */ ParameterList pl = property.getParameters(); pl.replace(ParameterFactoryImpl.getInstance(). createParameter(Parameter.TZID, timezone.getID())); } } else { // VTIMEZONE may be defined later, so so keep // track of dates until all components have been // parsed, and then try again later datesMissingTimezones.add(property); } } }
@Override public void parameter(final String name, final String value) throws URISyntaxException { assertProperty(bs.getProperty()); // parameter names are case-insensitive, but convert to upper case to simplify further processing final Parameter param = parameterFactory.createParameter(name.toUpperCase(), value); bs.getProperty().getParameters().add(param); if ((param instanceof TzId) && (bs.getTzRegistry() != null)) { final TimeZone timezone = bs.getTzRegistry().getTimeZone(param.getValue()); if (timezone != null) { updateTimeZone(bs.getProperty(), timezone); /* Bedework - for the moment switch ids if they differ */ if (!timezone.getID().equals(param.getValue())) { /* Fetched timezone has a different id */ final ParameterList pl = bs.getProperty().getParameters(); pl.replace(ParameterFactoryImpl.getInstance(). createParameter(Parameter.TZID, timezone.getID())); } } else { // VTIMEZONE may be defined later, so so keep // track of dates until all components have been // parsed, and then try again later bs.getDatesMissingTimezones().add(bs.getProperty()); } } }