net.fortuna.ical4j.transform.property.DatePropertyRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j Show documentation
Show all versions of ical4j Show documentation
A Java library for reading and writing iCalendar (*.ics) files
package net.fortuna.ical4j.transform.property;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.property.DateProperty;
/**
*
* @author daniel grigore
* @author corneliu dobrota
*/
public class DatePropertyRule implements Rfc5545PropertyRule {
@Override
public void applyTo(DateProperty element) {
TzHelper.correctTzParameterFrom(element);
if (!element.isUtc() || !element.getParameter(Parameter.TZID).isPresent()) {
return;
}
element.getParameters().removeIf(p -> p.getName().equals(Parameter.TZID));
}
@Override
public Class getSupportedType() {
return DateProperty.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy