Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.javahispano.canyamo.util.html.form
Class FormRule  view FormRule download FormRule.java

java.lang.Object
  extended byorg.javahispano.canyamo.util.html.form.FormRule

class FormRule
extends java.lang.Object

A rule for a HTML form

Version:
1.0

Field Summary
(package private) static int EQUALS
          Description of the Field
(package private) static int EQUALS_FIELD
          Description of the Field
protected  java.lang.String field
          Description of the Field
(package private) static int NOT_EQUALS
          Description of the Field
(package private) static int NOT_EQUALS_FIELD
          Description of the Field
(package private) static int NOT_NULL
          Description of the Field
(package private) static int SET
          Description of the Field
protected  java.lang.String sType
          Description of the Field
protected  int type
          Description of the Field
protected  java.lang.String value
          Description of the Field
 
Constructor Summary
(package private) FormRule(java.lang.String field, java.lang.String sType, java.lang.String value)
          Constructor for the FormRule object
 
Method Summary
(package private)  java.lang.String getField()
          Gets the field attribute of the FormRule object
private  java.lang.Object getSettedValue(org.javahispano.canyamo.core.WorkData data)
          If fields hast "SET" as rule, this method calculates the value
protected  int getType(java.lang.String sType)
          Gets the type attribute of the FormRule object
(package private)  void test(java.lang.String fieldType, org.javahispano.canyamo.core.WorkData data)
          A unit test for JUnit
(package private)  void testTypes(java.lang.String type, java.lang.String value1, java.lang.String value2)
          Test if the given values are of the given type
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_NULL

static final int NOT_NULL
Description of the Field

See Also:
Constant Field Values

EQUALS

static final int EQUALS
Description of the Field

See Also:
Constant Field Values

NOT_EQUALS

static final int NOT_EQUALS
Description of the Field

See Also:
Constant Field Values

EQUALS_FIELD

static final int EQUALS_FIELD
Description of the Field

See Also:
Constant Field Values

NOT_EQUALS_FIELD

static final int NOT_EQUALS_FIELD
Description of the Field

See Also:
Constant Field Values

SET

static final int SET
Description of the Field

See Also:
Constant Field Values

field

protected java.lang.String field
Description of the Field


type

protected int type
Description of the Field


sType

protected java.lang.String sType
Description of the Field


value

protected java.lang.String value
Description of the Field

Constructor Detail

FormRule

FormRule(java.lang.String field,
         java.lang.String sType,
         java.lang.String value)
Constructor for the FormRule object

Method Detail

toString

public java.lang.String toString()
Description of the Method


getType

protected int getType(java.lang.String sType)
Gets the type attribute of the FormRule object


getField

java.lang.String getField()
Gets the field attribute of the FormRule object


test

void test(java.lang.String fieldType,
          org.javahispano.canyamo.core.WorkData data)
    throws FormException
A unit test for JUnit


testTypes

void testTypes(java.lang.String type,
               java.lang.String value1,
               java.lang.String value2)
         throws FormException
Test if the given values are of the given type


getSettedValue

private java.lang.Object getSettedValue(org.javahispano.canyamo.core.WorkData data)
                                 throws FormException
If fields hast "SET" as rule, this method calculates the value