Oracle® XML API Reference
10g Release 1 (10.1) Part No. B10789-01 |
|
Table 15-7 summarizes the methods of available through DOMImplRef
interface.
Table 15-7 Summary of DOMImplRef Methods; Dom Package
Function | Summary |
---|---|
DOMImplRef
|
Constructor. |
createDocument
|
Create document reference. |
createDocumentType
|
Create DTD reference. |
getImplementation
|
Get DOMImplementation object associated with the document.
|
getNoMod
|
Get the 'no modification allowed' flag value. |
hasFeature
|
Determine if DOM feature is implemented. |
setContext
|
Set another context to a node. |
~DOMImplRef
|
Public default destructor. |
Class constructor.
Syntax | Description |
---|---|
DOMImplRef( Context* ctx_ptr, DOMImplementation< Node>* impl_ptr); |
Creates reference object to DOMImplementation object in a given context. Returns reference to the implementation object.
|
DOMImplRef( const DOMImplRef< Context, Node>& iref); |
It is needed to create other references to the implementation object; deletion flags are not copied. |
DOMImplRef( const DOMImplRef< Context, Node>& iref, Context* ctx_ptr); |
It is needed to create references to the implementation object in a different context; deletion flags are not copied. |
Parameter | Description |
---|---|
ctx_ptr |
context pointer |
impl_ptr |
implementation |
(DOMImplRef)
reference to the implementation object
Creates document reference
DocumentRef< Node>* createDocument( oratext* namespaceURI, oratext* qualifiedName, DocumentTypeRef< Node>& doctype) throw (DOMException);
Parameter | Description |
---|---|
namespaceURI |
namespace URI of root element |
qualifiedName |
qualified name of root element |
doctype |
associated DTD node |
(DocumentRef< Node>*)
document reference
Creates DTD reference
DocumentTypeRef< Node>* createDocumentType( oratext* qualifiedName, oratext* publicId, oratext* systemId) throw (DOMException);
Parameter | Description |
---|---|
qualifiedName |
qualified name |
publicId |
external subset public Id |
systemId |
external subset system Id |
(DocumentTypeRef< Node>*)
DTD reference
Returns DOMImplementation
object that was used to create this document. When the DOMImplementation
object is destructed, all document trees associated with it are also destructed.
DOMImplementation< Node>* getImplementation() const;
(DOMImplementation)
DOMImplementation
reference object
Get the 'no modification allowed' flag value. This is an Oracle extension.
boolean getNoMod() const;
TRUE
if flag's value is TRUE
, FALSE
otherwise
Determine if a DOM feature is implemented. Returns TRUE
if the feature is implemented in the specified version, FALSE
otherwise.
In level 1, the legal values for package are 'HTML' and 'XML' (case-insensitive), and the version is the string "1.0". If the version is not specified, supporting any version of the feature will cause the method to return TRUE
.
DOM 1.0 features are "XML" and "HTML".
DOM 2.0 features are "Core", "XML", "HTML", "Views", "StyleSheets", "CSS", "CSS2", "Events", "UIEvents", "MouseEvents", "MutationEvents", "HTMLEvents", "Range", "Traversal"
boolean hasFeature( oratext* feature, oratext* version);
Parameter | Description |
---|---|
feature |
package name of feature |
version |
version of package |
(boolean)
is feature implemented?
It is needed to create node references in a different context
void setContext( NodeRef< Node>& nref, Context* ctx_ptr);
Parameter | Description |
---|---|
nref |
reference node |
ctx_ptr |
context pointer |
This is the default destructor. It cleans the reference to the implementation object. It is usually called by the environment. But it can be called by the user directly if necessary.
~DOMImplRef();