Class ProblemDetectingValueSource
- java.lang.Object
-
- org.apache.maven.model.interpolation.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 Summary
Fields Modifier and Type Field Description private java.lang.String
bannedPrefix
private java.lang.String
newPrefix
private ModelProblemCollector
problems
private org.codehaus.plexus.interpolation.ValueSource
valueSource
-
Constructor Summary
Constructors Constructor Description ProblemDetectingValueSource(org.codehaus.plexus.interpolation.ValueSource valueSource, java.lang.String bannedPrefix, java.lang.String newPrefix, ModelProblemCollector problems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearFeedback()
java.util.List
getFeedback()
java.lang.Object
getValue(java.lang.String expression)
-
-
-
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
-
problems
private final ModelProblemCollector problems
-
-
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 interfaceorg.codehaus.plexus.interpolation.ValueSource
-
getFeedback
public java.util.List getFeedback()
- Specified by:
getFeedback
in interfaceorg.codehaus.plexus.interpolation.ValueSource
-
clearFeedback
public void clearFeedback()
- Specified by:
clearFeedback
in interfaceorg.codehaus.plexus.interpolation.ValueSource
-
-