Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::entityutil::EntityTFinder Class Reference

List of all members.

Public Member Functions

 EntityTFinder (Logger logger)
Method getEntityTMethod (Class entityClass) throws EntityException
EntityT extractEntityT (Object entityObj) throws EntityException
void setVerbose (boolean verbose)

Private Attributes

Logger m_logger
boolean m_verbose = false

Detailed Description

Takes the binding object that represents an (xml) entity object, and finds the child element of type alma.entities.commonentity.EntityT. This element contains administrational information like id, schema version etc. and is required in the xml schema in order for the object to be an ACS entity object.

Author:
hsommer May 6, 2003 5:31:11 PM


Constructor & Destructor Documentation

alma::acs::entityutil::EntityTFinder::EntityTFinder Logger  logger  )  [inline]
 


Member Function Documentation

EntityT alma::acs::entityutil::EntityTFinder::extractEntityT Object  entityObj  )  throws EntityException [inline]
 

Extracts the EntityT child of entityObj. Implementation uses getEntityTMethod.

Parameters:
entityObj the entity object, e.g. an alma.xmljbind.test.schedblock.SchedBlock.
Returns:
the administrational data of type EntityT, possibly null.
Exceptions:
EntityException if there is no method returning an EntityT assignable object, or if the invocation of that method fails.

Method alma::acs::entityutil::EntityTFinder::getEntityTMethod Class  entityClass  )  throws EntityException [inline]
 

Only finds the method that can return the EntityT object. Uses introspection.

Generally, the users are expected to not call this method, but use extractEntityT(Object) instead.

Parameters:
entityClass the class of the entity object (e.g. alma.xmljbind.test.schedblock.SchedBlock.class)
Returns:
the method of entityClass which returns the EntityT object.
Exceptions:
EntityException if no such method can be found.

void alma::acs::entityutil::EntityTFinder::setVerbose boolean  verbose  )  [inline]
 


Member Data Documentation

Logger alma::acs::entityutil::EntityTFinder::m_logger [private]
 

boolean alma::acs::entityutil::EntityTFinder::m_verbose = false [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:35 2009 for ACS Java API by doxygen 1.3.8