public class EntityTFinder
extends java.lang.Object
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.
| Constructor and Description |
|---|
EntityTFinder(java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
EntityT |
extractEntityT(java.lang.Object entityObj)
Extracts the
EntityT child of entityObj. |
java.lang.reflect.Method |
getEntityTMethod(java.lang.Class entityClass)
Only finds the method that can return the
EntityT object. |
void |
setVerbose(boolean verbose) |
public java.lang.reflect.Method getEntityTMethod(java.lang.Class entityClass)
throws EntityException
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.public EntityT extractEntityT(java.lang.Object entityObj)
throws EntityException
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.public void setVerbose(boolean verbose)