public abstract class BaseValidator
extends net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
| Constructor and Description |
|---|
BaseValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addError(String message,
Item<?> item,
String stageId)
Add an
ErrorStatus to the given Item. |
protected void |
addStatus(boolean error,
String message,
Item<?> item,
String stageId)
|
protected void |
addWarning(String message,
Item<?> item,
String stageId)
Add a
WarningStatus to the given Item. |
private String |
makeComponentId(String stageId)
Construct a modified component identifier from the stage identifier and the
validator identifier.
|
setIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedprivate String makeComponentId(@Nonnull String stageId)
stageId - identifier for the calling stageprotected void addError(@Nonnull String message, @Nonnull Item<?> item, @Nonnull String stageId)
ErrorStatus to the given Item.message - message to include in the status metadataitem - Item to add the status metadata tostageId - component identifier for the calling stageprotected void addWarning(@Nonnull String message, @Nonnull Item<?> item, @Nonnull String stageId)
WarningStatus to the given Item.message - message to include in the status metadataitem - Item to add the status metadata tostageId - component identifier for the calling stageprotected void addStatus(boolean error,
@Nonnull
String message,
@Nonnull
Item<?> item,
@Nonnull
String stageId)
error - true if an ErrorStatus should be addedmessage - message to include in the status metadataitem - Item to add the status metadata tostageId - component identifier for the calling stageCopyright © 1999–2016. All rights reserved.