nsIRDFContainerUtils
| IID: | D4214E91-FB94-11D2-BDD8-00104BDE6048 |
| Inherits From: | nsISupports |
This interface is intended to be used as a service. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/rdf/container-utils;1"].
getService(Components.interfaces.nsIRDFContainerUtils);This interface is implemented by the following components:
Methods
PRInt32 indexOf ( nsIRDFDataSource dataSource , nsIRDFResource container , nsIRDFNode element )
nsIRDFResource IndexToOrdinalResource ( PRInt32 index )
PRBool IsAlt ( nsIRDFDataSource dataSource , nsIRDFResource resource )
PRBool IsBag ( nsIRDFDataSource dataSource , nsIRDFResource resource )
PRBool IsContainer ( nsIRDFDataSource dataSource , nsIRDFResource resource )
PRBool IsEmpty ( nsIRDFDataSource dataSource , nsIRDFResource resource )
PRBool IsOrdinalProperty ( nsIRDFResource property )
PRBool IsSeq ( nsIRDFDataSource dataSource , nsIRDFResource resource )
nsIRDFContainer MakeAlt ( nsIRDFDataSource dataSource , nsIRDFResource resource )
nsIRDFContainer MakeBag ( nsIRDFDataSource dataSource , nsIRDFResource resource )
nsIRDFContainer MakeSeq ( nsIRDFDataSource dataSource , nsIRDFResource resource )
PRInt32 OrdinalResourceToIndex ( nsIRDFResource ordinal )
PRInt32 indexOf ( nsIRDFDataSource dataSource , nsIRDFResource container , nsIRDFNode element )
Retrieve the index of element in the container. Returns -1 if the element is not in the container.
- Arguments:
- dataSource
- container
- element
nsIRDFResource IndexToOrdinalResource ( PRInt32 index )
Convert the specified index to an ordinal property.
- Arguments:
- index
PRBool IsAlt ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Return 'true' if the specified resource is an alternation
- Arguments:
- dataSource
- resource
PRBool IsBag ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Return 'true' if the specified resource is a bag
- Arguments:
- dataSource
- resource
PRBool IsContainer ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Return 'true' if the specified resource is a container
- Arguments:
- dataSource
- resource
PRBool IsEmpty ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Return 'true' if the specified resource is a container and it is empty
- Arguments:
- dataSource
- resource
PRBool IsOrdinalProperty ( nsIRDFResource property )
Returns 'true' if the property is an RDF ordinal property.
- Arguments:
- property
PRBool IsSeq ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Return 'true' if the specified resource is a sequence
- Arguments:
- dataSource
- resource
nsIRDFContainer MakeAlt ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Decorates the specified resource appropriately to make it usable as an empty alternation in the specified data source.
- Arguments:
- dataSource
- resource
nsIRDFContainer MakeBag ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Decorates the specified resource appropriately to make it usable as an empty bag in the specified data source.
- Arguments:
- dataSource
- resource
nsIRDFContainer MakeSeq ( nsIRDFDataSource dataSource , nsIRDFResource resource )
Decorates the specified resource appropriately to make it usable as an empty sequence in the specified data source.
- Arguments:
- dataSource
- resource
PRInt32 OrdinalResourceToIndex ( nsIRDFResource ordinal )
Convert the specified ordinal property into an index
- Arguments:
- ordinal
Reference documentation is generated from Mozilla's source.
