Public Member Functions | |
EntityTFinder (Logger logger) | |
Method | getEntityTMethod (Class entityClass) throws EntityException |
EntityT | extractEntityT (Object entityObj) throws EntityException |
void | setVerbose (boolean verbose) |
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.
alma.acs.entityutil.EntityTFinder.EntityTFinder | ( | Logger | logger | ) |
EntityT alma.acs.entityutil.EntityTFinder.extractEntityT | ( | Object | entityObj | ) | throws EntityException |
Extracts the EntityT
child of entityObj
. Implementation uses getEntityTMethod.
entityObj | the entity object, e.g. an alma.xmljbind.test.schedblock.SchedBlock . |
null
. EntityException | if there is no method returning an EntityT assignable object, or if the invocation of that method fails. |
References alma.acs.entityutil.EntityTFinder.getEntityTMethod().
Referenced by alma.acs.entityutil.EntitySerializer.serializeEntity(), and alma.acs.component.dynwrapper.CastorMarshalMapper.translate().
Method alma.acs.entityutil.EntityTFinder.getEntityTMethod | ( | Class | entityClass | ) | throws EntityException |
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.
entityClass | the class of the entity object (e.g. alma.xmljbind.test.schedblock.SchedBlock.class) |
EntityException | if no such method can be found. |
Referenced by alma.acs.component.dynwrapper.CastorMarshalMapper.canTranslate(), and alma.acs.entityutil.EntityTFinder.extractEntityT().
void alma.acs.entityutil.EntityTFinder.setVerbose | ( | boolean | verbose | ) |