Enhydra 3.0.1 API

org.enhydra.wireless.wml
Class WMLDomFactory

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
        |
        +--org.enhydra.xml.xmlc.dom.DefaultXMLDomFactory
              |
              +--org.enhydra.wireless.wml.WMLDomFactory

public class WMLDomFactory
extends DefaultXMLDomFactory

XMLC DOM factory for creating WML-specified DocumentType and Document objects. Specifying this class as the XMLCDomFctory to xmlc will produce XMLC document class that are WMLDocument classes. This is specified using:

 xmlc -dom-factory org.enhydra.wireless.wml.WMLDomFactory
 


Constructor Summary
WMLDomFactory()
           
 
Method Summary
 Document createDocument(java.lang.String qualifiedName, DocumentType docType)
          Creates an XML Document object of the specified type with its document element.
 DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset)
          Creates an empty DocumentType node.
 java.lang.String[] getElementClassNames(Element elem)
          Extract the class names for an element.
 java.lang.String[] getElementURLAttrs(Element elem)
          Get a list of attribute names for an element who's value can be a URL.
 java.lang.String nodeClassToInterface(Node node)
          Convert an implementation-specific DOM node class name to the external interface or class name that should be used to reference it.
 
Methods inherited from class org.enhydra.xml.xmlc.dom.DefaultXMLDomFactory
getBaseClassName, getBaseInterfaceName, needsCreateTextSetMethod
 
Methods inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
setErrorChecking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMLDomFactory

public WMLDomFactory()
Method Detail

createDocumentType

public DocumentType createDocumentType(java.lang.String qualifiedName,
                                       java.lang.String publicId,
                                       java.lang.String systemId,
                                       java.lang.String internalSubset)
Description copied from interface: XMLCDomFactory
Creates an empty DocumentType node.
Overrides:
createDocumentType in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.createDocumentType(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

createDocument

public Document createDocument(java.lang.String qualifiedName,
                               DocumentType docType)
Description copied from interface: XMLCDomFactory
Creates an XML Document object of the specified type with its document element.
Overrides:
createDocument in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.createDocument(java.lang.String, org.w3c.dom.DocumentType)

nodeClassToInterface

public java.lang.String nodeClassToInterface(Node node)
Description copied from interface: XMLCDomFactory
Convert an implementation-specific DOM node class name to the external interface or class name that should be used to reference it. This could be a org.w3c.dom interface or other interface or class.
Overrides:
nodeClassToInterface in class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
See Also:
XMLCDomFactory.nodeClassToInterface(org.w3c.dom.Node)

getElementClassNames

public java.lang.String[] getElementClassNames(Element elem)
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.
Overrides:
getElementClassNames in class DefaultXMLDomFactory
See Also:
XMLCDomFactory.getElementClassNames(org.w3c.dom.Element)

getElementURLAttrs

public java.lang.String[] getElementURLAttrs(Element elem)
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.
Overrides:
getElementURLAttrs in class DefaultXMLDomFactory
See Also:
XMLCDomFactory.getElementURLAttrs(org.w3c.dom.Element)

Enhydra 3.0.1 API