Attributes

From nsIDOMXULElement


          
readonly attribute nsIRDFResource resource

From nsIRDFContainer


          
readonly attribute nsIRDFResource Resource

Returns

From nsIBookmarksService


          
nsIRDFResource cloneResource(in nsIRDFResource aSource)

          
nsIRDFResource createBookmark(in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData)

          
nsIRDFResource createBookmarkInContainer(in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in nsIRDFResource aFolder, in long aIndex)

          
nsIRDFResource createFolder(in wstring aName)

          
nsIRDFResource createFolderInContainer(in wstring aName, in nsIRDFResource aParentFolder, in long aIndex)

          
nsIRDFResource createLivemark(in wstring aName, in wstring aURL, in wstring aRSSURL, in wstring aDescription)

          
nsIRDFResource createLivemarkInContainer(in wstring aName, in wstring aURL, in wstring aRSSURL, in wstring aDescription, in nsIRDFResource aFolder, in long aIndex)

          
nsIRDFResource createSeparator()

          
nsIRDFResource getBookmarksToolbarFolder()

          
nsIRDFResource getParent(in nsIRDFResource aSource)

From nsIBookmarksService_MOZILLA_1_8_BRANCH


          
nsIRDFResource createSeparatorInContainer(in nsIRDFResource aFolder, in long aIndex)

From nsIInternetSearchContext


          
nsIRDFResource GetEngine()

          
nsIRDFResource GetParent()

From nsIRDFContainerUtils

 Convert the specified index to an ordinal property.
nsIRDFResource IndexToOrdinalResource(in long aIndex)

From nsIRDFDataSource

 Find an RDF resource that points to a given node over the
 specified arc & truth value

 @return NS_RDF_NO_VALUE if there is no source that leads
 to the target with the specified property.
nsIRDFResource GetSource(in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)

From nsIRDFService


          
nsIRDFResource GetAnonymousResource()

          
nsIRDFResource GetResource(in AUTF8String aURI)

          
nsIRDFResource GetUnicodeResource(in AString aURI)

From nsIXULTreeBuilder

 Retrieve the RDF resource associated with the specified row.
nsIRDFResource getResourceAtIndex(in long aRowIndex)

Parameters

From nsIBookmarkTransactionManager

 Performs a new transaction according to the specified parameters

 @param aType         the type of transaction being performed.  Must be one
                      of the three constants defined below
 @param aAction       the action to be performed.  Expected values are:
                          import, insert, move, and remove (see bookmarks.js)
 @param aItem         the rdf node the transaction is being performed on
 @param aIndex        the index of the item in its RDF Container
 @param aParent       the rdf-parent of aItem, that is, the folder it
                      should be inserted into.
 @param aRemovedProps properties removed from the item in question
 
void createAndCommitTxn(in unsigned long aType, in AString aAction, in nsIRDFNode aItem, in long aIndex, in nsIRDFResource aParent, in unsigned long aPropCount, [array, size_is(aPropCount)] in nsIRDFLiteral aRemovedProps)

From nsIBookmarksService


          
nsIRDFResource createBookmarkInContainer(in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in nsIRDFResource aFolder, in long aIndex)

          
nsIRDFResource createLivemarkInContainer(in wstring aName, in wstring aURL, in wstring aRSSURL, in wstring aDescription, in nsIRDFResource aFolder, in long aIndex)

          
nsIRDFResource createFolderInContainer(in wstring aName, in nsIRDFResource aParentFolder, in long aIndex)

          
nsIRDFResource cloneResource(in nsIRDFResource aSource)

          
nsIRDFResource getParent(in nsIRDFResource aSource)

          
nsIArray getParentChain(in nsIRDFResource aSource)

          
boolean isBookmarkedResource(in nsIRDFResource aSource)

          
void setBookmarksToolbarFolder(in nsIRDFResource aSource)

From nsIBookmarksService_MOZILLA_1_8_BRANCH


          
nsIRDFResource createSeparatorInContainer(in nsIRDFResource aFolder, in long aIndex)

From nsIRDFContainer

 Initialize the container wrapper to the specified resource
 using the specified datasource for context.
void Init(in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer)

