Interface ModelProcessor
- All Known Implementing Classes:
DefaultModelProcessor
public interface ModelProcessor
ModelProcessor
-
Method Summary
Modifier and TypeMethodDescriptionlocateExistingPom(Path project) Returns the file containing the pom to be parsed or null if a pom can not be found at the given file or in the given directory.org.apache.maven.api.model.Modelread(org.apache.maven.api.services.xml.XmlReaderRequest request) Reads the model from the specified byte stream.
-
Method Details
-
locateExistingPom
Returns the file containing the pom to be parsed or null if a pom can not be found at the given file or in the given directory. -
read
org.apache.maven.api.model.Model read(org.apache.maven.api.services.xml.XmlReaderRequest request) throws IOException, org.apache.maven.api.services.xml.XmlReaderException Reads the model from the specified byte stream. The stream will be automatically closed before the method returns.- Parameters:
request- The reader request to deserialize the model, must not benull.- Returns:
- The deserialized model, never
null. - Throws:
IOException- If the model could not be deserialized.org.apache.maven.api.services.xml.XmlReaderException- If the input format could not be parsed.
-