Interface DateRangeField<F extends DateRangeField<F>>
- All Superinterfaces:
Comparable<F>,Component<F>,Copyable<F>,DateField<F>,Field<F>,FormComponent<F>,Serializable
- All Known Implementing Classes:
DefaultDateRangeField
Represents the metadata for a
FieldTypes.DATE_RANGE field. This will take in start and
end dates as attributes to render as a range.- Since:
- Metadata Service 2.0.8, Release Train 2.1.6
- Author:
- Susana Cruz (susanaccruz)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.DateField
DateField.DateStartUnit -
Method Summary
Modifier and TypeMethodDescriptiondefault FdateRangeSeparator(String separator) Adds theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.default FAdds theDateRangeField.Attributes.END_DATEattribute.Finds theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.Finds theDateRangeField.Attributes.END_DATEattribute.Finds theDateRangeField.Attributes.START_DATEattribute.default StringGets theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.default StringGets theDateRangeField.Attributes.END_DATEattribute.default Stringdefault booleanChecks whether theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute has been set.default booleanChecks whether theDateRangeField.Attributes.END_DATEattribute has been set.default booleanChecks whether theDateRangeField.Attributes.START_DATEattribute has been set.default FRemoves theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.default FRemoves theDateRangeField.Attributes.END_DATEattribute.default FRemoves theDateRangeField.Attributes.START_DATEattribute.default FAdds theDateRangeField.Attributes.START_DATEattribute.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, addSimpleComponent, apply, attribute, augmentable, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentableFlag, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentable, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.DateField
computedFrom, dateFormat, defaultEndOf, defaultNow, defaultStartOf, findDateFormat, getComputedFromDate, getComputedFromDuration, getComputedFromDurationUnit, getDateFormat, hasComputedFromDate, hasComputedFromDuration, hasComputedFromDurationUnit, hasDateFormat, isComputedFrom, removeComputedFrom, removeDateFormat, validateIsAfterMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, decorated, decorated, defaultValue, displayOnly, displayOnly, getDefaultValue, getMaxLength, getName, getPlaceholder, getReadOnlyConditionals, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, isTargetCollection, maxLength, name, noMaxLength, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, readOnlyConditional, readOnlyConditionals, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setMaxLength, setName, setPlaceholder, setReadOnly, setReadOnlyConditionals, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, targetIsCollection, targetIsNotCollection, validationMethod, validationSchema, validationSchemaMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
-
Method Details
-
startDate
Adds theDateRangeField.Attributes.START_DATEattribute.- Parameters:
date- the start date to set.- Returns:
this
-
getStartDate
-
findStartDate
Finds theDateRangeField.Attributes.START_DATEattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeStartDate
Removes theDateRangeField.Attributes.START_DATEattribute.- Returns:
this
-
hasStartDate
default boolean hasStartDate()Checks whether theDateRangeField.Attributes.START_DATEattribute has been set.- Returns:
- Whether the attribute is set.
-
endDate
Adds theDateRangeField.Attributes.END_DATEattribute.- Parameters:
date- the end date to set.- Returns:
this
-
getEndDate
Gets theDateRangeField.Attributes.END_DATEattribute.- Returns:
- the value of the attribute
-
findEndDate
Finds theDateRangeField.Attributes.END_DATEattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeEndDate
Removes theDateRangeField.Attributes.END_DATEattribute.- Returns:
this
-
hasEndDate
default boolean hasEndDate()Checks whether theDateRangeField.Attributes.END_DATEattribute has been set.- Returns:
- Whether the attribute is set.
-
dateRangeSeparator
Adds theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.- Parameters:
separator- The separator to set.- Returns:
this
-
getDateRangeSeparator
Gets theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
- the value of the attribute
-
findDateRangeSeparator
Finds theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present
-
removeDateRangeSeparator
Removes theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
this
-
hasDateRangeSeparator
default boolean hasDateRangeSeparator()Checks whether theDateRangeField.Attributes.DATE_RANGE_SEPARATORattribute has been set.- Returns:
- Whether the attribute is set.
-