Class MacroField
java.lang.Object
org.basepom.mojo.propertyhelper.Field<String,MacroDefinition>
org.basepom.mojo.propertyhelper.fields.MacroField
-
Constructor Summary
ConstructorDescriptionMacroField
(MacroDefinition macroDefinition, ValueProvider valueProvider, FieldContext context) -
Method Summary
Modifier and TypeMethodDescriptionstatic MacroField
forTesting
(MacroDefinition dateDefinition, ValueProvider valueProvider, FieldContext fieldContext) The name of the field.getValue()
The value of the field.toString()
Methods inherited from class org.basepom.mojo.propertyhelper.Field
isExposeAsProperty
-
Constructor Details
-
MacroField
public MacroField(MacroDefinition macroDefinition, ValueProvider valueProvider, FieldContext context)
-
-
Method Details
-
forTesting
public static MacroField forTesting(MacroDefinition dateDefinition, ValueProvider valueProvider, FieldContext fieldContext) -
getFieldName
Description copied from class:Field
The name of the field.- Specified by:
getFieldName
in classField<String,
MacroDefinition>
-
getValue
Description copied from class:Field
The value of the field.Optional.empty()
can be returned if the value is not defined.- Specified by:
getValue
in classField<String,
MacroDefinition> - Throws:
org.apache.maven.plugin.MojoExecutionException
-
toString
-