@Named @Singleton public class DefaultModelXmlFactory extends Object implements ModelXmlFactory
| Constructor and Description |
|---|
DefaultModelXmlFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Model |
fromXml(String xml)
Simply parse the given xml string.
|
Model |
read(XmlReaderRequest request) |
static String |
toXml(Model content)
Simply converts the given content to an xml string.
|
void |
write(XmlWriterRequest<Model> request) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromXmlString, read, read, read, read, read, read, toXmlString, write, write, writepublic Model read(@Nonnull XmlReaderRequest request) throws XmlReaderException
read in interface XmlFactory<Model>XmlReaderExceptionpublic void write(XmlWriterRequest<Model> request) throws XmlWriterException
write in interface XmlFactory<Model>XmlWriterExceptionpublic static Model fromXml(@Nonnull String xml) throws XmlReaderException
xml - the input xml stringXmlReaderException - if an error occurs during the parsingXmlFactory.toXmlString(Object)public static String toXml(@Nonnull Model content) throws XmlWriterException
content - the object to convertXmlWriterException - if an error occurs during the transformationXmlFactory.fromXmlString(String)Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.