Class DateField
java.lang.Object
org.basepom.mojo.propertyhelper.Field<ZonedDateTime,DateDefinition>
org.basepom.mojo.propertyhelper.fields.DateField
-
Constructor Summary
ConstructorDescriptionDateField
(DateDefinition dateDefinition, ValueProvider valueProvider, FieldContext fieldContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic DateField
forTesting
(DateDefinition dateDefinition, ValueProvider valueProvider) The name of the field.getValue()
The value of the field.boolean
True if the value of this element should be exposed as a maven property.toString()
-
Constructor Details
-
DateField
public DateField(DateDefinition dateDefinition, ValueProvider valueProvider, FieldContext fieldContext)
-
-
Method Details
-
forTesting
-
getFieldName
Description copied from class:Field
The name of the field.- Specified by:
getFieldName
in classField<ZonedDateTime,
DateDefinition>
-
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<ZonedDateTime,
DateDefinition>
-
isExposeAsProperty
Description copied from class:Field
True if the value of this element should be exposed as a maven property.- Overrides:
isExposeAsProperty
in classField<ZonedDateTime,
DateDefinition>
-
toString
-