
Public Member Functions | |
| Class | classForCoder () |
| String | cName () |
| boolean | continueIfNULL () |
| String | documentation () |
| void | encodeWithWOXMLCoder (WOXMLCoder coder) |
| String | errorMessage () |
| boolean | failIfNULL () |
| GSVRule (WOXMLDecoder decoder) | |
| GSVRule (String rName, String cName2, String mName2, String eMessage, String doc) throws IllegalArgumentException | |
| String | mName () |
| boolean | negate () |
| boolean | onDelete () |
| boolean | onInsert () |
| boolean | onSave () |
| boolean | onUpdate () |
| NSMutableDictionary | parameters () |
| String | ruleName () |
| void | setCName (String newClass) throws IllegalArgumentException |
| void | setContinueIfNULL (boolean z) |
| void | setDocumentation (String doc) |
| void | setErrorMessage (String newMessage) |
| void | setFailIfNULL (boolean z) |
| void | setMName (String newMethod) throws IllegalArgumentException |
| void | setNegate (boolean z) |
| void | setOnDelete (boolean z) |
| void | setOnInsert (boolean z) |
| void | setOnSave (boolean z) |
| void | setOnUpdate (boolean z) |
| void | setParameters (NSMutableDictionary newParameters) |
| void | setRuleName (String newRule) throws IllegalArgumentException |
| void | setStopIfFails (boolean z) |
| boolean | stopIfFails () |
Private Member Functions | |
| boolean | validateClassName (String cName) |
| boolean | validateMethodName (String mName) |
Private Attributes | |
| String | cName = null |
| boolean | continueIfNULL = false |
| String | documentation = null |
| String | errorMessage = null |
| boolean | failIfNULL = true |
| String | mName = null |
| boolean | negate = false |
| boolean | onDelete = true |
| boolean | onInsert = true |
| boolean | onSave = true |
| boolean | onUpdate = true |
| NSMutableDictionary | parameters = null |
| String | ruleName = null |
| boolean | stopIfFails = false |
| GSVRule | ( | String | rName, | |
| String | cName2, | |||
| String | mName2, | |||
| String | eMessage, | |||
| String | doc | |||
| ) | throws IllegalArgumentException |
Creates a new GSVRule with the provided parameters.
| rName | The name you wish to give the rule. | |
| cName2 | The fully qualified class name in which the rule's method is located. | |
| mName2 | The name of the method to be executed. | |
| eMessage | An error message to provide the user in the event the rule fails. | |
| doc | Optional documentation as to the rules function. |
| java.lang.IllegalArgumentException | Thrown should the class name or method name appear to be invalid. |
| GSVRule | ( | WOXMLDecoder | decoder | ) |
| Class classForCoder | ( | ) |
WOXMLCoding Impl
Returns the fully qualified class name of the class in which the method used in this rule is located. :-)
| boolean continueIfNULL | ( | ) |
| String documentation | ( | ) |
| void encodeWithWOXMLCoder | ( | WOXMLCoder | coder | ) |
| String errorMessage | ( | ) |
Returns the error message that should be displayed to the user when this rule fails to be validated.
| boolean failIfNULL | ( | ) |
| boolean negate | ( | ) |
Should the outcome of this rule be negated (reversed). This might be useful if you have a method which returns true if you have a String which is empty or null. Your rule might indicate that you want this attribute to be required. If the method returns true if it is, you will want to reverse the outcome. Did that make any sense?
| boolean onDelete | ( | ) |
| boolean onInsert | ( | ) |
| boolean onSave | ( | ) |
| boolean onUpdate | ( | ) |
Returns a dictionary of key-value pairs used for providing parameters to the validation rule's method. This parameter dictionary is passed to the method defined by mName().
| void setCName | ( | String | newClass | ) | throws IllegalArgumentException |
Set the class name for this rule.
| newClass | fully qualified name of the class. |
| java.lang.IllegalArgumentException | Thrown should the class name appear to be invalid. Currently the validation logic here always returns true. |
| void setContinueIfNULL | ( | boolean | z | ) |
| void setDocumentation | ( | String | doc | ) |
Set the documentation to the provided String.
| doc | the documentation. |
| void setErrorMessage | ( | String | newMessage | ) |
| void setFailIfNULL | ( | boolean | z | ) |
| void setMName | ( | String | newMethod | ) | throws IllegalArgumentException |
Set the method name for this rule.
| newMethod | name for the method. |
| java.lang.IllegalArgumentException | Thrown should the method name appear to be invalid. Currently the validation logic here always returns true. |
| void setNegate | ( | boolean | z | ) |
Assigns a key-value pair dictionary to this rule.
| z | A dictionary of key-value pairs. |
| void setOnDelete | ( | boolean | z | ) |
| void setOnInsert | ( | boolean | z | ) |
| void setOnSave | ( | boolean | z | ) |
| void setOnUpdate | ( | boolean | z | ) |
| void setParameters | ( | NSMutableDictionary | newParameters | ) |
Assigns a key-value pair dictionary to this rule.
| newParameters | A dictionary of key-value pairs. |
| void setRuleName | ( | String | newRule | ) | throws IllegalArgumentException |
| void setStopIfFails | ( | boolean | z | ) |
| boolean stopIfFails | ( | ) |
| boolean validateClassName | ( | String | cName | ) | [private] |
Private Determines whether the provided class name appears to be valid.
| boolean validateMethodName | ( | String | mName | ) | [private] |
Private Determines whether the provided method name appears to be valid.
boolean continueIfNULL = false [private] |
String documentation = null [private] |
String errorMessage = null [private] |
boolean failIfNULL = true [private] |
boolean negate = false [private] |
boolean onDelete = true [private] |
boolean onInsert = true [private] |
boolean onSave = true [private] |
boolean onUpdate = true [private] |
NSMutableDictionary parameters = null [private] |
boolean stopIfFails = false [private] |
1.5.8