|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory | +--org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory | +--org.enhydra.xml.xmlc.dom.lazydom.LazyHTMLDomFactory
Lazy DOM factory for creating HTML Document objects.
Nested Class Summary |
Nested classes inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory |
XercesDomFactory.LinkedXercesDocument |
Constructor Summary | |
LazyHTMLDomFactory()
|
Method Summary | |
Document |
createDocument(String namespaceURI,
String qualifiedName,
DocumentType docType)
Creates an XML Document object of the specified type. |
Document |
createDocument(TemplateDOM templateDOM)
Create a LazyDocument from a template. |
String |
getBaseClassName()
Get the base class name for generated classes. |
String[] |
getElementClassNames(Element element)
Extract the class names for an element. |
String[] |
getInterfaceNames()
Get the interface names that will automatically be added to all generated classes and interfaces. |
String |
getMIMEType()
Get the MIME type to associated with the document, or null if none should be associated. |
boolean |
isURLAttribute(Element element,
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. |
Methods inherited from class org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory |
createAccessorGenerator, createDocBuilderGenerator, createDocumentType, nodeClassToInterface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.enhydra.xml.xmlc.dom.XMLCDomFactory |
createAccessorGenerator, createDocBuilderGenerator, createDocumentType, nodeClassToInterface |
Constructor Detail |
public LazyHTMLDomFactory()
Method Detail |
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType)
XMLCDomFactory
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.
createDocument
in interface XMLCDomFactory
createDocument
in class LazyDomFactory
namespaceURI
- The namespace URI of the document element to
create, or null.qualifiedName
- The document type name (same as the root element).
Maybe null for HTML documents or documents without DTDs.docType
- The type of document to be created or null
.
When doctype
is not null
, its
Node.ownerDocument
attribute is set to the document being
created. Maybe null for for documents without DTDs or HTML documents.
Document
object.XMLCDomFactory.createDocument(java.lang.String, java.lang.String, org.w3c.dom.DocumentType)
public Document createDocument(TemplateDOM templateDOM)
createDocument
in class LazyDomFactory
XMLCDomFactory.createDocument(java.lang.String, java.lang.String, org.w3c.dom.DocumentType)
public String getMIMEType()
XMLCDomFactory
getMIMEType
in interface XMLCDomFactory
getMIMEType
in class XercesDomFactory
XMLCDomFactory.getMIMEType()
public String getBaseClassName()
XMLCDomFactory
getBaseClassName
in interface XMLCDomFactory
getBaseClassName
in class XercesDomFactory
XMLCDomFactory.getBaseClassName()
public String[] getInterfaceNames()
XMLCDomFactory
getInterfaceNames
in interface XMLCDomFactory
getInterfaceNames
in class XercesDomFactory
XMLCDomFactory.getInterfaceNames()
public String[] getElementClassNames(Element element)
XMLCDomFactory
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.
getElementClassNames
in interface XMLCDomFactory
getElementClassNames
in class XercesDomFactory
XMLCDomFactory.getElementClassNames(org.w3c.dom.Element)
public boolean isURLAttribute(Element element, String attrName)
XMLCDomFactory
isURLAttribute
in interface XMLCDomFactory
isURLAttribute
in class XercesDomFactory
element
- The element object the attribute is associated with.attrName
- The name of the attribute.
XMLCDomFactory.isURLAttribute(org.w3c.dom.Element, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |