public class XMLUtil extends Object
Modifier and Type | Class and Description |
---|---|
class |
XMLUtil.JAXBContextCreator |
Modifier and Type | Field and Description |
---|---|
static String |
PACKAGE
the package name to search for the generated java classes.
|
Constructor and Description |
---|
XMLUtil() |
Modifier and Type | Method and Description |
---|---|
int |
getMonth(de.jollyday.config.Month month)
Returns the
DateTimeConstants value for the given month. |
HolidayType |
getType(de.jollyday.config.HolidayType type)
Gets the type.
|
DayOfWeek |
getWeekday(de.jollyday.config.Weekday weekday)
Returns the
DateTimeConstants value for the given weekday. |
de.jollyday.config.Configuration |
unmarshallConfiguration(InputStream stream)
Unmarshalls the configuration from the stream.
|
public static final String PACKAGE
public de.jollyday.config.Configuration unmarshallConfiguration(InputStream stream) throws IOException
JAXB
for
this.stream
- a InputStream
object.IOException
- Could not close the provided stream.public final DayOfWeek getWeekday(de.jollyday.config.Weekday weekday)
DateTimeConstants
value for the given weekday.weekday
- a Weekday
object.public int getMonth(de.jollyday.config.Month month)
DateTimeConstants
value for the given month.month
- a Month
object.public HolidayType getType(de.jollyday.config.HolidayType type)
type
- the type of holiday in the configCopyright © 18.01.2010–2015. All rights reserved.