Class UnknownKeywordFactory

  • All Implemented Interfaces:
    KeywordFactory

    public class UnknownKeywordFactory
    extends java.lang.Object
    implements KeywordFactory
    Unknown keyword factory.

    This treats unknown keywords as annotations.

    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • keywords

        private final java.util.Map<java.lang.String,​Keyword> keywords
    • Constructor Detail

      • UnknownKeywordFactory

        public UnknownKeywordFactory()
    • Method Detail

      • getKeyword

        public Keyword getKeyword​(java.lang.String value,
                                  ValidationContext validationContext)
        Description copied from interface: KeywordFactory
        Gets the keyword given the keyword value.
        Specified by:
        getKeyword in interface KeywordFactory
        Parameters:
        value - the keyword value
        validationContext - the validationContext
        Returns:
        the keyword