Class BaseFormat

  • All Implemented Interfaces:
    Format
    Direct Known Subclasses:
    AbstractFormat

    @Deprecated
    public abstract class BaseFormat
    extends java.lang.Object
    implements Format
    Deprecated.
    Base implementation of Format.
    • Field Detail

      • name

        private final java.lang.String name
        Deprecated.
      • errorMessageDescription

        private final java.lang.String errorMessageDescription
        Deprecated.
    • Constructor Detail

      • BaseFormat

        public BaseFormat​(java.lang.String name,
                          java.lang.String errorMessageDescription)
        Deprecated.
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Description copied from interface: Format
        Gets the format name.
        Specified by:
        getName in interface Format
        Returns:
        the format name as referred to in a json schema format node.
      • getErrorMessageDescription

        public java.lang.String getErrorMessageDescription()
        Deprecated.
        Description copied from interface: Format
        Gets the error message description.

        Deprecated. Override getMessageKey() and set the localized message in the resource bundle or message source.

        Specified by:
        getErrorMessageDescription in interface Format
        Returns:
        the error message description.