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 addRule(Rule rule)
          Method addRule.
 String getComparisonMethod()
          Get the comparison method to use when no rule matches.
 String getModelEncoding()
          Get the modelEncoding field.
 List getRules()
          Method getRules.
 void removeRule(Rule rule)
          Method removeRule.
 void setComparisonMethod(String comparisonMethod)
          Set the comparison method to use when no rule matches.
 void setModelEncoding(String modelEncoding)
          Set the modelEncoding field.
 void setRules(List 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

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

getModelEncoding

public String getModelEncoding()
Get the modelEncoding field.

Returns:
String

getRules

public List getRules()
Method getRules.

Returns:
List

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 -

setModelEncoding

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

Parameters:
modelEncoding -

setRules

public void setRules(List rules)
Set the rules field.

Parameters:
rules -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Codehaus. All Rights Reserved.