Struct xpcom::interfaces::nsIRDFResource
[−]
[src]
#[repr(C)]pub struct nsIRDFResource { /* fields omitted */ }
interface nsIRDFResource : nsIRDFNode
/**
* An nsIRDFResource is an object that has unique identity in the
* RDF data model. The object's identity is determined by its URI.
*/
Methods
impl nsIRDFResource
[src]
pub fn coerce<T: nsIRDFResourceCoerce>(&self) -> &T
[src]
Cast this nsIRDFResource
to one of its base interfaces.
impl nsIRDFResource
[src]
pub unsafe fn GetValue(&self, aValue: *mut *const c_char) -> nsresult
[src]
/**
* The single-byte string value of the resource.
* @note THIS IS OBSOLETE. C++ should use GetValueConst and script
* should use .valueUTF8
*/
readonly attribute string Value;
pub unsafe fn GetValueUTF8(&self, aValueUTF8: &mut nsACString) -> nsresult
[src]
/**
* The UTF-8 URI of the resource.
*/
readonly attribute AUTF8String ValueUTF8;
pub unsafe fn GetValueConst(&self, aConstValue: *mut *const c_char) -> nsresult
[src]
/**
* An unscriptable version used to avoid a string copy. Meant
* for use as a performance optimization. The string is encoded
* in UTF-8.
*/
[noscript] void GetValueConst ([shared] out string aConstValue);
pub unsafe fn Init(&self, uri: *const c_char) -> nsresult
[src]
/**
* This method is called by the nsIRDFService after constructing
* a resource object to initialize its URI. You would not normally
* call this method directly
*/
void Init (in string uri);
pub unsafe fn EqualsString(
&self,
aURI: *const c_char,
_retval: *mut bool
) -> nsresult
[src]
&self,
aURI: *const c_char,
_retval: *mut bool
) -> nsresult
/**
* Determine if the resource has the given URI.
*/
boolean EqualsString (in string aURI);
pub unsafe fn GetDelegate(
&self,
aKey: *const c_char,
aIID: &nsIID,
aResult: *mut *mut c_void
) -> nsresult
[src]
&self,
aKey: *const c_char,
aIID: &nsIID,
aResult: *mut *mut c_void
) -> nsresult
/**
* Retrieve the "delegate" object for this resource. A resource
* may have several delegate objects, each of whose lifetimes is
* bound to the life of the resource object.
*
* This method will return the delegate for the given key after
* QueryInterface()-ing it to the requested IID.
*
* If no delegate exists for the specified key, this method will
* attempt to create one using the component manager. Specifically,
* it will combine aKey with the resource's URI scheme to produce
* a ContractID as follows:
*
* component:/rdf/delegate-factory/[key]/[scheme]
*
* This ContractID will be used to locate a factory using the
* FindFactory() method of nsIComponentManager. If the nsIFactory
* exists, it will be used to create a "delegate factory"; that
* is, an object that supports nsIRDFDelegateFactory. The delegate
* factory will be used to construct the delegate object.
*/
void GetDelegate (in string aKey, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult);
pub unsafe fn ReleaseDelegate(&self, aKey: *const c_char) -> nsresult
[src]
/**
* Force a delegate to be "unbound" from the resource.
*
* Normally, a delegate object's lifetime will be identical to
* that of the resource to which it is bound; this method allows a
* delegate to unlink itself from an RDF resource prematurely.
*/
void ReleaseDelegate (in string aKey);
Methods from Deref<Target = nsIRDFNode>
pub fn coerce<T: nsIRDFNodeCoerce>(&self) -> &T
[src]
Cast this nsIRDFNode
to one of its base interfaces.
pub unsafe fn EqualsNode(
&self,
aNode: *const nsIRDFNode,
_retval: *mut bool
) -> nsresult
[src]
&self,
aNode: *const nsIRDFNode,
_retval: *mut bool
) -> nsresult
boolean EqualsNode (in nsIRDFNode aNode);
Trait Implementations
impl XpCom for nsIRDFResource
[src]
const IID: nsIID
IID: nsIID = nsID(4220946087, 29082, 18908, [145, 7, 16, 222, 165, 115, 147, 65])
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 nsIRDFResource
[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 nsIRDFResource
[src]
type Target = nsIRDFNode
The resulting type after dereferencing.
fn deref(&self) -> &nsIRDFNode
[src]
Dereferences the value.