org.xwiki.tool.enforcer
Class VersionCheck

java.lang.Object
  extended by org.xwiki.tool.enforcer.VersionCheck

public class VersionCheck
extends Object

A single check for verifying a dependency version. The Rule will check that any dependency starting with the specified group Id prefix will have a version that matches the specified version regex.

Since:
4.5RC1
Version:
$Id: e2afaa2a5034731e894b20e1cd6391ff7337a54e $

Field Summary
 String allowedVersionRegex
           
 
Constructor Summary
VersionCheck()
           
 
Method Summary
 String getAllowedVersionRegex()
          Note: This method is called automatically by the Maven Enforcer plugin framework.
 String getGroupIdPrefix()
          Note: This method is called automatically by the Maven Enforcer plugin framework.
 void setAllowedVersionRegex(String allowedVersionRegex)
           
 void setGroupIdPrefix(String groupIdPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowedVersionRegex

public String allowedVersionRegex
See Also:
getAllowedVersionRegex()
Constructor Detail

VersionCheck

public VersionCheck()
Method Detail

setGroupIdPrefix

public void setGroupIdPrefix(String groupIdPrefix)
Parameters:
groupIdPrefix - see getGroupIdPrefix()

getGroupIdPrefix

public String getGroupIdPrefix()
Note: This method is called automatically by the Maven Enforcer plugin framework.

Returns:
the group id prefix to check against (eg "org.xwiki.commons")

setAllowedVersionRegex

public void setAllowedVersionRegex(String allowedVersionRegex)
Parameters:
allowedVersionRegex - see getAllowedVersionRegex()

getAllowedVersionRegex

public String getAllowedVersionRegex()
Note: This method is called automatically by the Maven Enforcer plugin framework.

Returns:
the regex to match the version dependency against for matching group ids


Copyright © 2004–2014 XWiki. All rights reserved.