Class StringField
java.lang.Object
org.basepom.mojo.propertyhelper.Field<String,StringDefinition>
org.basepom.mojo.propertyhelper.fields.StringField
-
Constructor Summary
ConstructorDescriptionStringField
(StringDefinition stringDefinition, ValueProvider valueProvider, FieldContext fieldContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringField
forTesting
(StringDefinition stringDefinition, ValueProvider valueProvider) The name of the field.getValue()
The value of the field.toString()
Methods inherited from class org.basepom.mojo.propertyhelper.Field
isExposeAsProperty
-
Constructor Details
-
StringField
public StringField(StringDefinition stringDefinition, ValueProvider valueProvider, FieldContext fieldContext)
-
-
Method Details
-
forTesting
public static StringField forTesting(StringDefinition stringDefinition, ValueProvider valueProvider) -
getFieldName
Description copied from class:Field
The name of the field.- Specified by:
getFieldName
in classField<String,
StringDefinition>
-
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,
StringDefinition>
-
toString
-