Enhydra 3.0.3 API

org.enhydra.xml.xmlc.dom
Class DefaultHTMLDomFactory

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
        |
        +--org.enhydra.xml.xmlc.dom.DefaultHTMLDomFactory

public class DefaultHTMLDomFactory
extends org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
implements XMLCDomFactory

Default DOM factory class for HTML documents.


Constructor Summary
DefaultHTMLDomFactory()
           
 
Method Summary
 java.lang.String getBaseClassName()
          Get the base class name for generated classes.
 java.lang.String getBaseInterfaceName()
          Get the base interface name for generated interfaces.
 java.lang.String[] getElementClassNames(Element element)
          Extract the class names for an element.
 java.lang.String[] getElementURLAttrs(Element element)
          Get a list of attribute names for an element who's value can be a URL.
 boolean needsCreateTextSetMethod(Element element)
          Determine if this element should have an set method created for it's first text child.
 
Methods inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
createDocument, createDocumentType, nodeClassToInterface, setErrorChecking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHTMLDomFactory

public DefaultHTMLDomFactory()
Method Detail

getBaseClassName

public java.lang.String getBaseClassName()
Description copied from interface: XMLCDomFactory
Get the base class name for generated classes. It must extend XMLObjectImpl. This class maybe overridden for individual documents that are compiled.
Specified by:
getBaseClassName in interface XMLCDomFactory
Overrides:
getBaseClassName in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.getBaseClassName()

getBaseInterfaceName

public java.lang.String getBaseInterfaceName()
Description copied from interface: XMLCDomFactory
Get the base interface name for generated interfaces. It must extend XMLObject. This class maybe overridden for individual documents that are compiled.
Specified by:
getBaseInterfaceName in interface XMLCDomFactory
Overrides:
getBaseInterfaceName in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.getBaseInterfaceName()

getElementClassNames

public java.lang.String[] getElementClassNames(Element element)
Description copied from interface: XMLCDomFactory
Extract the class names for an element. This is a class for grouping elements, not the Java class. In HTML, the class is specified with the class attribute and with a value of a white-space separated list of class names. Its not specified for XML, however this method can be implemented in DTD-specifc XMLDomFactories to enable this functionality.
Specified by:
getElementClassNames in interface XMLCDomFactory
Overrides:
getElementClassNames in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.getElementClassNames(org.w3c.dom.Element)

getElementURLAttrs

public java.lang.String[] getElementURLAttrs(Element element)
Description copied from interface: XMLCDomFactory
Get a list of attribute names for an element who's value can be a URL. This is use when mapping URL values. The return list does not need to be restricted to attributes that are legal for the element. The list can be all attributes in the DTD that can have URLs if element context doesn't matter. The attributes return should have values of type %URL, %URI or %Script.
Specified by:
getElementURLAttrs in interface XMLCDomFactory
Overrides:
getElementURLAttrs in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.getElementURLAttrs(org.w3c.dom.Element)

needsCreateTextSetMethod

public boolean needsCreateTextSetMethod(Element element)
Description copied from interface: XMLCDomFactory
Determine if this element should have an set method created for it's first text child.
Specified by:
needsCreateTextSetMethod in interface XMLCDomFactory
Overrides:
needsCreateTextSetMethod in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.needsCreateTextSetMethod(org.w3c.dom.Element)

Enhydra 3.0.3 API