Project Wonder 2.0

com.gammastream.validity
Class GSVEntity

java.lang.Object
  extended bycom.gammastream.validity.GSVEntity
All Implemented Interfaces:
WOXMLCoding

public final class GSVEntity
extends Object
implements WOXMLCoding

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

Author:
GammaStream Technologies, Inc.

Constructor Summary
GSVEntity(GSVModel model, String entityname)
          Creates a new GSVEntity.
GSVEntity(WOXMLDecoder decoder)
          WOXMLCoding Impl
 
Method Summary
 void addAttribute(GSVAttribute newAtt)
          Adds the attribute to this entity.
 GSVAttribute attributeNamed(String name)
          Returns the attribute with the provided name.
 NSMutableArray attributes()
          Returns the attributes for this entity.
 Class classForCoder()
          WOXMLCoding Impl
 void encodeWithWOXMLCoder(WOXMLCoder coder)
          WOXMLCoding Impl
 void init(GSVModel model, EOEntity eoentity)
           
 GSVModel model()
          Returns the GSVModel the GSVEntity belongs to.
 String name()
          Returns the name of the GSVEntity.
 void removeAttribute(GSVAttribute oldAtt)
          Removes the attribute from this entity.
 void setModel(GSVModel newModel)
          Sets the GSVModel the GSVEntity belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSVEntity

public 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.
Throws:
IllegalArgumentException - EOEntity does not exsit in EOModel

GSVEntity

public GSVEntity(WOXMLDecoder decoder)
WOXMLCoding Impl

Parameters:
decoder - WOXMLDecoder
See Also:
encodeWithWOXMLCoder(com.webobjects.appserver.xml.WOXMLCoder)
Method Detail

model

public GSVModel model()
Returns the GSVModel the GSVEntity belongs to.

Returns:
GSVModel the GSVEntity belongs to.
See Also:
setModel(com.gammastream.validity.GSVModel)

setModel

public void setModel(GSVModel newModel)
Sets the GSVModel the GSVEntity belongs to.

Parameters:
newModel - GSVModel for the GSVEntity
Returns:
GSVModel the GSVEntity belongs to.
See Also:
model()

name

public String name()
Returns the name of the GSVEntity.

Returns:
Returns the name of the GSVEntity.

attributes

public NSMutableArray attributes()
Returns the attributes for this entity.

Returns:
Returns the GSVEntity attributes.
See Also:
addAttribute(com.gammastream.validity.GSVAttribute), removeAttribute(com.gammastream.validity.GSVAttribute)

addAttribute

public void addAttribute(GSVAttribute newAtt)
Adds the attribute to this entity.

Parameters:
newAtt - The attribute to add.
See Also:
attributes(), removeAttribute(com.gammastream.validity.GSVAttribute)

removeAttribute

public void removeAttribute(GSVAttribute oldAtt)
Removes the attribute from this entity.

Parameters:
oldAtt - The attribute to remove.
See Also:
attributes(), addAttribute(com.gammastream.validity.GSVAttribute)

attributeNamed

public 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.

encodeWithWOXMLCoder

public void encodeWithWOXMLCoder(WOXMLCoder coder)
WOXMLCoding Impl

Specified by:
encodeWithWOXMLCoder in interface WOXMLCoding
Parameters:
coder - WOXMLCoder
See Also:
GSVEntity(com.webobjects.appserver.xml.WOXMLDecoder)

classForCoder

public Class classForCoder()
WOXMLCoding Impl

Specified by:
classForCoder in interface WOXMLCoding

init

public void init(GSVModel model,
                 EOEntity eoentity)

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.