org.apache.turbine.services.intake.xmlmodel
Class Rule

java.lang.Object
  extended byorg.apache.turbine.services.intake.xmlmodel.Rule
All Implemented Interfaces:
Constraint, java.io.Serializable

public class Rule
extends java.lang.Object
implements Constraint, java.io.Serializable

A Class for holding data about a constraint on a property.

Version:
$Id: Rule.java 278822 2005-09-05 19:53:05Z henning $
Author:
John McNally
See Also:
Serialized Form

Constructor Summary
Rule()
          Default Constructor
 
Method Summary
 XmlField getField()
          Get the parent Field of the rule
 java.lang.String getMessage()
          Get the error message
 java.lang.String getName()
          Get the name of the parameter
 java.lang.String getValue()
          Get the value of the parameter
 void loadFromXML(org.xml.sax.Attributes attrib)
          Imports a column from an XML specification
 void setField(XmlField parent)
          Set the parent Field of the rule
 void setMessage(java.lang.String newMessage)
          Set the error message
 void setName(java.lang.String newName)
          Set the name of the parameter
 void setValue(java.lang.String newValue)
          Set the value of the parameter
 java.lang.String toString()
          String representation of the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule()
Default Constructor

Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.Attributes attrib)
Imports a column from an XML specification


setName

public void setName(java.lang.String newName)
Set the name of the parameter


getName

public java.lang.String getName()
Get the name of the parameter

Specified by:
getName in interface Constraint

setValue

public void setValue(java.lang.String newValue)
Set the value of the parameter


getValue

public java.lang.String getValue()
Get the value of the parameter

Specified by:
getValue in interface Constraint

setMessage

public void setMessage(java.lang.String newMessage)
Set the error message


getMessage

public java.lang.String getMessage()
Get the error message

Specified by:
getMessage in interface Constraint

setField

public void setField(XmlField parent)
Set the parent Field of the rule


getField

public XmlField getField()
Get the parent Field of the rule


toString

public java.lang.String toString()
String representation of the column. This is an xml representation.



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.