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

java.lang.Object
  |
  +--org.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$
Author:
Serialized Form

Field Summary
private  java.lang.String message
           
private  java.lang.String name
           
private  XmlField parent
           
private  java.lang.String value
           
 
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, registerNatives, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value

message

private java.lang.String message

parent

private XmlField parent
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.
Overrides:
toString in class java.lang.Object


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.