|
|||||||||
| Home >> All >> com >> gammastream >> [ validity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.gammastream.validity
Class GSVAttribute

java.lang.Objectcom.gammastream.validity.GSVAttribute
- public final class GSVAttribute
- extends java.lang.Object
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.
| Field Summary | |
private GSVEntity |
entity
|
private java.lang.String |
name
|
private NSMutableArray |
rules
|
| Constructor Summary | |
GSVAttribute(GSVEntity anEntity,
java.lang.String aName)
Creates a new GSVAttribute with the provided information. |
|
GSVAttribute(WOXMLDecoder decoder)
WOXMLCoding Impl |
|
| Method Summary | |
void |
addRule(GSVRule newRule)
Adds the rule to this attribute. |
java.lang.Class |
classForCoder()
WOXMLCoding Impl |
void |
encodeWithWOXMLCoder(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. |
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. |
private boolean |
validateAttributeForName(GSVEntity anEntity,
java.lang.String aName)
Private validation for checking for valid attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
entity
private GSVEntity entity
name
private java.lang.String name
rules
private NSMutableArray rules
| Constructor Detail |
GSVAttribute
public GSVAttribute(GSVEntity anEntity, java.lang.String aName) throws java.lang.IllegalArgumentException
- Creates a new GSVAttribute with the provided information.
GSVAttribute
public GSVAttribute(WOXMLDecoder decoder)
- WOXMLCoding Impl
| Method Detail |
validateAttributeForName
private boolean validateAttributeForName(GSVEntity anEntity, java.lang.String aName)
- Private validation for checking for valid attributes.
name
public java.lang.String name()
- Returns the name of this attribute.
setName
public void setName(java.lang.String newName)
- Sets the name of the attribute.
rules
public NSArray rules()
- The list of rules assigned to this attribute.
addRule
public void addRule(GSVRule newRule)
- Adds the rule to this attribute.
removeRule
public void removeRule(GSVRule oldRule)
- Remove the rule from this attribute.
ruleNamed
public GSVRule ruleNamed(java.lang.String name)
- Returns the rule with the provided name.
entity
public GSVEntity entity()
- Returns the parent entity for this attribute.
setEntity
public void setEntity(GSVEntity parentEntity)
- Sets the parent entity for this attribute to the provided entity.
encodeWithWOXMLCoder
public void encodeWithWOXMLCoder(WOXMLCoder coder)
- WOXMLCoding Impl
classForCoder
public java.lang.Class classForCoder()
- WOXMLCoding Impl
|
|||||||||
| Home >> All >> com >> gammastream >> [ validity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.gammastream.validity.GSVAttribute