new JSJaCJID
        Creates a new JSJaCJID object
    
    
    
    
    
    
        Parameters:
| Name | Type | Description | 
|---|---|---|
| jid | Object | jid may be either of type String or a JID represented by JSON with fields 'node', 'domain' and 'resource' | 
- Source:
- JSJaCJID.js, line 22
 
Throws:
    JSJaCJIDInvalidException Thrown if jid is not valid
        
    
    
    Returns:
    a new JSJaCJID object
        
    
    
Methods
- 
    clone
- 
    
    
    creates a copy of this JSJaCJID object- Source:
- JSJaCJID.js, line 155
 
 Returns:A copy of this
- 
    getBareJID
- 
    
    
    Gets the bare jid (i.e. the JID without resource)- Source:
- JSJaCJID.js, line 58
 
 Returns:A string representing the bare jid
- 
    getDomain
- 
    
    
    Gets the domain part of the jid- Source:
- JSJaCJID.js, line 74
 
 Returns:A string representing the domain name
- 
    getNode
- 
    
    
    Gets the node part of the jid- Source:
- JSJaCJID.js, line 67
 
 Returns:A string representing the node name
- 
    getResource
- 
    
    
    Gets the resource part of the jid- Source:
- JSJaCJID.js, line 81
 
 Returns:A string representing the resource
- 
    isEntity
- 
    
    
    Compares two jids if they belong to the same entity (i.e. w/o resource)Parameters:Name Type Description jidString a jid as string or JSJaCJID object - Source:
- JSJaCJID.js, line 165
 
 Returns:'true' if jid is same entity as this
- 
    removeResource
- 
    
    
    Removes the resource part of the jid- Source:
- JSJaCJID.js, line 146
 
 Returns:This object
- 
    setDomain
- 
    
    
    Sets the domain part of the jidParameters:Name Type Description domainString Name of the domain - Source:
- JSJaCJID.js, line 105
 
 Throws:JSJaCJIDInvalidException Thrown if domain name contains invalid chars or is emptyReturns:This object
- 
    setNode
- 
    
    
    Sets the node part of the jidParameters:Name Type Description nodeString Name of the node - Source:
- JSJaCJID.js, line 91
 
 Throws:JSJaCJIDInvalidException Thrown if node name contains invalid charsReturns:This object
- 
    setResource
- 
    
    
    Sets the resource part of the jidParameters:Name Type Description resourceString Name of the resource - Source:
- JSJaCJID.js, line 121
 
 Returns:This object
- 
    toString
- 
    
    
    The string representation of the full jid- Source:
- JSJaCJID.js, line 131
 
 Returns:A string representing the jid