Class Annotation.Note
- java.lang.Object
-
- rocks.xmpp.extensions.privatedata.rosternotes.model.Annotation.Note
-
- All Implemented Interfaces:
Addressable
- Enclosing class:
- Annotation
public static final class Annotation.Note extends Object implements Addressable
Represents a note for a contact in the roster (roster item).
-
-
Constructor Summary
Constructors Constructor Description Note(String note, Jid jid)
Creates a roster note.Note(String note, Jid jid, OffsetDateTime creationDate, OffsetDateTime modificationDate)
Creates a roster note.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getCreationDate()
Gets the creation date.Jid
getJid()
Gets the JID of the contact (roster item).OffsetDateTime
getModificationDate()
Gets the modification date.String
getValue()
Gets the value of the note.String
toString()
-
-
-
Constructor Detail
-
Note
public Note(String note, Jid jid)
Creates a roster note.- Parameters:
note
- The note.jid
- The 'jid' attribute of the<note/>
element SHOULD be used without a resource.
-
Note
public Note(String note, Jid jid, OffsetDateTime creationDate, OffsetDateTime modificationDate)
Creates a roster note.- Parameters:
note
- The note.jid
- The JID of the contact.creationDate
- The creation date (optional).modificationDate
- The modification date (optional).
-
-
Method Detail
-
getValue
public final String getValue()
Gets the value of the note.- Returns:
- The value.
-
getModificationDate
public final OffsetDateTime getModificationDate()
Gets the modification date.- Returns:
- The modification date.
-
getCreationDate
public final OffsetDateTime getCreationDate()
Gets the creation date.- Returns:
- The creation date.
-
getJid
public final Jid getJid()
Gets the JID of the contact (roster item).- Specified by:
getJid
in interfaceAddressable
- Returns:
- The JID.
-
-