| org.jibx.runtime.IMarshaller
All known Subclasses: org.jibx.extras.IdDefRefMapperBase, org.jibx.extras.HashMapperStringToComplex, org.jibx.extras.DomListMapper, org.jibx.extras.HashMapperStringToSchemaType, org.jibx.extras.DomElementMapper, org.jibx.extras.DomFragmentMapper, org.jibx.extras.DiscardElementMapper, org.jibx.extras.ObjectArrayMapper, org.jibx.extras.DiscardListMapper, org.jibx.extras.TypedArrayMapper, org.jibx.extras.IdRefMapperBase, org.jibx.extras.Dom4JElementMapper, org.jibx.extras.Dom4JListMapper,
IMarshaller | public interface IMarshaller (Code) | | Marshaller interface definition. This interface must be implemented
by the handler for marshalling an object.
Instances of classes implementing this interface must be serially
reusable, meaning they can store state information while in the process
of marshalling an object but must reset all state when called to
marshal another object after the first one is done (even if the first
object throws an exception during marshalling).
The JiBX framework will only create one instance of a marshaller class
for each mapped class using that marshaller. Generally the marshaller
instance will not be called recursively, but this may happen in cases where
the binding definition includes recursive mappings and the marshaller
uses other marshallers (as opposed to handling all children directly).
author: Dennis M. Sosnoski version: 1.0 |
isExtension | public boolean isExtension(int index)(Code) | | Check if marshaller represents an extension mapping. This is used by the
framework in generated code to verify compatibility of objects being
marshalled using an abstract mapping.
Parameters: index - abstract mapping index to be checked true if this mapping is an extension of the abstractmapping, false if not |
marshal | public void marshal(Object obj, IMarshallingContext ctx) throws JiBXException(Code) | | Marshal instance of handled class. This method call is responsible
for all handling of the marshalling of an object to XML text. It is
called at the point where the start tag for the associated element
should be generated.
Parameters: obj - object to be marshalled (may be null if propertyis not optional) Parameters: ctx - XML text output context throws: JiBXException - on error in marshalling process |
|
|