org.codehaus.mojo.versions.model
Class RuleSet

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

public class RuleSet
extends Object
implements Serializable

Describes a set of rules for how versions of artifacts should be handled.

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

Constructor Summary
RuleSet()
          Creates a new empty rule set.
 
Method Summary
 void addIgnoreVersion(IgnoreVersion ignoreVersion)
          Method addIgnoreVersion.
 void addRule(Rule rule)
          Method addRule.
 String getComparisonMethod()
          Get the comparison method to use when no rule matches.
 List<IgnoreVersion> getIgnoreVersions()
          Method getIgnoreVersions.
 String getModelEncoding()
          Get the modelEncoding field.
 List<Rule> getRules()
          Method getRules.
 void removeIgnoreVersion(IgnoreVersion ignoreVersion)
          Method removeIgnoreVersion.
 void removeRule(Rule rule)
          Method removeRule.
 void setComparisonMethod(String comparisonMethod)
          Set the comparison method to use when no rule matches.
 void setIgnoreVersions(List<IgnoreVersion> ignoreVersions)
          Set version patterns to ignore for all artifacts.
 void setModelEncoding(String modelEncoding)
          Set the modelEncoding field.
 void setRules(List<Rule> rules)
          Set the rules field.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()
Creates a new empty rule set.

Method Detail

addIgnoreVersion

public void addIgnoreVersion(IgnoreVersion ignoreVersion)
Method addIgnoreVersion.

Parameters:
ignoreVersion -

addRule

public void addRule(Rule rule)
Method addRule.

Parameters:
rule -

getComparisonMethod

public String getComparisonMethod()
Get the comparison method to use when no rule matches.

Returns:
String

getIgnoreVersions

public List<IgnoreVersion> getIgnoreVersions()
Method getIgnoreVersions.

Returns:
List

getModelEncoding

public String getModelEncoding()
Get the modelEncoding field.

Returns:
String

getRules

public List<Rule> getRules()
Method getRules.

Returns:
List

removeIgnoreVersion

public void removeIgnoreVersion(IgnoreVersion ignoreVersion)
Method removeIgnoreVersion.

Parameters:
ignoreVersion -

removeRule

public void removeRule(Rule rule)
Method removeRule.

Parameters:
rule -

setComparisonMethod

public void setComparisonMethod(String comparisonMethod)
Set the comparison method to use when no rule matches.

Parameters:
comparisonMethod -

setIgnoreVersions

public void setIgnoreVersions(List<IgnoreVersion> ignoreVersions)
Set version patterns to ignore for all artifacts.

Parameters:
ignoreVersions -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set the modelEncoding field.

Parameters:
modelEncoding -

setRules

public void setRules(List<Rule> rules)
Set the rules field.

Parameters:
rules -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Codehaus. All Rights Reserved.