GSVEntity Class Reference

Inherits com::webobjects::appserver::xml::WOXMLCoding.

Collaboration diagram for GSVEntity:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addAttribute (GSVAttribute newAtt)
GSVAttribute attributeNamed (String name)
NSMutableArray attributes ()
Class classForCoder ()
void encodeWithWOXMLCoder (WOXMLCoder coder)
 GSVEntity (WOXMLDecoder decoder)
 GSVEntity (GSVModel model, String entityname) throws IllegalArgumentException
void init (GSVModel model, EOEntity eoentity)
GSVModel model ()
String name ()
void removeAttribute (GSVAttribute oldAtt)
void setModel (GSVModel newModel)

Private Member Functions

boolean validateEntityForName (GSVModel model, String name)

Private Attributes

NSMutableArray _attributes
GSVModel _model
String _name


Detailed Description

GSVEntity is the data structure associated with a paritcular table or EOEntity in an EOModel.

Author:
GammaStream Technologies, Inc.

Constructor & Destructor Documentation

GSVEntity ( GSVModel  model,
String  entityname 
) throws IllegalArgumentException

Creates a new GSVEntity.

Parameters:
model The GSVModel this GSVEntity belongs to.
entityname The name of the GSVEntity.
Exceptions:
java.lang.IllegalArgumentException EOEntity does not exsit in EOModel

GSVEntity ( WOXMLDecoder  decoder  ) 

WOXMLCoding Impl

Parameters:
decoder WOXMLDecoder
See also:
encodeWithWOXMLCoder


Member Function Documentation

void addAttribute ( GSVAttribute  newAtt  ) 

Adds the attribute to this entity.

Parameters:
newAtt The attribute to add.
See also:
attributes

removeAttribute

GSVAttribute attributeNamed ( String  name  ) 

Returns the attribute with the provided name.

Parameters:
name The name of the attribute you wish to fetch.
Returns:
Returns the attribute witht he provided name or null if one was not found.

NSMutableArray attributes (  ) 

Returns the attributes for this entity.

Returns:
Returns the GSVEntity attributes.
See also:
addAttribute

removeAttribute

Class classForCoder (  ) 

WOXMLCoding Impl

void encodeWithWOXMLCoder ( WOXMLCoder  coder  ) 

WOXMLCoding Impl

Parameters:
coder WOXMLCoder
See also:
GSVEntity

void init ( GSVModel  model,
EOEntity  eoentity 
)

GSVModel model (  ) 

Returns the GSVModel the GSVEntity belongs to.

Returns:
GSVModel the GSVEntity belongs to.
See also:
setModel

String name (  ) 

Returns the name of the GSVEntity.

Returns:
Returns the name of the GSVEntity.

void removeAttribute ( GSVAttribute  oldAtt  ) 

Removes the attribute from this entity.

Parameters:
oldAtt The attribute to remove.
See also:
attributes

addAttribute

void setModel ( GSVModel  newModel  ) 

Sets the GSVModel the GSVEntity belongs to.

Parameters:
newModel GSVModel for the GSVEntity
See also:
model

boolean validateEntityForName ( GSVModel  model,
String  name 
) [private]

Private


Member Data Documentation

GSVModel _model [private]

String _name [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:30 2012 for Project Wonder by  doxygen 1.5.8