|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnan.model.XMLFactory
A static helper method class for converting from XML to Java objects.
Method Summary | |
static Attachment |
getAttachment(org.dom4j.Document document)
Reconstructs an Attachment from an XML Document. |
static License |
getLicense(org.dom4j.Document document)
Reconstructs a License from an XML Document. |
static Message |
getMessage(org.dom4j.Document document)
Reconstructs a Message from an XML Document. |
static MessageHeader |
getMessageHeader(org.dom4j.Document document)
Recreates a MessageHeader from an XML Document. |
static Newsgroup |
getNewsgroup(org.dom4j.Document document)
Recreates a Newsgroup from an XML Document. |
static NewsgroupList |
getNewsgroupList(org.dom4j.Document document)
Recreates a NewsgroupList from an XML Document. |
static ServerSettings |
getServerSettings(org.dom4j.Document document)
Recreates a ServerSettings object from an XML Document. |
static UserSettings |
getUserSettings(org.dom4j.Document document)
Recreates a UserSettings object from an XML Document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ServerSettings getServerSettings(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the Document is not in proper form.public static UserSettings getUserSettings(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a UserSettings
XML Document.public static Newsgroup getNewsgroup(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a Newsgroup XML
Document.public static NewsgroupList getNewsgroupList(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a NewsgroupList
XML Document.public static MessageHeader getMessageHeader(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a MessageHeader
XML Document.public static Message getMessage(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a Message XML
Document.public static License getLicense(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not a License XML
Document.public static Attachment getAttachment(org.dom4j.Document document) throws XMLParseException
document
- The XML Document.
XMLParseException
- if the XML Document is not an Attachment
XML Document.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |