T - The type of result.public abstract class AbstractMappingStrategy<T> extends Object implements MappingStrategy<T>
MappingStrategy instances that includes
support for field renaming/aliasing.| Modifier and Type | Field and Description |
|---|---|
private boolean |
multipleResultsAnError
Whether a result set with more than one result is an error.
|
private boolean |
noResultAnError
Whether an empty result set is an error.
|
private Map<String,String> |
resultRenamingMap
A map to rename result fields.
|
| Constructor and Description |
|---|
AbstractMappingStrategy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getResultRenamingMap()
Get an unmodifiable view of a map of aliasing rules.
|
boolean |
isMultipleResultsAnError()
Gets whether multiple results is treated as an error.
|
boolean |
isNoResultAnError()
Gets whether an empty result set is treated as an error.
|
void |
setMultipleResultsAnError(boolean isAnError)
Sets whether multiple results is treated as an error.
|
void |
setNoResultAnError(boolean isAnError)
Sets whether an empty result set is treated as an error.
|
void |
setResultRenamingMap(Map<String,String> map)
Set the map of aliasing rules.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap@Nonnull @NonnullElements private Map<String,String> resultRenamingMap
private boolean noResultAnError
private boolean multipleResultsAnError
@Nonnull @NonnullElements @Unmodifiable @NotLive public Map<String,String> getResultRenamingMap()
public void setResultRenamingMap(@Nonnull@NonnullElements Map<String,String> map)
map - map of result field names to alternate field namespublic boolean isNoResultAnError()
public void setNoResultAnError(boolean isAnError)
isAnError - whether an empty result set is treated as an errorpublic boolean isMultipleResultsAnError()
public void setMultipleResultsAnError(boolean isAnError)
isAnError - whether multiple results is treated as an errorCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.