From nsIRDFContainerUtils

 Retrieve the index of element in the container. Returns -1 if
 the element is not in the container.
long indexOf(in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer, in nsIRDFNode aElement)
 Convert the specified ordinal property into an index
long OrdinalResourceToIndex(in nsIRDFResource aOrdinal)
 Returns 'true' if the property is an RDF ordinal property.
boolean IsOrdinalProperty(in nsIRDFResource aProperty)
 Return 'true' if the specified resource is an alternation
boolean IsAlt(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Return 'true' if the specified resource is a bag
boolean IsBag(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Return 'true' if the specified resource is a container
boolean IsContainer(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Return 'true' if the specified resource is a container and it is empty
boolean IsEmpty(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Return 'true' if the specified resource is a sequence
boolean IsSeq(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Decorates the specified resource appropriately to make it
 usable as an empty alternation in the specified data source.
nsIRDFContainer MakeAlt(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Decorates the specified resource appropriately to make it
 usable as an empty bag in the specified data source.
nsIRDFContainer MakeBag(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)
 Decorates the specified resource appropriately to make it
 usable as an empty sequence in the specified data source.
nsIRDFContainer MakeSeq(in nsIRDFDataSource aDataSource, in nsIRDFResource aResource)

From nsIRDFDataSource

 Returns true if the specified node is pointed to by the specified arc.
 Equivalent to enumerating ArcLabelsIn and comparing for the specified arc.
boolean hasArcIn(in nsIRDFNode aNode, in nsIRDFResource aArc)
 Returns true if the specified node has the specified outward arc.
 Equivalent to enumerating ArcLabelsOut and comparing for the specified arc.
boolean hasArcOut(in nsIRDFResource aSource, in nsIRDFResource aArc)
 Perform the specified command on set of sources.
void DoCommand(in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments)
 Returns whether a given command is enabled for a set of sources. 
boolean IsCommandEnabled(in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments)
 'Move' an assertion from

   [aOldSource]--[aProperty]-->[aTarget]

 to
 
   [aNewSource]--[aProperty]-->[aTarget]
void Move(in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 'Move' an assertion from

   [aOldSource]--[aProperty]-->[aTarget]

 to
 
   [aNewSource]--[aProperty]-->[aTarget]
void Move(in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 Add an assertion to the graph.
void Assert(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 Change an assertion from

   [aSource]--[aProperty]-->[aOldTarget]

 to
 
   [aSource]--[aProperty]-->[aNewTarget]
void Change(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget)
 Find an RDF resource that points to a given node over the
 specified arc & truth value

 @return NS_RDF_NO_VALUE if there is no source that leads
 to the target with the specified property.
nsIRDFResource GetSource(in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 Find all RDF resources that point to a given node over the
 specified arc & truth value

 @return NS_OK unless a catastrophic error occurs. If the
 method returns NS_OK, you may assume that nsISimpleEnumerator points
 to a valid (but possibly empty) cursor.
nsISimpleEnumerator GetSources(in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 Find a child of that is related to the source by the given arc
 arc and truth value

 @return NS_RDF_NO_VALUE if there is no target accessable from the
 source via the specified property.
nsIRDFNode GetTarget(in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue)
 Find all children of that are related to the source by the given arc
 arc and truth value.

 @return NS_OK unless a catastrophic error occurs. If the
 method returns NS_OK, you may assume that nsISimpleEnumerator points
 to a valid (but possibly empty) cursor.
nsISimpleEnumerator GetTargets(in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue)
 Query whether an assertion exists in this graph.
boolean HasAssertion(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 'Move' an assertion from

   [aOldSource]--[aProperty]-->[aTarget]

 to
 
   [aNewSource]--[aProperty]-->[aTarget]
void Move(in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 Remove an assertion from the graph.
void Unassert(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 Get a cursor to iterate over all the arcs that originate in
 a resource.

 @return NS_OK unless a catastrophic error occurs. If the method
 returns NS_OK, you may assume that labels points to a valid (but
 possible empty) nsISimpleEnumerator object.
nsISimpleEnumerator ArcLabelsOut(in nsIRDFResource aSource)
 Add an assertion to the graph.
void Assert(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 Change an assertion from

   [aSource]--[aProperty]-->[aOldTarget]

 to
 
   [aSource]--[aProperty]-->[aNewTarget]
void Change(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget)
 Returns the set of all commands defined for a given source.
nsISimpleEnumerator GetAllCmds(in nsIRDFResource aSource)
 Find a child of that is related to the source by the given arc
 arc and truth value

 @return NS_RDF_NO_VALUE if there is no target accessable from the
 source via the specified property.
nsIRDFNode GetTarget(in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue)
 Find all children of that are related to the source by the given arc
 arc and truth value.

 @return NS_OK unless a catastrophic error occurs. If the
 method returns NS_OK, you may assume that nsISimpleEnumerator points
 to a valid (but possibly empty) cursor.
nsISimpleEnumerator GetTargets(in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue)
 Query whether an assertion exists in this graph.
boolean HasAssertion(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)
 Remove an assertion from the graph.
void Unassert(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 Returns true if the specified node has the specified outward arc.
 Equivalent to enumerating ArcLabelsOut and comparing for the specified arc.
boolean hasArcOut(in nsIRDFResource aSource, in nsIRDFResource aArc)

From nsIRDFDelegateFactory

 Create a delegate for the specified RDF resource.

 The created delegate should forward AddRef() and Release()
 calls to the aOuter object.
void CreateDelegate(in nsIRDFResource aOuter, in string aKey, in nsIIDRef aIID, [retval, iid_is(aIID)] out nsQIResult aResult)

From nsIRDFInMemoryDataSource


          
void EnsureFastContainment(in nsIRDFResource aSource)

From nsIRDFObserver

 This method is called when the subject of an assertion
 changes from one value to another.
 @param aDataSource the datasource that is issuing
   the notification.
 @param aOldSource the old subject of the assertion
 @param aNewSource the new subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onMove(in nsIRDFDataSource aDataSource, in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called when the subject of an assertion
 changes from one value to another.
 @param aDataSource the datasource that is issuing
   the notification.
 @param aOldSource the old subject of the assertion
 @param aNewSource the new subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onMove(in nsIRDFDataSource aDataSource, in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called whenever a new assertion is made
 in the data source
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onAssert(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called when the object of an assertion
 changes from one value to another.
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aOldTarget the old object of the assertion
 @param aNewTarget the new object of the assertion
void onChange(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget)
 This method is called when the subject of an assertion
 changes from one value to another.
 @param aDataSource the datasource that is issuing
   the notification.
 @param aOldSource the old subject of the assertion
 @param aNewSource the new subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onMove(in nsIRDFDataSource aDataSource, in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called whenever an assertion is removed
 from the data source
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onUnassert(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called whenever a new assertion is made
 in the data source
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onAssert(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)
 This method is called when the object of an assertion
 changes from one value to another.
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aOldTarget the old object of the assertion
 @param aNewTarget the new object of the assertion
void onChange(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget)
 This method is called whenever an assertion is removed
 from the data source
 @param aDataSource the datasource that is issuing
   the notification.
 @param aSource the subject of the assertion
 @param aProperty the predicate of the assertion
 @param aTarget the object of the assertion
void onUnassert(in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget)

From nsIRDFPurgeableDataSource


          
boolean Mark(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)

          
boolean Mark(in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue)

From nsIRDFService


          
boolean IsAnonymousResource(in nsIRDFResource aResource)

          
void RegisterResource(in nsIRDFResource aResource, in boolean aReplace)

          
void UnregisterResource(in nsIRDFResource aResource)

From nsIXULTreeBuilder

 Retrieve the index associated with specified RDF resource.
long getIndexOfResource(in nsIRDFResource resource)

From rdfITripleVisitor

 Callback function for returning query results.

 @param aSubject, aPredicate, aObject describe the (sub-)arc
 @returnCode NS_RDF_STOP_VISIT to stop iterating over the query result.
             Any error code will stop the iteration as well.
void visit(in nsIRDFNode aSubject, in nsIRDFResource aPredicate, in nsIRDFNode aObject, in boolean aTruthValue)