Smack

org.jivesoftware.smackx.commands
Class AdHocCommandNote

java.lang.Object
  extended by org.jivesoftware.smackx.commands.AdHocCommandNote

public class AdHocCommandNote
extends Object

Notes can be added to a command execution response. A note has a type and value.

Author:
Gabriel Guardincerri

Nested Class Summary
static class AdHocCommandNote.Type
          Represents a note type.
 
Constructor Summary
AdHocCommandNote(AdHocCommandNote.Type type, String value)
          Creates a new adhoc command note with the specified type and value.
 
Method Summary
 AdHocCommandNote.Type getType()
          Return the type of the note.
 String getValue()
          Returns the value or message of the note.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHocCommandNote

public AdHocCommandNote(AdHocCommandNote.Type type,
                        String value)
Creates a new adhoc command note with the specified type and value.

Parameters:
type - the type of the note.
value - the value of the note.
Method Detail

getValue

public String getValue()
Returns the value or message of the note.

Returns:
the value or message of the note.

getType

public AdHocCommandNote.Type getType()
Return the type of the note.

Returns:
the type of the note.

Smack

Copyright © 2003-2007 Jive Software.