Class BaseElementValidator

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.validate.BaseValidator
net.shibboleth.metadata.validate.element.BaseElementValidator
All Implemented Interfaces:
net.shibboleth.shared.component.Component, net.shibboleth.shared.component.DestructableComponent, net.shibboleth.shared.component.IdentifiableComponent, net.shibboleth.shared.component.IdentifiedComponent, net.shibboleth.shared.component.InitializableComponent
Direct Known Subclasses:
RejectMixedContentTextValidator

public abstract class BaseElementValidator extends BaseValidator
Base class for Element validators.

Implements a value context formatting strategy under the assumption that the value context will be the element's name.

Since:
1.0.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    formatValueContext(String valueContext)
    Formats a value context for presentation as a message prefix.

    Methods inherited from class net.shibboleth.metadata.validate.BaseValidator

    addError, addErrorMessage, addErrorMessage, addErrorMessage, addStatus, addWarning, getMessage, makeComponentId, setMessage

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent

    setId

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent

    doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException

    Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent

    checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitialized

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent

    getId
  • Constructor Details

    • BaseElementValidator

      protected BaseElementValidator(@Nonnull String message)
      Constructor.
      Parameters:
      message - default message format for this validator
  • Method Details

    • formatValueContext

      @Nonnull protected String formatValueContext(@Nullable String valueContext)
      Description copied from class: BaseValidator
      Formats a value context for presentation as a message prefix.

      If there is no explicit value context, returns an empty string.

      Overrides:
      formatValueContext in class BaseValidator
      Parameters:
      valueContext - value context string, or null
      Returns:
      formatted value context prefix