com.beem.project.beem.smack.caps
Class CapsExtension

Package class diagram package CapsExtension
java.lang.Object
  extended by com.beem.project.beem.smack.caps.CapsExtension
All Implemented Interfaces:
PacketExtension

public class CapsExtension
extends Object
implements PacketExtension

This extension represents a capability of XEP-0115.


Constructor Summary
CapsExtension(String hash, String node, String ver)
          Create a CapsExtension.
 
Method Summary
 String getElementName()
           
 String getExt()
          Get the ext attribute value.
 String getHash()
          Get the hash attribute value.
 String getNamespace()
           
 String getNode()
          Get the node attribute value.
 String getVer()
          Get the ver attribute value.
 void setExt(String ext)
          Set the ext attribute.
 void setHash(String hash)
          Set the hash attribute.
 void setNode(String node)
          Set the node attribute.
 void setVer(String ver)
          Set the ver attribute.
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapsExtension

public CapsExtension(String hash,
                     String node,
                     String ver)
Create a CapsExtension.

Parameters:
hash - The value of the hash attribute.
node - the value of the node attribute
ver - the value of the ver attribute.
Method Detail

getVer

public String getVer()
Get the ver attribute value.

Returns:
the value of the ver attribute.

getHash

public String getHash()
Get the hash attribute value.

Returns:
the value of the hash attribute.

getNode

public String getNode()
Get the node attribute value.

Returns:
the value of the node attribute.

getExt

public String getExt()
Get the ext attribute value.

Returns:
the value of the ext attribute.

setHash

public void setHash(String hash)
Set the hash attribute.

Parameters:
hash - the value of hash

setVer

public void setVer(String ver)
Set the ver attribute.

Parameters:
ver - the value of ver

setNode

public void setNode(String node)
Set the node attribute.

Parameters:
node - the value of node

setExt

public void setExt(String ext)
Set the ext attribute.

Parameters:
ext - the value of ext

getElementName

public String getElementName()
Specified by:
getElementName in interface PacketExtension

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface PacketExtension

toXML

public String toXML()
Specified by:
toXML in interface PacketExtension


Copyright © 2009 Beem-project.com. All Rights Reserved.