Class DefaultPluginXmlFactory
java.lang.Object
org.apache.maven.impl.DefaultPluginXmlFactory
- All Implemented Interfaces:
- Service,- PluginXmlFactory,- XmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.apache.maven.api.plugin.descriptor.PluginDescriptorSimply parse the given xml string.org.apache.maven.api.plugin.descriptor.PluginDescriptorread(XmlReaderRequest request) static StringtoXml(org.apache.maven.api.plugin.descriptor.PluginDescriptor content) Simply converts the given content to an XML string.voidwrite(XmlWriterRequest<org.apache.maven.api.plugin.descriptor.PluginDescriptor> request) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.services.xml.XmlFactoryfromXmlString, read, read, read, read, read, read, toXmlString, write, write, write
- 
Constructor Details- 
DefaultPluginXmlFactorypublic DefaultPluginXmlFactory()
 
- 
- 
Method Details- 
readpublic org.apache.maven.api.plugin.descriptor.PluginDescriptor read(@Nonnull XmlReaderRequest request) throws XmlReaderException - Specified by:
- readin interface- XmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
- Throws:
- XmlReaderException
 
- 
writepublic void write(XmlWriterRequest<org.apache.maven.api.plugin.descriptor.PluginDescriptor> request) throws XmlWriterException - Specified by:
- writein interface- XmlFactory<org.apache.maven.api.plugin.descriptor.PluginDescriptor>
- Throws:
- XmlWriterException
 
- 
fromXmlpublic 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:
 
- 
toXmlpublic 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:
 
 
-