|
Enhydra 5.1 API | |||||||||
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
XMLC DOM factory for creating DocumentType and Document objects based on the Xerces DOM.
Nested Class Summary | |
class |
XercesDomFactory.LinkedXercesDocument
Deprecated. Remains for compaitiblity with objects compiled with XMLC 2.0.1 |
Constructor Summary | |
XercesDomFactory()
|
Method Summary | |
AccessorGenerator |
createAccessorGenerator(Document document)
Create an AccessorGenerator object for this DOM. |
DocBuilderGenerator |
createDocBuilderGenerator(Document document)
Create an DocBuilderGenerator object for this DOM. |
Document |
createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
DocumentType docType)
This creates a Document object that extends the Xerces Document class and implements XMLObjectLink. |
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 |
getBaseClassName()
Get the base class name for generated classes. |
java.lang.String[] |
getElementClassNames(Element element)
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(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(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XercesDomFactory()
Method Detail |
public java.lang.String getMIMEType()
XMLCDomFactory
getMIMEType
in interface XMLCDomFactory
XMLCDomFactory.getMIMEType()
public java.lang.String getBaseClassName()
XMLCDomFactory
getBaseClassName
in interface XMLCDomFactory
XMLCDomFactory.getBaseClassName()
public java.lang.String[] getInterfaceNames()
XMLCDomFactory
getInterfaceNames
in interface XMLCDomFactory
XMLCDomFactory#getInterfaceName
public java.lang.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
XMLCDomFactory.getElementClassNames(org.w3c.dom.Element)
public boolean isURLAttribute(Element element, java.lang.String attrName)
XMLCDomFactory
isURLAttribute
in interface XMLCDomFactory
element
- The element object the attribute is associated with.attrName
- The name of the attribute.
XMLCDomFactory.isURLAttribute(org.w3c.dom.Element, java.lang.String)
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset)
XMLCDomFactory
DocumentType
node.
createDocumentType
in interface XMLCDomFactory
qualifiedName
- The document type name (same as the root element).publicId
- The document type public identifier.systemId
- The document type system identifier.internalSubset
- The internal subset as a string.
DocumentType
node.XMLCDomFactory.createDocumentType(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType docType)
createDocument
in interface XMLCDomFactory
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 java.lang.String nodeClassToInterface(Node node)
XMLCDomFactory
org.w3c.dom
interface or
other interface or class.
nodeClassToInterface
in interface XMLCDomFactory
XMLCDomFactory.nodeClassToInterface(org.w3c.dom.Node)
public AccessorGenerator createAccessorGenerator(Document document)
XMLCDomFactory
createAccessorGenerator
in interface XMLCDomFactory
XMLCDomFactory.createAccessorGenerator(org.w3c.dom.Document)
public DocBuilderGenerator createDocBuilderGenerator(Document document)
XMLCDomFactory
createDocBuilderGenerator
in interface XMLCDomFactory
XMLCDomFactory#DocBuilderGenerator
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |