Class RecipientData
- java.lang.Object
-
- com.levigo.jadice.server.javamail.domain.RecipientData
-
public class RecipientData extends Object
Instances of this class contain all the recipient data that can be extracted from a given JNEF message. This class is used to determine which mapi properties represent one single recipient data set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecipientData.Attribute
Instead of creating a fixed structure here, we create a mapping of "attribute"-names to their mapi key counterparts.static class
RecipientData.RecipientType
-
Constructor Summary
Constructors Constructor Description RecipientData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(RecipientData.Attribute attribute, String value)
This method allows to add attribute information to a recipient object.Optional<String>
getAttributeValue(RecipientData.Attribute attribute)
This method allows access to an attribute value of a recipient data object by providing an attribute enum value.boolean
isEmpty()
This method return it the attribute map is empty.
-
-
-
Method Detail
-
addAttribute
public void addAttribute(RecipientData.Attribute attribute, String value)
This method allows to add attribute information to a recipient object.- Parameters:
attribute
- the attribute.value
- the extracted mapiProp value that shall serve as the corresponding value.
-
getAttributeValue
public Optional<String> getAttributeValue(RecipientData.Attribute attribute)
This method allows access to an attribute value of a recipient data object by providing an attribute enum value.- Parameters:
attribute
- the attribute enum value.- Returns:
- an Optional of the attribute's value.
-
isEmpty
public boolean isEmpty()
This method return it the attribute map is empty.- Returns:
true
if the attribute map is emtpy, otherwisefalse
.
-
-