<documentClass>
Specify properties of the XMLC document class to generate.
Attributes:
name
- The fully-qualified name of the class to generate.
If generate
specifies class
, then this is
the name of the class. Otherwise, this is the name of the interface
to generate, with the generated implimentation will have `Impl
'
appended to this name.
generate
- Specifies what kind of classes should be generated.
Normally either `class' or `both' is used.
class
- Generate a simple class (default).
interface
- Generate just an interface but not the implementation.
implementation
- Generate an implementation of the interface,
named in the form `nameImpl
', but not the interface.
both
- Generate both an interface and an implementation.
delegateSupport
- Generate code for delegate support used by
for XMLC document class reloading. Boolean value, default is false.
createMetaData
- Create a XMLC meta-data XML file in the same
directory as the class file. This is used by the XMLC recompilation
factory. Boolean value, default is false.
recompilation
- Set all options required for XMLC recompilation.
Boolean value, default is false. Setting this to true results in:
generate="both"
delegateSupport="true"
createMetaData="true"
extends
- Specify the class that the generated class will extend. This
class must extend
org.enhydra.xml.xmlc.XMLObjectImpl
for XML documents or
org.enhydra.xml.xmlc.html.HTMLObjectImpl
for HTML documents.
domfactory
- Specify the Java class for creating DOM
documents. This class must implement
org.enhydra.xml.xmlc.dom.XMLCDomFactory
.
The option is not supported
for HTML documents. The DOM factory must have a constructor that takes
no arguments. This class serves as a factory for Document objects,
giving a mechanism for creating DTD-specific DOMs. Element classes that
correspond to a specific element types. The specified class must be
available on the CLASSPATH
.
dom
- Specify one of a predefined set of DOM factories.
This is a short-cut for the domfactory
attribute.
These are the valid values along with the XMLCDomFactory
they map to are:
lazydom
- The LazyDOM, derived from the Xerces DOM.
org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory
org.enhydra.xml.xmlc.dom.lazydom.LazyHTMLDomFactory
xerces
- The Xerces DOM.
org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
org.enhydra.xml.xmlc.dom.xerces.XercesHTMLDomFactory
domfactory
or dom
attributes are specified is lazydom
.
createGetTagMethods true|false
- Specifies that
getTagXXX()
methods should be generated.
These methods have a more generic return type than
getElementXXX()
methods.
By default, they return org.w3c.dom.Element
.
This useful when the developer is constructing interfaces
that are implemented by multiple XMLC document class.
By having the interface contain
getTagXXX()
and
setTextXXX()
methods, common
code can be written to operate on the interfaces.
getTagMethodReturnType type
- Specifies the
return type generated for getTagXXX()
methods.
One of the following value maybe used instead of a class or
interface name:
Element
- a short-cut for org.w3c.Element
.
This is the default.
HTMLElement
- a short-cut for org.w3c.html.HTMLElement
.
class
- the actual class name of the element.
interface
- the value obtained from the
nodeClassToInterface
method in the
XMLCDomFactory
object being used to compile the
document. The would result in the same method return type
as the getTagXXX()
methods.
<implements/>
Specifies the name of an interface the document class will implement.
Attributes:
name
The full qualified class name of the interface that will the
generated class will implement.