Class IncomingMessageAnalyzerResult
- java.lang.Object
-
- com.novomind.ecom.api.imail.core.result.IncomingMessageAnalyzerResult
-
public final class IncomingMessageAnalyzerResult extends java.lang.Object
The IncomingMessageAnalyzerResult is the returned object of the extension pointIncomingMessageAnalyzer
. It contains allAnalyzerDecision
s made during one call ofanalyzeIncomingMessage
.- Since:
- 11.15
-
-
Field Summary
Fields Modifier and Type Field Description static IncomingMessageAnalyzerResult
UNMODIFIED
An IncomingMessageAnalyzerResult which contains noAnalyzerDecision
s.
Adding Decisions to this shared instance will throw anUnsupportedOperationException
-
Constructor Summary
Constructors Constructor Description IncomingMessageAnalyzerResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncomingMessageAnalyzerResult
addCategoryDecision(CategoryAnalyzerDecision decision)
Adds a CategoryAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal CategoryAnalyzerDecision.IncomingMessageAnalyzerResult
addConfirmationTemplateDecision(TemplateAnalyzerDecision decision)
Adds a TemplateAnalyzerDecision for confirmation templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.IncomingMessageAnalyzerResult
addLanguageDecision(LanguageAnalyzerDecision decision)
Adds a LanguageAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LanguageAnalyzerDecision.IncomingMessageAnalyzerResult
addLocationDecision(LocationAnalyzerDecision decision)
Adds a LocationAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LocationAnalyzerDecision.IncomingMessageAnalyzerResult
addSuggestionTemplateDecision(TemplateAnalyzerDecision decision)
Adds a TemplateAnalyzerDecision for suggestion templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.java.util.SortedSet<CategoryAnalyzerDecision>
getCategoryDecisions()
java.util.SortedSet<TemplateAnalyzerDecision>
getConfirmationTemplateDecisions()
java.util.SortedSet<LanguageAnalyzerDecision>
getLanguageDecisions()
java.util.SortedSet<LocationAnalyzerDecision>
getLocationDecisions()
java.util.SortedSet<TemplateAnalyzerDecision>
getSuggestionTemplateDecisions()
boolean
isUnmodified()
-
-
-
Field Detail
-
UNMODIFIED
public static final IncomingMessageAnalyzerResult UNMODIFIED
An IncomingMessageAnalyzerResult which contains noAnalyzerDecision
s.
Adding Decisions to this shared instance will throw anUnsupportedOperationException
- Since:
- 11.15
-
-
Method Detail
-
isUnmodified
public boolean isUnmodified()
- Returns:
- true if this instace is an
UNMODIFIED
Result - Since:
- 11.15
-
addCategoryDecision
public IncomingMessageAnalyzerResult addCategoryDecision(CategoryAnalyzerDecision decision)
Adds a CategoryAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal CategoryAnalyzerDecision.- Parameters:
decision
- aCategoryAnalyzerDecision
- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addLanguageDecision
public IncomingMessageAnalyzerResult addLanguageDecision(LanguageAnalyzerDecision decision)
Adds a LanguageAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LanguageAnalyzerDecision.- Parameters:
decision
- aLanguageAnalyzerDecision
- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addLocationDecision
public IncomingMessageAnalyzerResult addLocationDecision(LocationAnalyzerDecision decision)
Adds a LocationAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LocationAnalyzerDecision.- Parameters:
decision
- aLocationAnalyzerDecision
- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addSuggestionTemplateDecision
public IncomingMessageAnalyzerResult addSuggestionTemplateDecision(TemplateAnalyzerDecision decision)
Adds a TemplateAnalyzerDecision for suggestion templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.- Parameters:
decision
- aTemplateAnalyzerDecision
- Returns:
- the instance for fluent usage
- Since:
- 12.31
-
addConfirmationTemplateDecision
public IncomingMessageAnalyzerResult addConfirmationTemplateDecision(TemplateAnalyzerDecision decision)
Adds a TemplateAnalyzerDecision for confirmation templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.- Parameters:
decision
- aTemplateAnalyzerDecision
- Returns:
- the instance for fluent usage
- Since:
- 12.31
-
getCategoryDecisions
public java.util.SortedSet<CategoryAnalyzerDecision> getCategoryDecisions()
- Returns:
- the
SortedSet
ofCategoryAnalyzerDecision
s - Since:
- 11.15
-
getLanguageDecisions
public java.util.SortedSet<LanguageAnalyzerDecision> getLanguageDecisions()
- Returns:
- the
SortedSet
ofLanguageAnalyzerDecision
s - Since:
- 11.15
-
getLocationDecisions
public java.util.SortedSet<LocationAnalyzerDecision> getLocationDecisions()
- Returns:
- the
SortedSet
ofLocationAnalyzerDecision
s - Since:
- 11.15
-
getSuggestionTemplateDecisions
public java.util.SortedSet<TemplateAnalyzerDecision> getSuggestionTemplateDecisions()
- Returns:
- the
SortedSet
ofTemplateAnalyzerDecision
s for the suggestion template - Since:
- 12.31
-
getConfirmationTemplateDecisions
public java.util.SortedSet<TemplateAnalyzerDecision> getConfirmationTemplateDecisions()
- Returns:
- the
SortedSet
ofTemplateAnalyzerDecision
s for the confirmation template - Since:
- 12.31
-
-