Interface DurationColumn<C extends DurationColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable
- All Known Implementing Classes:
DefaultDurationColumn
Represents the metadata for a
ColumnTypes.DURATION column. This will take in an integer
value and display is as friendly text.- 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.Column
Column.ColumnAttributes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault CAdds theDurationColumn.Attributes.BASE_UNITSattribute.Finds theDurationColumn.Attributes.BASE_UNITSattribute.default Stringdefault booleanChecks whether theDurationColumn.Attributes.BASE_UNITSattribute has been set.default CRemoves theDurationColumn.Attributes.BASE_UNITSattribute.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, widthMethods 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.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
baseUnits
Adds theDurationColumn.Attributes.BASE_UNITSattribute.- Parameters:
baseUnits- the base units to set.- Returns:
this
-
getBaseUnits
-
findBaseUnits
Finds theDurationColumn.Attributes.BASE_UNITSattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeBaseUnits
Removes theDurationColumn.Attributes.BASE_UNITSattribute.- Returns:
this
-
hasBaseUnits
default boolean hasBaseUnits()Checks whether theDurationColumn.Attributes.BASE_UNITSattribute has been set.- Returns:
- Whether the attribute is set.
-