org.enhydra.xml.xmlc.dom
Class DefaultXMLDomFactory
java.lang.Object
|
+--org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
|
+--org.enhydra.xml.xmlc.dom.DefaultXMLDomFactory
- public class DefaultXMLDomFactory
- extends org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
- implements XMLCDomFactory
Default DOM factory class for XML documents. Custom DOM factories for
special DTDs can extend this class to get the default DOM
implementation, only needing to override a few methods.
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 |
DefaultXMLDomFactory
public DefaultXMLDomFactory()
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)