Class Annotation
- java.lang.Object
-
- rocks.xmpp.extensions.privatedata.rosternotes.model.Annotation
-
public final class Annotation extends Object
The implementation of the<storage/>
element in thestorage:rosternotes
namespace.Many modern IM clients offer functionality that enables users to make notes about items in their roster. This comes in handy if users don't have meaningful information in their vCard or if you need to remember additional things related to a roster item.
This specification defines a protocol for storing annotations about a given set of entities. Its primary goal is to enable users to store some personal piece of information with their roster items.
Annotations are stored using server-side private XML storage (the 'jabber:iq:private' namespace).
- See Also:
- XEP-0145: Annotations, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Annotation.Note
Represents a note for a contact in the roster (roster item).
-
Constructor Summary
Constructors Constructor Description Annotation(Collection<Annotation.Note> notes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Annotation.Note>
getNotes()
Gets the roster notes.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
storage:rosternotes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Annotation
public Annotation(Collection<Annotation.Note> notes)
-
-
Method Detail
-
getNotes
public final List<Annotation.Note> getNotes()
Gets the roster notes.- Returns:
- The notes.
-
-