com.beem.project.beem.smack.avatar
Class AvatarMetadataExtension.Info

Package class diagram package AvatarMetadataExtension.Info
java.lang.Object
  extended by com.beem.project.beem.smack.avatar.AvatarMetadataExtension.Info
Enclosing class:
AvatarMetadataExtension

public static class AvatarMetadataExtension.Info
extends Object

A metadata information element.


Constructor Summary
AvatarMetadataExtension.Info(String id, String type, int bytes)
          Create an Info.
 
Method Summary
 int getBytes()
          Set the size of the avatar in bytes.
 int getHeight()
          Get the height.
 String getId()
          Get the id.
 String getType()
          Get the MIME type of the avatar.
 String getUrl()
          Get the url.
 int getWidth()
          Get the width.
 void setBytes(int bytes)
          Set the size of the avatar in bytes.
 void setHeight(int height)
          Set the height.
 void setId(String id)
          Set the id.
 void setType(String type)
          Set the MIME type of the avatar.
 void setUrl(String url)
          Set the url.
 void setWidth(int width)
          Set the width.
 String toXML()
          Return this information as an xml element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarMetadataExtension.Info

public AvatarMetadataExtension.Info(String id,
                                    String type,
                                    int bytes)
Create an Info.

Parameters:
id - the id of the info
type - the MIME type of the avatar
bytes - the size of the avatar in bytes
Method Detail

setBytes

public void setBytes(int bytes)
Set the size of the avatar in bytes.

Parameters:
bytes - the size

getBytes

public int getBytes()
Set the size of the avatar in bytes.

Returns:
the size

setHeight

public void setHeight(int height)
Set the height.

Parameters:
height - the height

getHeight

public int getHeight()
Get the height.

Returns:
the height

setWidth

public void setWidth(int width)
Set the width.

Parameters:
width - the width

getWidth

public int getWidth()
Get the width.

Returns:
the width

setUrl

public void setUrl(String url)
Set the url.

Parameters:
url - the url

getUrl

public String getUrl()
Get the url.

Returns:
the url, null if no url is present

getId

public String getId()
Get the id.

Returns:
the id

setId

public void setId(String id)
Set the id.

Parameters:
id - the id

setType

public void setType(String type)
Set the MIME type of the avatar.

Parameters:
type - the type

getType

public String getType()
Get the MIME type of the avatar.

Returns:
the type, null if no type is present

toXML

public String toXML()
Return this information as an xml element.

Returns:
an xml element representing this information


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