Struct xpcom::interfaces::nsIDOMDocumentType
[−]
[src]
#[repr(C)]pub struct nsIDOMDocumentType { /* fields omitted */ }
interface nsIDOMDocumentType : nsIDOMNode
Methods
impl nsIDOMDocumentType
[src]
pub fn coerce<T: nsIDOMDocumentTypeCoerce>(&self) -> &T
[src]
Cast this nsIDOMDocumentType
to one of its base interfaces.
impl nsIDOMDocumentType
[src]
pub unsafe fn GetName(&self, aName: &mut nsAString) -> nsresult
[src]
/**
* Each Document has a doctype attribute whose value is either null
* or a DocumentType object.
* The nsIDOMDocumentType interface in the DOM Core provides an
* interface to the list of entities that are defined for the document.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Core/
*/
readonly attribute DOMString name;
pub unsafe fn GetPublicId(&self, aPublicId: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString publicId;
pub unsafe fn GetSystemId(&self, aSystemId: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString systemId;
pub unsafe fn GetInternalSubset(
&self,
aInternalSubset: &mut nsAString
) -> nsresult
[src]
&self,
aInternalSubset: &mut nsAString
) -> nsresult
readonly attribute DOMString internalSubset;
Methods from Deref<Target = nsIDOMNode>
pub fn coerce<T: nsIDOMNodeCoerce>(&self) -> &T
[src]
Cast this nsIDOMNode
to one of its base interfaces.
pub const ELEMENT_NODE: i64
pub const ATTRIBUTE_NODE: i64
pub const TEXT_NODE: i64
pub const CDATA_SECTION_NODE: i64
pub const ENTITY_REFERENCE_NODE: i64
pub const ENTITY_NODE: i64
pub const PROCESSING_INSTRUCTION_NODE: i64
pub const COMMENT_NODE: i64
pub const DOCUMENT_NODE: i64
pub const DOCUMENT_TYPE_NODE: i64
pub const DOCUMENT_FRAGMENT_NODE: i64
pub const NOTATION_NODE: i64
pub const DOCUMENT_POSITION_DISCONNECTED: i64
pub const DOCUMENT_POSITION_PRECEDING: i64
pub const DOCUMENT_POSITION_FOLLOWING: i64
pub const DOCUMENT_POSITION_CONTAINS: i64
pub const DOCUMENT_POSITION_CONTAINED_BY: i64
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: i64
pub unsafe fn GetNodeName(&self, aNodeName: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString nodeName;
pub unsafe fn GetNodeValue(&self, aNodeValue: &mut nsAString) -> nsresult
[src]
attribute DOMString nodeValue;
pub unsafe fn SetNodeValue(&self, aNodeValue: &nsAString) -> nsresult
[src]
attribute DOMString nodeValue;
pub unsafe fn GetNodeType(&self, aNodeType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short nodeType;
pub unsafe fn GetParentNode(
&self,
aParentNode: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aParentNode: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode parentNode;
pub unsafe fn GetChildNodes(
&self,
aChildNodes: *mut *const nsIDOMNodeList
) -> nsresult
[src]
&self,
aChildNodes: *mut *const nsIDOMNodeList
) -> nsresult
readonly attribute nsIDOMNodeList childNodes;
pub unsafe fn GetFirstChild(
&self,
aFirstChild: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aFirstChild: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode firstChild;
pub unsafe fn GetLastChild(
&self,
aLastChild: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aLastChild: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode lastChild;
pub unsafe fn GetPreviousSibling(
&self,
aPreviousSibling: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aPreviousSibling: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode previousSibling;
pub unsafe fn GetNextSibling(
&self,
aNextSibling: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aNextSibling: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode nextSibling;
pub unsafe fn GetOwnerDocument(
&self,
aOwnerDocument: *mut *const nsIDOMDocument
) -> nsresult
[src]
&self,
aOwnerDocument: *mut *const nsIDOMDocument
) -> nsresult
readonly attribute nsIDOMDocument ownerDocument;
pub unsafe fn RemoveChild(
&self,
oldChild: *const nsIDOMNode,
_retval: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
oldChild: *const nsIDOMNode,
_retval: *mut *const nsIDOMNode
) -> nsresult
nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException);
pub unsafe fn HasChildNodes(&self, _retval: *mut bool) -> nsresult
[src]
boolean hasChildNodes ();
pub unsafe fn GetNamespaceURI(&self, aNamespaceURI: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString namespaceURI;
pub unsafe fn GetPrefix(&self, aPrefix: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString prefix;
pub unsafe fn GetLocalName(&self, aLocalName: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString localName;
pub unsafe fn GetTextContent(&self, aTextContent: &mut nsAString) -> nsresult
[src]
attribute DOMString textContent;
pub unsafe fn SetTextContent(&self, aTextContent: &nsAString) -> nsresult
[src]
attribute DOMString textContent;
Trait Implementations
impl XpCom for nsIDOMDocumentType
[src]
const IID: nsIID
IID: nsIID = nsID(3446958009, 3878, 18311, [163, 89, 102, 232, 11, 168, 219, 146])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDOMDocumentType
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMDocumentType
[src]
type Target = nsIDOMNode
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMNode
[src]
Dereferences the value.