Class ProblemDetectingValueSource

  • All Implemented Interfaces:
    org.codehaus.plexus.interpolation.ValueSource

    class ProblemDetectingValueSource
    extends java.lang.Object
    implements org.codehaus.plexus.interpolation.ValueSource
    Wraps another value source and intercepts interpolated expressions, checking for problems.
    • Field Detail

      • valueSource

        private final org.codehaus.plexus.interpolation.ValueSource valueSource
      • bannedPrefix

        private final java.lang.String bannedPrefix
      • newPrefix

        private final java.lang.String newPrefix
    • Constructor Detail

      • ProblemDetectingValueSource

        ProblemDetectingValueSource​(org.codehaus.plexus.interpolation.ValueSource valueSource,
                                    java.lang.String bannedPrefix,
                                    java.lang.String newPrefix,
                                    ModelProblemCollector problems)
    • Method Detail

      • getValue

        public java.lang.Object getValue​(java.lang.String expression)
        Specified by:
        getValue in interface org.codehaus.plexus.interpolation.ValueSource
      • getFeedback

        public java.util.List getFeedback()
        Specified by:
        getFeedback in interface org.codehaus.plexus.interpolation.ValueSource
      • clearFeedback

        public void clearFeedback()
        Specified by:
        clearFeedback in interface org.codehaus.plexus.interpolation.ValueSource