Package org.apache.maven.internal.impl
Class DefaultModelXmlFactory
java.lang.Object
org.apache.maven.internal.impl.DefaultModelXmlFactory
- All Implemented Interfaces:
Service
,ModelXmlFactory
,XmlFactory<Model>
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.services.xml.XmlFactory
fromXmlString, read, read, read, read, read, read, toXmlString, write, write, write
-
Constructor Details
-
DefaultModelXmlFactory
public DefaultModelXmlFactory()
-
-
Method Details
-
read
- Specified by:
read
in interfaceXmlFactory<Model>
- Throws:
XmlReaderException
-
write
- Specified by:
write
in interfaceXmlFactory<Model>
- Throws:
XmlWriterException
-
fromXml
Simply parse the given xml string.- Parameters:
xml
- the input xml string- Returns:
- the parsed object
- Throws:
XmlReaderException
- if an error occurs during the parsing- See Also:
-
toXml
Simply converts the given content to an xml string.- Parameters:
content
- the object to convert- Returns:
- the xml string representation
- Throws:
XmlWriterException
- if an error occurs during the transformation- See Also:
-