Class PomReader
- java.lang.Object
-
- nl.zerofiftyit.mdepunit.core.parse.PomReader
-
public final class PomReader extends Object
A class for reading Maven POM (Project Object Model) files. This class provides the ability to parse a given POM file into a structured format and extract detailed information about its elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PomElement>getAllElements()Retrieves all elements from the parsed Maven POM file as a set of PomElement objects.
-
-
-
Constructor Detail
-
PomReader
public PomReader(String filePath) throws IOException
Constructs a new instance of thePomReaderclass and reads the Maven POM file from the specified file path. The POM is parsed and stored as a map structure for further analysis or processing.- Parameters:
filePath- the file path of the Maven POM file to be read and parsed- Throws:
IOException- if the POM file cannot be read or is not accessible
-
-
Method Detail
-
getAllElements
public List<PomElement> getAllElements()
Retrieves all elements from the parsed Maven POM file as a set of PomElement objects. Each element represents a specific path-value pair within the structure of the POM file.- Returns:
- a list of PomElement objects representing all paths and their corresponding values from the POM file. The set will be non-null and will include nested elements if present in the POM file.
-
-