Package org.apache.maven.internal.impl
Class DefaultPluginXmlFactory
java.lang.Object
org.apache.maven.internal.impl.DefaultPluginXmlFactory
- All Implemented Interfaces:
Service
,PluginXmlFactory
,XmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.maven.api.plugin.descriptor.PluginDescriptor
Simply parse the given xml string.org.apache.maven.api.plugin.descriptor.PluginDescriptor
read
(XmlReaderRequest request) static String
toXml
(org.apache.maven.api.plugin.descriptor.PluginDescriptor content) Simply converts the given content to an xml string.void
write
(XmlWriterRequest<org.apache.maven.api.plugin.descriptor.PluginDescriptor> request) 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
-
DefaultPluginXmlFactory
public DefaultPluginXmlFactory()
-
-
Method Details
-
read
public org.apache.maven.api.plugin.descriptor.PluginDescriptor read(@Nonnull XmlReaderRequest request) throws XmlReaderException - Specified by:
read
in interfaceXmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
- Throws:
XmlReaderException
-
write
public void write(XmlWriterRequest<org.apache.maven.api.plugin.descriptor.PluginDescriptor> request) throws XmlWriterException - Specified by:
write
in interfaceXmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
- Throws:
XmlWriterException
-
fromXml
public static org.apache.maven.api.plugin.descriptor.PluginDescriptor fromXml(@Nonnull String xml) throws XmlReaderException 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
public static String toXml(@Nonnull org.apache.maven.api.plugin.descriptor.PluginDescriptor content) throws XmlWriterException 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:
-