de.focus_shift.jollyday.jaxb.JaxbConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jollyday-jaxb Show documentation
Show all versions of jollyday-jaxb Show documentation
Jakarta XML Binding (JAXB) based jollyday implementation
package de.focus_shift.jollyday.jaxb;
import de.focus_shift.jollyday.core.spi.Configuration;
import de.focus_shift.jollyday.core.spi.Holidays;
import java.util.stream.Stream;
public class JaxbConfiguration implements Configuration {
private final de.focus_shift.jollyday.jaxb.mapping.Configuration xmlConfiguration;
public JaxbConfiguration(de.focus_shift.jollyday.jaxb.mapping.Configuration xmlConfiguration) {
this.xmlConfiguration = xmlConfiguration;
}
@Override
public Holidays holidays() {
return new JaxbHolidays(xmlConfiguration.getHolidays());
}
@Override
public Stream subConfigurations() {
return xmlConfiguration.getSubConfigurations().stream().map(JaxbConfiguration::new);
}
@Override
public String hierarchy() {
return xmlConfiguration.getHierarchy();
}
@Override
public String description() {
return xmlConfiguration.getDescription();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy