pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.cms
Class CMSFormProcessorConfiguration.Condition

java.lang.Object
  extended by org.torweg.pulse.component.cms.CMSFormProcessorConfiguration.Condition
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CMSFormProcessorConfiguration

public static final class CMSFormProcessorConfiguration.Condition
extends java.lang.Object
implements java.io.Serializable

A check-Condition.

Version:
$Revision: 1914 $
Author:
Daniel Dietz
See Also:
Serialized Form

Nested Class Summary
static class CMSFormProcessorConfiguration.Condition.CheckType
          The known CheckTypes for the Condition.
 
Constructor Summary
protected CMSFormProcessorConfiguration.Condition()
          Deprecated. 
 
Method Summary
 boolean appliesFor(java.lang.String fieldName)
          Checks if the field of the Condition matches the given field name.
 boolean isFullFilled(java.lang.String fieldName, Command command, CMSFormProcessorConfiguration.Condition.CheckType ctype)
          The the Condition for fulfillment.
 void setRequired(boolean isRequired)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSFormProcessorConfiguration.Condition

@Deprecated
protected CMSFormProcessorConfiguration.Condition()
Deprecated. 

Default constructor.

Method Detail

isFullFilled

public boolean isFullFilled(java.lang.String fieldName, Command command, CMSFormProcessorConfiguration.Condition.CheckType ctype)
The the Condition for fulfillment.

Parameters:
fieldName - the name of the field
command - the current Command
ctype - the CheckType
Returns:
true if the Condition is fulfilled, false otherwise

appliesFor

public boolean appliesFor(java.lang.String fieldName)
Checks if the field of the Condition matches the given field name.

Parameters:
fieldName - the namea of the field
Returns:
true if the field names are equal, false otherwise

setRequired

public void setRequired(boolean isRequired)
Parameters:
isRequired - the required to set