Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.wireless.wml
Class WMLDomFactory  view WMLDomFactory download WMLDomFactory.java

java.lang.Object
  extended byorg.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
      extended byorg.enhydra.wireless.wml.WMLDomFactory
All Implemented Interfaces:
org.enhydra.xml.xmlc.dom.XMLCDomFactory

public class WMLDomFactory
extends org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory

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
 


Field Summary
private static java.lang.String IMPL_CLASS_SUFFIX
           
private static java.lang.String[] URL_ATTRIBUTES
          WML URL attributes.
private static java.util.HashSet urlAttributes
          HashSet built from URL_ATTRIBUTES.
private static java.lang.String WML_IMPLEMENTATION_DOT
           
private static java.lang.String WML_INTERFACE_DOT
           
 
Fields inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
 
Constructor Summary
WMLDomFactory()
           
 
Method Summary
 org.w3c.dom.Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType docType)
          Creates an XML Document object of the specified type.
 org.w3c.dom.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(org.w3c.dom.Element elem)
          Extract the class names for an element.
 java.lang.String[] getInterfaceNames()
          Get the interface names that will automatically be added to all generated classes and interfaces.
 java.lang.String getMIMEType()
          Get the MIME type to associated with the document, or null if none should be associated.
 boolean isURLAttribute(org.w3c.dom.Element element, java.lang.String attrName)
          Determine if an an attribute of an element may contain a URL and should be subject to URL editing at compile time(or rewriting at run time.
 java.lang.String nodeClassToInterface(org.w3c.dom.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.xerces.XercesDomFactory
createAccessorGenerator, createDocBuilderGenerator, getBaseClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_ATTRIBUTES

private static java.lang.String[] URL_ATTRIBUTES
WML URL attributes.


urlAttributes

private static final java.util.HashSet urlAttributes
HashSet built from URL_ATTRIBUTES.


IMPL_CLASS_SUFFIX

private static final java.lang.String IMPL_CLASS_SUFFIX
See Also:
Constant Field Values

WML_IMPLEMENTATION_DOT

private static final java.lang.String WML_IMPLEMENTATION_DOT
See Also:
Constant Field Values

WML_INTERFACE_DOT

private static final java.lang.String WML_INTERFACE_DOT
See Also:
Constant Field Values
Constructor Detail

WMLDomFactory

public WMLDomFactory()
Method Detail

createDocumentType

public org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName,
                                                   java.lang.String publicId,
                                                   java.lang.String systemId,
                                                   java.lang.String internalSubset)
Description copied from interface: org.enhydra.xml.xmlc.dom.XMLCDomFactory
Creates an empty DocumentType node.


createDocument

public org.w3c.dom.Document createDocument(java.lang.String namespaceURI,
                                           java.lang.String qualifiedName,
                                           org.w3c.dom.DocumentType docType)
Description copied from interface: org.enhydra.xml.xmlc.dom.XMLCDomFactory
Creates an XML Document object of the specified type. The document element should be created. A HTML document should only have the document element, which differs from the DOMImplementation specification, however it makes code generation easier and its not expected that there will be many custom HTML DOM factories.


getMIMEType

public java.lang.String getMIMEType()
Description copied from interface: org.enhydra.xml.xmlc.dom.XMLCDomFactory
Get the MIME type to associated with the document, or null if none should be associated.


getInterfaceNames

public java.lang.String[] getInterfaceNames()
Description copied from interface: org.enhydra.xml.xmlc.dom.XMLCDomFactory
Get the interface names that will automatically be added to all generated classes and interfaces. This class maybe overridden for individual documents that are compiled. It XMLObject is not part of the list, it will be added automatically.


nodeClassToInterface

public java.lang.String nodeClassToInterface(org.w3c.dom.Node node)
Description copied from interface: org.enhydra.xml.xmlc.dom.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.


getElementClassNames

public java.lang.String[] getElementClassNames(org.w3c.dom.Element elem)
Description copied from interface: org.enhydra.xml.xmlc.dom.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.


isURLAttribute

public boolean isURLAttribute(org.w3c.dom.Element element,
                              java.lang.String attrName)
Description copied from interface: org.enhydra.xml.xmlc.dom.XMLCDomFactory
Determine if an an attribute of an element may contain a URL and should be subject to URL editing at compile time(or rewriting at run time. This method is required, as there is not way to define this in a XML DTD. With HTML, the attributes returned should have values of type %URL, %URI or %Script.