|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
com.gammastream.validity.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.gammastream.validity.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.gammastream.validity.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.gammastream.validity.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. |
| 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.gammastream.validity.WOXMLDecoder decoder)
decoder - WOXMLDecoderencodeWithWOXMLCoder(com.gammastream.validity.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.name()public com.gammastream.validity.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),
rules()public void removeRule(GSVRule oldRule)
oldRule - The rule to remove.addRule(com.gammastream.validity.GSVRule),
rules()public 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.entity()public void encodeWithWOXMLCoder(com.gammastream.validity.WOXMLCoder coder)
coder - WOXMLCoderGSVAttribute(com.gammastream.validity.GSVEntity, java.lang.String)public java.lang.Class classForCoder()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||