|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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,
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. |
Class |
classForCoder()
WOXMLCoding Impl |
void |
encodeWithWOXMLCoder(WOXMLCoder coder)
WOXMLCoding Impl |
GSVEntity |
entity()
Returns the parent entity for this attribute. |
String |
name()
Returns the name of this attribute. |
void |
removeRule(GSVRule oldRule)
Remove the rule from this attribute. |
GSVRule |
ruleNamed(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(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, String aName) throws IllegalArgumentException
anEntity
- The entity this attribute belongs to.aName
- The name of this attribute.
IllegalArgumentException
- Thrown if the selected EOModel does not contain an attribute of the specified name in the provided entity.public GSVAttribute(WOXMLDecoder decoder)
decoder
- WOXMLDecoderencodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder)
Method Detail |
public String name()
setName(java.lang.String)
public void setName(String newName)
newName
- The new name for the attribute.name()
public 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(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(WOXMLCoder coder)
encodeWithWOXMLCoder
in interface WOXMLCoding
coder
- WOXMLCoderGSVAttribute(com.webobjects.appserver.xml.WOXMLDecoder)
public Class classForCoder()
classForCoder
in interface WOXMLCoding
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |