java.lang.Object
org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
WMLDomFactory
public WMLDomFactory()
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.