Package org.apache.maven.internal.impl
Class DefaultPluginXmlFactory
java.lang.Object
org.apache.maven.internal.impl.DefaultPluginXmlFactory
- All Implemented Interfaces:
Service,PluginXmlFactory,XmlFactory<PluginDescriptor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginDescriptorSimply parse the given xml string.read(XmlReaderRequest request) static StringtoXml(PluginDescriptor content) Simply converts the given content to an xml string.voidwrite(XmlWriterRequest<PluginDescriptor> request) 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
-
DefaultPluginXmlFactory
public DefaultPluginXmlFactory()
-
-
Method Details
-
read
- Specified by:
readin interfaceXmlFactory<PluginDescriptor>- Throws:
XmlReaderException
-
write
- Specified by:
writein interfaceXmlFactory<PluginDescriptor>- 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:
-