Smack

org.jivesoftware.smackx.packet
Class DiscoverInfo.Identity

java.lang.Object
  extended by org.jivesoftware.smackx.packet.DiscoverInfo.Identity
Enclosing class:
DiscoverInfo

public static class DiscoverInfo.Identity
extends Object

Represents the identity of a given XMPP entity. An entity may have many identities but all the identities SHOULD have the same name.

Refer to Jabber::Registrar in order to get the official registry of values for the category and type attributes.


Constructor Summary
DiscoverInfo.Identity(String category, String name)
          Creates a new identity for an XMPP entity.
 
Method Summary
 String getCategory()
          Returns the entity's category.
 String getName()
          Returns the identity's name.
 String getType()
          Returns the entity's type.
 void setType(String type)
          Sets the entity's type.
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoverInfo.Identity

public DiscoverInfo.Identity(String category,
                             String name)
Creates a new identity for an XMPP entity.

Parameters:
category - the entity's category.
name - the entity's name.
Method Detail

getCategory

public String getCategory()
Returns the entity's category. To get the official registry of values for the 'category' attribute refer to Jabber::Registrar

Returns:
the entity's category.

getName

public String getName()
Returns the identity's name.

Returns:
the identity's name.

getType

public String getType()
Returns the entity's type. To get the official registry of values for the 'type' attribute refer to Jabber::Registrar

Returns:
the entity's type.

setType

public void setType(String type)
Sets the entity's type. To get the official registry of values for the 'type' attribute refer to Jabber::Registrar

Parameters:
type - the identity's type.

toXML

public String toXML()

Smack

Copyright © 2003 Jive Software.