Package nl.zerofiftyit.mdepunit.api
Interface DefaultAnalyzer
-
- All Known Implementing Classes:
DefaultAnalyzerImpl,ModuleAnalyzer,PomAnalyzer
public interface DefaultAnalyzer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Statement<?>containValue(String value)Checks whether the specified value is present within the given node of the analyzed POM elements.Statement<?>equalsValue(String value)Checks whether the specified value exactly matches the value present in the corresponding node of the analyzed POM elements.Statement<?>haveTag(String tagName)Checks if the specified tag name exists within the corresponding node of the analyzed POM elements.
-
-
-
Method Detail
-
haveTag
Statement<?> haveTag(String tagName)
Checks if the specified tag name exists within the corresponding node of the analyzed POM elements. This method searches for a tag in the structure of the POM elements and determines whether it matches the provided tag name.- Parameters:
tagName- The name of the tag to search for, such as "version" or "artifactId".- Returns:
- a
Statement<?>instance enabling further validation or operations based on the result of this check.
-
containValue
Statement<?> containValue(String value)
Checks whether the specified value is present within the given node of the analyzed POM elements. Searches for the specified value in all elements under the given node of the structure.- Parameters:
value- The value to search for within the analyzed node.- Returns:
- a
Statement<?>instance allowing for further validations or operations based on the result of this check.
-
equalsValue
Statement<?> equalsValue(String value)
Checks whether the specified value exactly matches the value present in the corresponding node of the analyzed POM elements. This method performs a match comparison between the given value and the element's value.- Parameters:
value- The value to be matched against the value of the analyzed node.- Returns:
- a
Statement<?>instance allowing for further validations or operations based on the result of this check.
-
-