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
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginDescriptor
Simply parse the given xml string.read
(XmlReaderRequest request) static String
toXml
(PluginDescriptor content) Simply converts the given content to an xml string.void
write
(XmlWriterRequest<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
- Specified by:
read
in interfaceXmlFactory<PluginDescriptor>
- Throws:
XmlReaderException
-
write
- Specified by:
write
in 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:
-