|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for all compiled XML objects.
Field Summary | |
static java.lang.String |
XMLC_GENERATED_CLASS_FIELD_NAME
The name of the class field that is used to identify an XMLC generated class. |
static java.lang.String |
XMLC_SOURCE_FILE_FIELD_NAME
Field name in the generated class that contains the name of the source file. |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary | |
Node |
adoptNode(Node source)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
buildDocument()
Generated method to build the DOM. |
XMLObject |
getDelegate()
Get the delegate. |
Document |
getDocument()
Get the actual document object. |
java.lang.String |
getEncoding()
Get the encoding specified in the document. |
java.lang.String |
getMIMEType()
Get the MIME type associated with the document, or null if none was associated. |
boolean |
getStandalone()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
boolean |
getStrictErrorChecking()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
java.lang.String |
getVersion()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
setDelegate(XMLObject delegate)
Set the delegate object. |
void |
setEncoding(java.lang.String encoding)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
setStandalone(boolean standalone)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
setStrictErrorChecking(boolean strictErrorChecking)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
setVersion(java.lang.String version)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.. |
void |
syncAccessMethods()
Initialize the fields used by the generated access methods from the current state of the document. |
java.lang.String |
toDocument()
Convert the document to a string representation of the document, that is a string containing XML. |
Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.enhydra.xml.io.DocumentInfo |
isURLAttribute |
Field Detail |
public static final java.lang.String XMLC_GENERATED_CLASS_FIELD_NAME
public static final java.lang.String XMLC_SOURCE_FILE_FIELD_NAME
Method Detail |
public void buildDocument()
public void setDelegate(XMLObject delegate)
delegate
- The delegate object, or null to remove delegation.
The delegate must implement the same interface as the derived, generate
object.public void syncAccessMethods()
null
.
public XMLObject getDelegate()
public Document getDocument()
public java.lang.String getMIMEType()
public java.lang.String getEncoding()
getEncoding
in interface Document
DOMFormatter
,
OutputOptions
public void setEncoding(java.lang.String encoding)
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the encoding
of this document. This is null
when unspecified.
setEncoding
in interface Document
Document.setEncoding(java.lang.String)
public boolean getStandalone()
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, whether this document is standalone.
getStandalone
in interface Document
Document.getStandalone()
public void setStandalone(boolean standalone)
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, whether this document is standalone.
setStandalone
in interface Document
Document.setStandalone(boolean)
public boolean getStrictErrorChecking()
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.
getStrictErrorChecking
in interface Document
Document.getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.
setStrictErrorChecking
in interface Document
Document.setStrictErrorChecking(boolean)
public java.lang.String getVersion()
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null
when unspecified.
getVersion
in interface Document
Document.getVersion()
public void setVersion(java.lang.String version)
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null
when unspecified.
setVersion
in interface Document
Document.setVersion(java.lang.String)
public Node adoptNode(Node source) throws DOMException
Document
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
Changes the ownerDocument
of a node, its children, as well
as the attached attribute nodes if there are any. If the node has a
parent it is first removed from its parent child list. This
effectively allows moving a subtree from one document to another. The
following list describes the specifics for each type of node.
ownerElement
attribute is set to
null
and the specified
flag is set to
true
on the adopted Attr
. The descendants
of the source Attr
are recursively adopted.Document
nodes cannot
be adopted.DocumentType
nodes cannot
be adopted.Attr
nodes.
Default attributes are discarded, though if the document being
adopted into defines default attributes for this element name, those
are assigned. The descendants of the source element are recursively
adopted.Entity
nodes cannot be adopted.EntityReference
node
itself is adopted, the descendants are discarded, since the source
and destination documents might have defined the entity differently.
If the document being imported into provides a definition for this
entity name, its value is assigned.Notation
nodes cannot be adopted.
adoptNode
in interface Document
source
- The node to move into this document.
null
if this operation
fails, such as when the source node comes from a different
implementation.
DOMException
- NOT_SUPPORTED_ERR: Raised if the source node is of type
DOCUMENT
, DOCUMENT_TYPE
.
Document.adoptNode(org.w3c.dom.Node)
public java.lang.String toDocument()
DOMFormatter
class if
more options are required.
DOMFormatter
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |