nsISupports
Last changed in Gecko 1.9 (Firefox 3)The following methods return objects that implement this interface:
Components.interfaces.name Components.classes[contract] Components.interfacesById[uuid] Components.classesById[cid]
The first two cases create a named JSID while the last two cases create an unnamed JSID. An unnamed JSID also results when you implement a function that is passed an nsIIDRef parameter, such as QueryInterface(). Note that for these cases of JSID the specified class or interface must exist and be scriptable.
boolean equals(in nsIJSID other); |
const nsID* getID(); Violates the XPCOM interface guidelines |
void initialize(in string idString); |
string toString(); |
| Attribute | Type | Description |
id | | Read only. Native code only! Obsolete since Gecko 1.9 The internal nsID. |
name | string | Read only. The name of the JSID, if it was set. |
number | string | Read only. The string representation of the internal nsID. |
valid | boolean | Read only. Returns true if the JSID has been initialised. |
This method determines if this nsIJSID has the same nsID as another nsIJSID.
boolean equals( in nsIJSID other );
othernsIJSID to compare to.true if the nsIJSID's are valid and have the same nsID, otherwise false.
const nsID* getID();
None.
A pointer to the internal nsID structure.
Initializes the JSID.
void initialize( in string idString );
idString{00000000-0000-0000-c000-000000000046}. A JSID can only be initialized once.This methods returns a string representation of the object.
string toString();
None.
The name of the JSID if it has one, otherwise the string representation of its nsID.