|
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.GSVAttribute
public final class GSVAttribute
This structure maps validation rules to a specific attribute of an entity. For instance, we might wish to map a 'Provided text is > 5 characters' to the 'username' attribute of the 'user' entity.
| Constructor Summary | |
|---|---|
GSVAttribute(GSVEntity anEntity,
java.lang.String aName)
Creates a new GSVAttribute with the provided information. |
|
GSVAttribute(com.webobjects.appserver.xml.WOXMLDecoder decoder)
WOXMLCoding Impl |
|
| Method Summary | |
|---|---|
void |
addRule(GSVRule newRule)
Adds the rule to this attribute. |
java.lang.Class |
classForCoder()
WOXMLCoding Impl |
void |
encodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder coder)
WOXMLCoding Impl |
GSVEntity |
entity()
Returns the parent entity for this attribute. |
java.lang.String |
name()
Returns the name of this attribute. |
void |
removeRule(GSVRule oldRule)
Remove the rule from this attribute. |
GSVRule |
ruleNamed(java.lang.String name)
Returns the rule with the provided name. |
com.webobjects.foundation.NSArray |
rules()
The list of rules assigned to this attribute. |
void |
setEntity(GSVEntity parentEntity)
Sets the parent entity for this attribute to the provided entity. |
void |
setName(java.lang.String newName)
Sets the name of the attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSVAttribute(GSVEntity anEntity,
java.lang.String aName)
throws java.lang.IllegalArgumentException
anEntity - The entity this attribute belongs to.aName - The name of this attribute.
java.lang.IllegalArgumentException - Thrown if the selected EOModel does not contain an attribute of the specified name in the provided entity.public GSVAttribute(com.webobjects.appserver.xml.WOXMLDecoder decoder)
decoder - WOXMLDecoderencodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder)| Method Detail |
|---|
public java.lang.String name()
setName(java.lang.String)public void setName(java.lang.String newName)
newName - The new name for the attribute.namepublic com.webobjects.foundation.NSArray rules()
removeRule(com.gammastream.validity.GSVRule),
addRule(com.gammastream.validity.GSVRule)public void addRule(GSVRule newRule)
newRule - The rule to add.removeRule(com.gammastream.validity.GSVRule),
rulespublic void removeRule(GSVRule oldRule)
oldRule - The rule to remove.addRule(com.gammastream.validity.GSVRule),
rulespublic GSVRule ruleNamed(java.lang.String name)
name - The name of the rule you wish to fetch.
public GSVEntity entity()
setEntity(com.gammastream.validity.GSVEntity)public void setEntity(GSVEntity parentEntity)
parentEntity - The parent entity for this attribute.entitypublic void encodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder coder)
encodeWithWOXMLCoder in interface com.webobjects.appserver.xml.WOXMLCodingcoder - WOXMLCoderGSVAttribute(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 | |||||||||||