|
|||||||||||
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.xerces.XercesHTMLDomFactory
XMLC DOM factory for creating HTML Document objects based on the Xerces DOM.
Nested Class Summary | |
class |
XercesHTMLDomFactory.LinkedXercesDocument
Deprecated. Remains for compaitiblity with objects compiled with XMLC 2.0.1 |
Nested classes inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory |
XercesDomFactory.LinkedXercesDocument |
Constructor Summary | |
XercesHTMLDomFactory()
|
Method Summary | |
Document |
createDocument(String namespaceURI,
String qualifiedName,
DocumentType docType)
This creates a Document object that extends the Xerces HTMLDocument class and implements XMLObjectLink. |
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.xerces.XercesDomFactory |
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 XercesHTMLDomFactory()
Method Detail |
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType)
createDocument
in interface XMLCDomFactory
createDocument
in class XercesDomFactory
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 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 |