Public Member Functions

nsIRDFContainerUtils Interface Reference

import "nsIRDFContainerUtils.idl";

List of all members.

Public Member Functions

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

Member Function Documentation

long nsIRDFContainerUtils::indexOf ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aContainer,
in nsIRDFNode  aElement 
)

Retrieve the index of element in the container.

Returns -1 if the element is not in the container.

nsIRDFResource nsIRDFContainerUtils::IndexToOrdinalResource ( in long  aIndex  ) 

Convert the specified index to an ordinal property.

boolean nsIRDFContainerUtils::IsAlt ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Return 'true' if the specified resource is an alternation.

boolean nsIRDFContainerUtils::IsBag ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Return 'true' if the specified resource is a bag.

boolean nsIRDFContainerUtils::IsContainer ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Return 'true' if the specified resource is a container.

boolean nsIRDFContainerUtils::IsEmpty ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Return 'true' if the specified resource is a container and it is empty.

boolean nsIRDFContainerUtils::IsOrdinalProperty ( in nsIRDFResource  aProperty  ) 

Returns 'true' if the property is an RDF ordinal property.

boolean nsIRDFContainerUtils::IsSeq ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Return 'true' if the specified resource is a sequence.

nsIRDFContainer nsIRDFContainerUtils::MakeAlt ( 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 nsIRDFContainerUtils::MakeBag ( 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 nsIRDFContainerUtils::MakeSeq ( in nsIRDFDataSource  aDataSource,
in nsIRDFResource  aResource 
)

Decorates the specified resource appropriately to make it usable as an empty sequence in the specified data source.

long nsIRDFContainerUtils::OrdinalResourceToIndex ( in nsIRDFResource  aOrdinal  ) 

Convert the specified ordinal property into an index.


The documentation for this interface was generated from the following file: