org.codehaus.mojo.versions.model
Class Rule

java.lang.Object
  extended by org.codehaus.mojo.versions.model.Rule
All Implemented Interfaces:
Serializable

public class Rule
extends Object
implements Serializable

Describes a rule for how versions of artifacts should be handled.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Rule()
          Creates a new empty rule.
 
Method Summary
 String getArtifactId()
          Get the artifactId to which this rule applies.
 String getComparisonMethod()
          Get the comparison method that this rule specifies.
 String getGroupId()
          Get the for groupId to which this rule applies.
 void setArtifactId(String artifactId)
          Set the artifactId to which this rule applies.
 void setComparisonMethod(String comparisonMethod)
          Set the comparison method that this rule specifies.
 void setGroupId(String groupId)
          Set the for groupId to which this rule applies.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule()
Creates a new empty rule.

Method Detail

getArtifactId

public String getArtifactId()
Get the artifactId to which this rule applies. Wildcards with ? and * are valid. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.

Returns:
String

getComparisonMethod

public String getComparisonMethod()
Get the comparison method that this rule specifies.

Returns:
String

getGroupId

public String getGroupId()
Get the for groupId to which this rule applies. Wildcards with ? and * are valid. A rule applies to all child groupIds unless overridden by a subsequent rule. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.

Returns:
String

setArtifactId

public void setArtifactId(String artifactId)
Set the artifactId to which this rule applies. Wildcards with ? and * are valid. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.

Parameters:
artifactId -

setComparisonMethod

public void setComparisonMethod(String comparisonMethod)
Set the comparison method that this rule specifies.

Parameters:
comparisonMethod -

setGroupId

public void setGroupId(String groupId)
Set the for groupId to which this rule applies. Wildcards with ? and * are valid. A rule applies to all child groupIds unless overridden by a subsequent rule. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.

Parameters:
groupId -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Codehaus. All Rights Reserved.