Class MavenMatcher

  • All Implemented Interfaces:
    VersionMatcher

    public class MavenMatcher
    extends Object
    implements VersionMatcher
    The MavenMatcher will parse and match a single @Mave definition
    Author:
    alpapad@gmail.com
    • Method Detail

      • getIncludes

        public VersionRange getIncludes()
        Gets the included versions range.
        Returns:
        the included versions range
      • getExcludes

        public VersionRange getExcludes()
        Gets the excluded versions range
        Returns:
        the excluded versions range
      • getArtifactId

        public String getArtifactId()
        Gets the artifact id.
        Returns:
        the artifact id
      • getGroupId

        public String getGroupId()
        Gets the group id.
        Returns:
        the group id
      • matches

        public VersionMatchResult matches​(DeploymentInfo info)
        Description copied from interface: VersionMatcher
        Return a version match result. When an implementation is unable to decide then aVersionMatchResult.SKIPPED should be returned so the next one will have a chance to decide.
        Specified by:
        matches in interface VersionMatcher
        Parameters:
        info - the info
        Returns:
        the version match result
      • isApply

        public boolean isApply()
        Description copied from interface: VersionMatcher
        Return true if this matcher should be applied!.
        Specified by:
        isApply in interface VersionMatcher
        Returns:
        true, if is apply