org.enhydra.xml.xmlc
Interface XMLCFactory

All Known Implementing Classes:
XMLCStdFactory

public interface XMLCFactory

Interface for factories for instances of XMLC generated classes.


Method Summary
 XMLObject create(Class xmlcBasedClass)
          Create an instance of a XMLC-generated class or a class derived from one, given either a class or an interface object.
 XMLObject create(String xmlcClassName)
          Create an instance of a XMLC-generated class or a class derived from one, given the name of the class.
 

Method Detail

create

public XMLObject create(String xmlcClassName)
Create an instance of a XMLC-generated class or a class derived from one, given the name of the class.

The class must have a constructor that takes a single boolean argument that will disable the immediate build of the DOM if false. XMLC creates such a constructor in the classes it generates.

Parameters:
xmlcClassName - The name of the XMLC class or derived class.
Returns:
The new object.
See Also:
create(Class)

create

public XMLObject create(Class xmlcBasedClass)
Create an instance of a XMLC-generated class or a class derived from one, given either a class or an interface object.

If a class is given, then it should be either the XMLC generated class or a class derived from it. This is useful for factories that create the given class then preform some operation with it, such as automatic recompilation.

If an interface is given, it is converted to the implementation name by appending "Impl" to the name. In this case, the implementation must be in the same package.

The class must have a constructor that takes a single boolean argument that will disable the immediate build of the DOM if false. XMLC creates such a constructor in the classes it generates.

Parameters:
xmlcBasedClass - The Class object for the class or interface.
Returns:
The new object.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.