|
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.XMLCDocument
Class that is a container for the parsed Document DOM. It contains information obtained from that parsers that is not part of the DOM. It also provides various operations on that document.
Constructor Summary | |
XMLCDocument(XMLCDomFactory domFactory)
Constructor. |
Method Summary | |
void |
addIdAttribute(java.lang.String elementName,
java.lang.String attributeName)
Define an element id attribute. |
void |
addPCDataContentElement(java.lang.String elementName)
Flag an element as having #PCDATA as part of its content model. |
Document |
createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create the document. |
DocumentType |
createDocumentType(java.lang.String qualifiedName,
java.lang.String publicID,
java.lang.String systemID,
java.lang.String internalSubset)
Creates an empty DocumentType node. |
Document |
getDocument()
Get the document associated with this object. |
XMLCDomFactory |
getDomFactory()
Get the DOM factory associated with this object. |
java.lang.String[] |
getElementClassNames(Element element)
Extract the class names for an element. |
java.lang.String |
getElementId(Element element)
Extract the unique id for an element object. |
java.lang.String |
getElementName(Element element)
Extract the name for an element. |
java.lang.String |
getEncoding()
|
java.lang.String |
getGlobalIdAttribute()
Get the global id attribute name. |
java.lang.String |
getIdAttrName(Element element)
Get the id attribute name for an element. |
java.lang.String |
getXMLVersion()
Get the XML version. |
boolean |
hasPCDataInContentModel(Element element)
Check if an element has #PCDATA as part of it's content model. |
boolean |
isHtmlDocument()
|
boolean |
isHtmlFrameSet()
Is the document as a HTML frameset? |
boolean |
isURLAttribute(Element element,
java.lang.String attrName)
Determine if an an attribute of an element may contain a URL. |
java.lang.String |
nodeClassToInterface(Node node)
Convert an implementation-specific DOM node class name to the external interface or class name. |
void |
setEncoding(java.lang.String encoding)
|
void |
setIsHtmlFrameSet()
Flat the document as a HTML frameset. |
void |
setXMLVersion(java.lang.String xmlVersion)
Set the XML version. |
java.lang.String |
toDocument()
Convert the document to a string representation of the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLCDocument(XMLCDomFactory domFactory) throws XMLCException
domFactory
- The DOM factory to create and get information about
DOMs.Method Detail |
public XMLCDomFactory getDomFactory()
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicID, java.lang.String systemID, java.lang.String internalSubset)
DocumentType
node.
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName)
public Document getDocument()
public boolean isHtmlDocument()
public boolean isHtmlFrameSet()
public void setIsHtmlFrameSet()
public void setXMLVersion(java.lang.String xmlVersion)
xmlVersion
- XML version string.public java.lang.String getXMLVersion()
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public void addPCDataContentElement(java.lang.String elementName)
elementName
- The name of the element.public void addIdAttribute(java.lang.String elementName, java.lang.String attributeName)
elementName
- The name of the element.attributeName
- The name of the ID attribute.public java.lang.String nodeClassToInterface(Node node)
XMLCDomFactory
public java.lang.String getGlobalIdAttribute()
public java.lang.String getIdAttrName(Element element)
public java.lang.String getElementId(Element element)
ID
.
public java.lang.String[] getElementClassNames(Element element)
XMLCDomFactory.getElementClassNames(org.w3c.dom.Element)
public java.lang.String getElementName(Element element)
name
attribute. It's not supported for XML.
public boolean isURLAttribute(Element element, java.lang.String attrName)
XMLCDomFactory.isURLAttribute
public boolean hasPCDataInContentModel(Element element)
XMLCDomFactory.needsCreateTextSetMethod
public java.lang.String toDocument()
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |