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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readin interfaceXmlFactory<Model>- Throws:
XmlReaderException
-
write
- Specified by:
writein 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:
-