public class ParsedReferenceMatchStrategy extends java.lang.Object implements IParsedMatchStrategy
DEFAULT_PARSED_COLLECTION_MATCH_MODE, DEFAULT_PARSED_MATCH_MATCH_MODE, DEFAULT_PARSED_MATCH_MODE
DEFAULT_COLLECTION_MATCH_MODE, DEFAULT_MATCH_MATCH_MODE, DEFAULT_MATCH_MODE
Constructor and Description |
---|
ParsedReferenceMatchStrategy() |
Modifier and Type | Method and Description |
---|---|
Matching |
getMatching()
Returns the Matching of this match strategy
|
static ParsedReferenceMatchStrategy |
INSTANCE()
Immutable singleton instance.
|
<T extends IMatchable> |
invoke(T fullInstance,
T parsedInstance)
Invokes the match check.
|
<T extends IMatchable> |
invoke(T fullInstance,
T parsedInstance,
boolean failAll) |
<T extends IMatchable> |
invoke(T fullInstance,
T parsedInstance,
MatchResult matchResult,
boolean failAll) |
void |
setMatchMode(java.lang.String propertyName,
MatchMode matchMode)
Sets the match mode for property propertyName
|
void |
setMatchMode(java.lang.String propertyName,
MatchMode matchMode,
IMatchStrategy matchStrategy)
Sets the match mode for property propertyName using the given match strategy.
|
public static ParsedReferenceMatchStrategy INSTANCE()
public void setMatchMode(java.lang.String propertyName, MatchMode matchMode) throws MatchException
setMatchMode
in interface IMatchStrategy
MatchException
#setMatchMode(String, MatchMode, IMatchStrategy)}
public void setMatchMode(java.lang.String propertyName, MatchMode matchMode, IMatchStrategy matchStrategy) throws MatchException
match mode
is none of
the 4 MATCH* match modes like MatchMode.MATCH
or MatchMode.MATCH_REQUIRED
.setMatchMode
in interface IMatchStrategy
MatchException
#setMatchMode(String, MatchMode)}
public Matching getMatching()
getMatching
in interface IMatchStrategy
public <T extends IMatchable> MatchResult invoke(T fullInstance, T parsedInstance) throws MatchException
invoke
in interface IMatchStrategy
invoke
in interface IParsedMatchStrategy
fullInstance
- The more complete instanceparsedInstance
- The parsed instance having only few attributes definedMatchException
public <T extends IMatchable> MatchResult invoke(T fullInstance, T parsedInstance, boolean failAll) throws MatchException
invoke
in interface IMatchStrategy
MatchException
public <T extends IMatchable> void invoke(T fullInstance, T parsedInstance, MatchResult matchResult, boolean failAll) throws MatchException
invoke
in interface IMatchStrategy
MatchException
Copyright © 2007-2020 EDIT. All Rights Reserved.