tico.rules
Class TRule

java.lang.Object
  extended by tico.rules.TRule

public class TRule
extends java.lang.Object

The TRule is an object that stores all the information of a rule in the XML file.

Version:
1.0 Oct 12, 2007
Author:
Beatriz Mateo

Constructor Summary
TRule()
          Creates a new empty TRule with no initial attributes.
TRule(java.lang.String name, java.lang.String nameXML)
          Creates a new empty TRule with the specified initial name and nameXML.
TRule(java.lang.String name, java.lang.String nameXML, TAttribute attribute, TAttribute attribute2, TAttribute parameter, java.lang.String function, java.lang.String functionXML, java.lang.String message, java.lang.String messageXML)
          Creates a new empty TRule with the specified initial name, nameXML, attribute, attribute2, parameter, function, functionXML and messageXML.
 
Method Summary
 TAttribute getAttribute()
          Returns the rule attribute.
 TAttribute getAttribute2()
          Returns the rule attribute2.
 java.lang.String getFunction()
          Returns the rule function.
 java.lang.String getFunctionXML()
          Returns the rule functionXML.
 java.lang.String getMessage()
          Returns the rule message.
 java.lang.String getMessageXML()
          Returns the rule messageXML.
 java.lang.String getName()
          Returns the rule name.
 java.lang.String getNameXML()
          Returns the rule nameXML.
 TAttribute getParameter()
          Returns the rule paramter.
 java.lang.String getType()
          Returns the rule type.
 void setAttribute(TAttribute attribute)
          Sets the rule attribute.
 void setAttribute2(TAttribute attribute2)
          Sets the rule attribute2.
 void setFunction(java.lang.String function)
          Sets the rule function.
 void setFunctionXML(java.lang.String functionXML)
          Sets the rule functionXML.
 void setMessage(java.lang.String message)
          Sets the rule message.
 void setMessageXML(java.lang.String messageXML)
          Sets the rule messageXML.
 void setName(java.lang.String name)
          Sets the rule name.
 void setNameXML(java.lang.String nameXML)
          Sets the rule nameXML.
 void setParameter(TAttribute parameter)
          Sets the rule parameter.
 void setType(java.lang.String type)
          Sets the rule type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRule

public TRule()
Creates a new empty TRule with no initial attributes.


TRule

public TRule(java.lang.String name,
             java.lang.String nameXML)
Creates a new empty TRule with the specified initial name and nameXML.

Parameters:
name - The specified initial name
nameXML - The specified initial nameXML

TRule

public TRule(java.lang.String name,
             java.lang.String nameXML,
             TAttribute attribute,
             TAttribute attribute2,
             TAttribute parameter,
             java.lang.String function,
             java.lang.String functionXML,
             java.lang.String message,
             java.lang.String messageXML)
Creates a new empty TRule with the specified initial name, nameXML, attribute, attribute2, parameter, function, functionXML and messageXML.

Parameters:
name - The specified initial name
nameXML - The specified initial nameXML
attribute - The specified initial attribute
attribute2 - The specified initial attribute2
parameter - The specified initial parameter
function - The specified initial function
functionXML - The specified initial functionXML
message - The specified initial message
messageXML - The specified initial messageXML
Method Detail

getName

public java.lang.String getName()
Returns the rule name.

Returns:
The rule name

setName

public void setName(java.lang.String name)
Sets the rule name.

Parameters:
name - The rule name to set

getNameXML

public java.lang.String getNameXML()
Returns the rule nameXML.

Returns:
The rule nameXML

setNameXML

public void setNameXML(java.lang.String nameXML)
Sets the rule nameXML.

Parameters:
nameXML - The rule nameXML to set

getAttribute

public TAttribute getAttribute()
Returns the rule attribute.

Returns:
The rule attribute

setAttribute

public void setAttribute(TAttribute attribute)
Sets the rule attribute.

Parameters:
attribute - The rule attribute to set

getAttribute2

public TAttribute getAttribute2()
Returns the rule attribute2.

Returns:
The rule attribute2

setAttribute2

public void setAttribute2(TAttribute attribute2)
Sets the rule attribute2.

Parameters:
attribute2 - The rule attribute2 to set

getParameter

public TAttribute getParameter()
Returns the rule paramter.

Returns:
The rule parameter

setParameter

public void setParameter(TAttribute parameter)
Sets the rule parameter.

Parameters:
parameter - The rule parameter to set

getFunction

public java.lang.String getFunction()
Returns the rule function.

Returns:
The rule function

setFunction

public void setFunction(java.lang.String function)
Sets the rule function.

Parameters:
function - The rule function to set

getFunctionXML

public java.lang.String getFunctionXML()
Returns the rule functionXML.

Returns:
The rule functionXML

setFunctionXML

public void setFunctionXML(java.lang.String functionXML)
Sets the rule functionXML.

Parameters:
functionXML - The rule functionXML to set

getMessage

public java.lang.String getMessage()
Returns the rule message.

Returns:
The rule message

setMessage

public void setMessage(java.lang.String message)
Sets the rule message.

Parameters:
message - The rule message to set

getMessageXML

public java.lang.String getMessageXML()
Returns the rule messageXML.

Returns:
The rule messageXML

setMessageXML

public void setMessageXML(java.lang.String messageXML)
Sets the rule messageXML.

Parameters:
messageXML - The rule messageXML to set

getType

public java.lang.String getType()
Returns the rule type.

Returns:
The rule type

setType

public void setType(java.lang.String type)
Sets the rule type.

Parameters:
type - The rule type to set