public final class ScheduleXmlConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
mLogger |
static String |
SCHEDULE_XML_NAMESPACE
The XML namespace of the schedule XML.
|
Constructor and Description |
---|
ScheduleXmlConverter()
Creates an instance of ScheduleXmlConverter.
|
Modifier and Type | Method and Description |
---|---|
Schedule |
toSchedule(nu.xom.Document pScheduleDocument)
Converts an XML document to schedule.
|
Schedule |
toSchedule(InputStream pInputStream)
Converts an XML form an InputStream to schedule.
|
Schedule |
toSchedule(String pScheduleXml)
Converts an XML string to schedule.
|
String |
toXml(Schedule pSchedule)
Converts a schedule to XML.
|
public static final String SCHEDULE_XML_NAMESPACE
protected final org.slf4j.Logger mLogger
public ScheduleXmlConverter()
public Schedule toSchedule(String pScheduleXml) throws nu.xom.ParsingException
pScheduleXml
- the XML to convert; can not be null
.null
.nu.xom.ParsingException
- if pScheduleXml is invalid.IllegalArgumentException
- if pScheduleXml is null
.public Schedule toSchedule(InputStream pInputStream) throws nu.xom.ParsingException
pInputStream
- an InputStream containing the XML to convert; can not be null
.null
.nu.xom.ParsingException
- if the XML in pInputStream is invalid.IllegalArgumentException
- if pInputStream is null
.public Schedule toSchedule(nu.xom.Document pScheduleDocument) throws nu.xom.ParsingException
pScheduleDocument
- a document containing the XML to convert; can not be null
.null
.nu.xom.ParsingException
- if the XML in pScheduleDocument is invalid.IllegalArgumentException
- if pScheduleDocument is null
.public String toXml(Schedule pSchedule)
pSchedule
- the schedule to convert; can not be null
.null
.IllegalArgumentException
- if pSchedule is null
or invalid.© 1998- 2018 Stibo DX