com.codestreet.messageforge
Class RRequiredGrp

java.lang.Object
  extended bycom.codestreet.messageforge.RRequiredGrp
All Implemented Interfaces:
java.io.Serializable

public class RRequiredGrp
extends java.lang.Object
implements java.io.Serializable

This class represents a required field specification. A message can specify a set of fields that are required when one or more conditions are satisfied.
For example, a message can specify that fields X, Y, and Z must be set (even though one or more of them are optional) when the value of field A is 'Foo' and the value of field B is 'Goo'.

Author:
Jawaid Hakim.
See Also:
Serialized Form

Constructor Summary
RRequiredGrp(java.lang.String[] condFldNames, java.lang.String[] condFldValues, java.lang.String[] reqFields)
          Ctor.
 
Method Summary
 java.lang.String[] getConditionalFields()
          Get the names of the conditional fields.
 java.lang.String[] getConditionalValues()
          Get the conditional field values.
 java.lang.String[] getRequiredFields()
          Get the names of the required fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RRequiredGrp

public RRequiredGrp(java.lang.String[] condFldNames,
                    java.lang.String[] condFldValues,
                    java.lang.String[] reqFields)
Ctor.

Parameters:
condFldNames - Conditional field names.
condFldValues - Conditional values.
reqFields - Required field names.
See Also:
RMsg
Method Detail

getConditionalFields

public final java.lang.String[] getConditionalFields()
Get the names of the conditional fields.

Returns:
Names of the conditional fields.

getConditionalValues

public final java.lang.String[] getConditionalValues()
Get the conditional field values.

Returns:
Conditional field values.

getRequiredFields

public final java.lang.String[] getRequiredFields()
Get the names of the required fields.

Returns:
Names of the required fields.


Copyright © 2003-2006 CodeStreet. All Rights Reserved.