T
- The Java class of which instances are created by this object factory.public interface ILcdXMLObjectFactory<T>
createObject
: creates a new, empty Object that can be filled with XML data.resolveObject
: allows an object factory to perform an extra initialization step after
an object has been created and filled with data. The object factory is allowed to convert the
object into another object, based on its contents.
// First create the object.
T object = createObject(aContext);
// Now fill the object with data.
[...]
// Allow the schema object factory to perform an additional initialization step.
object = resolveObject (object, aContext);
Modifier and Type | Method and Description |
---|---|
T |
createObject(ILcdXMLDocumentContext aContext)
Creates and returns a new object for use in an XML context.
|
T |
resolveObject(T aObject,
ILcdXMLDocumentContext aContext)
Performs an additional initialization step for the specified object after it has been created.
|
T createObject(ILcdXMLDocumentContext aContext)
aContext
- the document context providing additional information about the document in which
the object will be included.T resolveObject(T aObject, ILcdXMLDocumentContext aContext)
aObject
- the object to be further initialized.aContext
- the document context providing additional information about the document in which
the object will be included.