public class TrovitDocument extends XmlDocument<Trovit>
| Constructor and Description |
|---|
TrovitDocument(Document document)
Create from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isReadable(Document doc)
Checks, if a
Document is readable as a TrovitDocument. |
static TrovitDocument |
newDocument()
Creates an empty
TrovitDocument. |
static TrovitDocument |
newDocument(Trovit trovit)
Creates a
TrovitDocument from a Trovit object. |
Trovit |
toObject()
|
getDocument, isTextWrittenAsCDATA, prepareDocumentBeforeWritingToXml, setTextWrittenAsCDATA, toXml, toXml, toXml, toXml, toXml, toXml, toXmlString, toXmlStringpublic static boolean isReadable(Document doc)
Document is readable as a TrovitDocument.doc - document to checkpublic static TrovitDocument newDocument() throws ParserConfigurationException, JAXBException
TrovitDocument.ParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic static TrovitDocument newDocument(Trovit trovit) throws ParserConfigurationException, JAXBException
TrovitDocument from a Trovit object.trovit - Java object, that represents the <trovit> root elementParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic Trovit toObject() throws JAXBException
toObject in class XmlDocument<Trovit>JAXBException - if a problem with JAXB occuredCopyright © 2015 OpenEstate. All rights reserved.