|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gammastream.validity.GSVRule
public final class GSVRule
This structure stores the various information which defines each rule. Information like the name, where the rule is located, error messages, when to execute, etc.
Constructor Summary | |
---|---|
GSVRule(java.lang.String rName,
java.lang.String cName2,
java.lang.String mName2,
java.lang.String eMessage,
java.lang.String doc)
Creates a new GSVRule with the provided parameters. |
|
GSVRule(com.webobjects.appserver.xml.WOXMLDecoder decoder)
WOXMLCoding Impl |
Method Summary | |
---|---|
java.lang.Class |
classForCoder()
WOXMLCoding Impl |
java.lang.String |
cName()
Returns the fully qualified class name of the class in which the method used in this rule is located. |
boolean |
continueIfNULL()
|
java.lang.String |
documentation()
Returns the documentation for this rule. |
void |
encodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder coder)
WOXMLCoding Impl |
java.lang.String |
errorMessage()
Returns the error message that should be displayed to the user when this rule fails to be validated. |
boolean |
failIfNULL()
|
java.lang.String |
mName()
Returns the method name used for this rule. |
boolean |
negate()
Should the outcome of this rule be negated (reversed). |
boolean |
onDelete()
|
boolean |
onInsert()
|
boolean |
onSave()
|
boolean |
onUpdate()
|
com.webobjects.foundation.NSMutableDictionary |
parameters()
Returns a dictionary of key-value pairs used for providing parameters to the validation rule's method. |
java.lang.String |
ruleName()
Returns the name of this rule. |
void |
setCName(java.lang.String newClass)
Set the class name for this rule. |
void |
setContinueIfNULL(boolean z)
|
void |
setDocumentation(java.lang.String doc)
Set the documentation to the provided String . |
void |
setErrorMessage(java.lang.String newMessage)
Set the error message. |
void |
setFailIfNULL(boolean z)
|
void |
setMName(java.lang.String newMethod)
Set the method name for this rule. |
void |
setNegate(boolean z)
Assigns a key-value pair dictionary to this rule. |
void |
setOnDelete(boolean z)
|
void |
setOnInsert(boolean z)
|
void |
setOnSave(boolean z)
|
void |
setOnUpdate(boolean z)
|
void |
setParameters(com.webobjects.foundation.NSMutableDictionary newParameters)
Assigns a key-value pair dictionary to this rule. |
void |
setRuleName(java.lang.String newRule)
Sets the name of this rule. |
void |
setStopIfFails(boolean z)
|
boolean |
stopIfFails()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GSVRule(java.lang.String rName, java.lang.String cName2, java.lang.String mName2, java.lang.String eMessage, java.lang.String doc) throws java.lang.IllegalArgumentException
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.public GSVRule(com.webobjects.appserver.xml.WOXMLDecoder decoder)
decoder
- WOXMLDecoderencodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder)
Method Detail |
---|
public java.lang.String ruleName()
setRuleName(java.lang.String)
public void setRuleName(java.lang.String newRule) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
ruleName
public java.lang.String cName()
setCName(java.lang.String)
public void setCName(java.lang.String newClass) throws java.lang.IllegalArgumentException
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.cName
public java.lang.String mName()
setMName(java.lang.String)
public void setMName(java.lang.String newMethod) throws java.lang.IllegalArgumentException
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.mName
public java.lang.String errorMessage()
setErrorMessage(java.lang.String)
public void setErrorMessage(java.lang.String newMessage)
newMessage
- the error messageerrorMessage
public java.lang.String documentation()
setDocumentation(java.lang.String)
public void setDocumentation(java.lang.String doc)
String
.
doc
- the documentation.documentation
public com.webobjects.foundation.NSMutableDictionary parameters()
mName()
.
setParameters(com.webobjects.foundation.NSMutableDictionary)
public void setParameters(com.webobjects.foundation.NSMutableDictionary newParameters)
newParameters
- A dictionary of key-value pairs.parameters
public boolean negate()
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?
setNegate(boolean)
public void setNegate(boolean z)
z
- A dictionary of key-value pairs.parameters
public boolean failIfNULL()
public void setFailIfNULL(boolean z)
public boolean continueIfNULL()
public void setContinueIfNULL(boolean z)
public boolean stopIfFails()
public void setStopIfFails(boolean z)
public boolean onSave()
public void setOnSave(boolean z)
public boolean onUpdate()
public void setOnUpdate(boolean z)
public boolean onInsert()
public void setOnInsert(boolean z)
public boolean onDelete()
public void setOnDelete(boolean z)
public void encodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder coder)
encodeWithWOXMLCoder
in interface com.webobjects.appserver.xml.WOXMLCoding
coder
- WOXMLCoderGSVRule(com.webobjects.appserver.xml.WOXMLDecoder)
public java.lang.Class classForCoder()
classForCoder
in interface com.webobjects.appserver.xml.WOXMLCoding
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |