Public Member Functions | |
| void | setXmlEntityFactory (XmlEntityStructFactory esf) |
| XmlEntityStruct | serializeEntity (Object entityObject, EntityT entityMeta) throws EntityException |
| XmlEntityStruct | serializeEntity (Object entityObject) throws EntityException |
| String | serializeEntityPart (Object entityPart) throws EntityException |
| void | setVerbose (boolean verbose) |
Static Public Member Functions | |
| static EntitySerializer | getEntitySerializer (Logger logger) |
Serializes entity objects. These are instances of binding classes that represent the XML data in a type-safe Java API. Currently all binding classes are generated using the Castor tool.
| static EntitySerializer alma.acs.entityutil.EntitySerializer.getEntitySerializer | ( | Logger | logger | ) | [static] |
Singleton accessor.
| logger | Logger to be used (may be null in subsequent invocations since only one instance of EntitySerializer is constructed and then reused) |
| XmlEntityStruct alma.acs.entityutil.EntitySerializer.serializeEntity | ( | Object | entityObject | ) | throws EntityException |
Marshals an entity object to the CORBA struct used for transport. Unlike in serializeEntity(Object, EntityT), the child of type EntityT that has the administrational information about the entity object, is not given as a parameter. It will be accessed dynamically using EntityTFinder, which makes this method slightly slower than its 2-parameter companion. It's meant to be used rather by generic code that doesn't know about particular entity classes.
| entityObject | the entity object as a binding class |
entityObject is null. References alma.acs.entityutil.EntityTFinder.extractEntityT(), and alma.acs.entityutil.EntitySerializer.serializeEntity().
| XmlEntityStruct alma.acs.entityutil.EntitySerializer.serializeEntity | ( | Object | entityObject, | |
| EntityT | entityMeta | |||
| ) | throws EntityException |
Marshals an entity object to the CORBA struct used for transport.
| entityObject | the entity object as a binding class, currently generated by castor. | |
| entityMeta | usually subtype of EntityT. |
entityObject is null. References alma.acs.entityutil.XmlEntityStructFactory.createXmlEntityStruct(), and alma.acs.entityutil.EntitySerializer.serializeEntityPart().
Referenced by alma.acs.entityutil.EntitySerializer.serializeEntity().
| String alma.acs.entityutil.EntitySerializer.serializeEntityPart | ( | Object | entityPart | ) | throws EntityException |
Serializes a binding class object which is a part (child node) of some other full Entity object.
| entityPart | the binding object, e.g. of type alma.entity.xmlbinding.schedblock.CorrelatorConfigT. |
entityPart. | EntityException | if the operation could not be performed |
References org.exolab.castor.xml.Marshaller.marshal(), and org.exolab.castor.xml.Marshaller.setValidation().
Referenced by alma.acs.entityutil.EntitySerializer.serializeEntity().
| void alma.acs.entityutil.EntitySerializer.setVerbose | ( | boolean | verbose | ) |
References alma.acs.entityutil.EntityTFinder.setVerbose().
| void alma.acs.entityutil.EntitySerializer.setXmlEntityFactory | ( | XmlEntityStructFactory | esf | ) |
Makes this EntitySerializer use a client-supplied factory for XmlEntityStruct objects.
You should use this method if you wish to get a subclass of alma.xmlentity.XmlEntityStruct returned from the serializeEntity methods.
| esf | the factory to be used |
1.7.0