Struct xpcom::interfaces::nsIRDFContainer [] [src]

#[repr(C)]
pub struct nsIRDFContainer { /* fields omitted */ }

interface nsIRDFContainer : nsISupports

Methods

impl nsIRDFContainer
[src]

[src]

Cast this nsIRDFContainer to one of its base interfaces.

impl nsIRDFContainer
[src]

[src]

readonly attribute nsIRDFDataSource DataSource;

[src]

readonly attribute nsIRDFResource Resource;

[src]

/**
     * Initialize the container wrapper to the specified resource
     * using the specified datasource for context.
     */

void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer);

[src]

/**
     * Return the number of elements in the container. Note that this
     * may not always be accurate due to aggregation.
     */

long GetCount ();

[src]

/**
     * Return an enumerator that can be used to enumerate the contents
     * of the container in ascending order.
     */

nsISimpleEnumerator GetElements ();

[src]

/**
     * Append an element to the container, assigning it the next
     * available ordinal.
     */

void AppendElement (in nsIRDFNode aElement);

[src]

/**
     * Remove the first occurence of the specified element from the
     * container. If aRenumber is 'true', then the underlying RDF graph
     * will be 're-numbered' to account for the removal.
     */

void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber);

[src]

/**
     * Insert aElement at the specified index. If aRenumber is 'true', then
     * the underlying RDF graph will be 're-numbered' to accomodate the new
     * element.
     */

void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber);

[src]

/**
     * Remove the element at the specified index. If aRenumber is 'true', then
     * the underlying RDF graph will be 're-numbered' to account for the
     * removal.
     *
     * @return the element that was removed.
     */

nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber);

[src]

/**
     * Determine the index of an element in the container.
     *
     * @return The index of the specified element in the container. If
     * the element is not contained in the container, this function
     * returns '-1'.
     */

long IndexOf (in nsIRDFNode aElement);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIRDFContainer
[src]

IID: nsIID = nsID(3558952592, 64404, 4562, [189, 216, 0, 16, 75, 222, 96, 72])

[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 nsIRDFContainer
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRDFContainer
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.