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