org.jaffa.rules.metadata
Class RuleMetaData

java.lang.Object
  extended byorg.jaffa.rules.metadata.RuleMetaData

public class RuleMetaData
extends Object

An instance of this class represents a rule defined in the Rules config file.


Constructor Summary
RuleMetaData()
          Creates an instance.
 
Method Summary
 void addParameter(String name, String value)
          Add a parameter.
 void clearParameters()
          Clears the parameters.
 String getName()
          Getter for the property name.
 String getParameter(String name)
          Returns the value of the parameter.
 Map getParameters()
          Getter for the property parameters.
 void setName(String name)
          Setter for property name.
 String toString()
          Returns diagnostic information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleMetaData

public RuleMetaData()
Creates an instance.

Method Detail

getName

public String getName()
Getter for the property name.

Returns:
Value of property name.

setName

public void setName(String name)
Setter for property name.

Parameters:
name - New value of property name.

clearParameters

public void clearParameters()
Clears the parameters.


addParameter

public void addParameter(String name,
                         String value)
Add a parameter.

Parameters:
name - The name of the parameter.
value - The value of the parameter.

getParameters

public Map getParameters()
Getter for the property parameters.

Returns:
Value of property parameters.

getParameter

public String getParameter(String name)
Returns the value of the parameter.

Parameters:
name - The name of the parameter.
Returns:
Value of the parameter.

toString

public String toString()
Returns diagnostic information.

Returns:
a String containing diagnostic information.


Copyright © 2002-2004 JAFFA Project.