Package com.ocs.dynamo.domain.model.impl
Class AttributeModelImpl
- java.lang.Object
-
- com.ocs.dynamo.domain.model.impl.AttributeModelImpl
-
- All Implemented Interfaces:
AttributeModel,Comparable<AttributeModel>
public class AttributeModelImpl extends Object implements AttributeModel
Implementation of the AttributeModel interface - simple container for properties- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description AttributeModelImpl()
-
Method Summary
-
-
-
Method Detail
-
addCascade
public void addCascade(String cascadeTo, String filterPath, CascadeMode mode)
- Specified by:
addCascadein interfaceAttributeModel
-
addGroupTogetherWith
public void addGroupTogetherWith(String path)
- Specified by:
addGroupTogetherWithin interfaceAttributeModel
-
compareTo
public int compareTo(AttributeModel o)
- Specified by:
compareToin interfaceComparable<AttributeModel>
-
getActualSortPath
public String getActualSortPath()
- Specified by:
getActualSortPathin interfaceAttributeModel
-
getAllowedExtensions
public Set<String> getAllowedExtensions()
- Specified by:
getAllowedExtensionsin interfaceAttributeModel
-
getAttributeType
public AttributeType getAttributeType()
- Specified by:
getAttributeTypein interfaceAttributeModel
-
getCascadeAttributes
public Set<String> getCascadeAttributes()
- Specified by:
getCascadeAttributesin interfaceAttributeModel
-
getCascadeFilterPath
public String getCascadeFilterPath(String cascadeTo)
- Specified by:
getCascadeFilterPathin interfaceAttributeModel
-
getCascadeMode
public CascadeMode getCascadeMode(String cascadeTo)
- Specified by:
getCascadeModein interfaceAttributeModel
-
getCollectionTableFieldName
public String getCollectionTableFieldName()
- Specified by:
getCollectionTableFieldNamein interfaceAttributeModel
-
getCollectionTableName
public String getCollectionTableName()
- Specified by:
getCollectionTableNamein interfaceAttributeModel
-
getCustomSetting
public Object getCustomSetting(String name)
- Specified by:
getCustomSettingin interfaceAttributeModel
-
getDateType
public AttributeDateType getDateType()
- Specified by:
getDateTypein interfaceAttributeModel
-
getDefaultDescription
public String getDefaultDescription()
-
getDefaultDisplayName
public String getDefaultDisplayName()
-
getDefaultTrueRepresentation
public String getDefaultTrueRepresentation()
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceAttributeModel
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescriptionin interfaceAttributeModel
-
getDisplayFormat
public String getDisplayFormat()
- Specified by:
getDisplayFormatin interfaceAttributeModel
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayNamein interfaceAttributeModel
-
getEditableType
public EditableType getEditableType()
- Specified by:
getEditableTypein interfaceAttributeModel
-
getEntityModel
public EntityModel<?> getEntityModel()
- Specified by:
getEntityModelin interfaceAttributeModel
-
getFalseRepresentation
public String getFalseRepresentation(Locale locale)
- Specified by:
getFalseRepresentationin interfaceAttributeModel
-
getFileNameProperty
public String getFileNameProperty()
- Specified by:
getFileNamePropertyin interfaceAttributeModel
-
getGridSelectMode
public AttributeSelectMode getGridSelectMode()
- Specified by:
getGridSelectModein interfaceAttributeModel
-
getGroupTogetherWith
public List<String> getGroupTogetherWith()
- Specified by:
getGroupTogetherWithin interfaceAttributeModel
-
getMaxLength
public Integer getMaxLength()
- Specified by:
getMaxLengthin interfaceAttributeModel
-
getMaxLengthInGrid
public Integer getMaxLengthInGrid()
- Specified by:
getMaxLengthInGridin interfaceAttributeModel
-
getMaxValue
public Long getMaxValue()
- Specified by:
getMaxValuein interfaceAttributeModel
-
getMemberType
public Class<?> getMemberType()
- Specified by:
getMemberTypein interfaceAttributeModel
-
getMinLength
public Integer getMinLength()
- Specified by:
getMinLengthin interfaceAttributeModel
-
getMinValue
public Long getMinValue()
- Specified by:
getMinValuein interfaceAttributeModel
-
getName
public String getName()
- Specified by:
getNamein interfaceAttributeModel
-
getNestedEntityModel
public EntityModel<?> getNestedEntityModel()
- Specified by:
getNestedEntityModelin interfaceAttributeModel
-
getNormalizedType
public Class<?> getNormalizedType()
- Specified by:
getNormalizedTypein interfaceAttributeModel
-
getOrder
public Integer getOrder()
- Specified by:
getOrderin interfaceAttributeModel
-
getPath
public String getPath()
- Specified by:
getPathin interfaceAttributeModel
-
getPrecision
public int getPrecision()
- Specified by:
getPrecisionin interfaceAttributeModel
-
getPrompt
public String getPrompt(Locale locale)
- Specified by:
getPromptin interfaceAttributeModel
-
getQuickAddPropertyName
public String getQuickAddPropertyName()
- Specified by:
getQuickAddPropertyNamein interfaceAttributeModel
-
getReplacementSearchPath
public String getReplacementSearchPath()
- Specified by:
getReplacementSearchPathin interfaceAttributeModel
-
getReplacementSortPath
public String getReplacementSortPath()
- Specified by:
getReplacementSortPathin interfaceAttributeModel
-
getSearchMode
public SearchMode getSearchMode()
- Specified by:
getSearchModein interfaceAttributeModel
-
getSearchSelectMode
public AttributeSelectMode getSearchSelectMode()
- Specified by:
getSearchSelectModein interfaceAttributeModel
-
getSelectMode
public AttributeSelectMode getSelectMode()
- Specified by:
getSelectModein interfaceAttributeModel
-
getStyles
public String getStyles()
- Specified by:
getStylesin interfaceAttributeModel- Returns:
- the styles
-
getTextFieldMode
public AttributeTextFieldMode getTextFieldMode()
- Specified by:
getTextFieldModein interfaceAttributeModel
-
getTrueRepresentation
public String getTrueRepresentation(Locale locale)
- Specified by:
getTrueRepresentationin interfaceAttributeModel
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceAttributeModel
-
isAlreadyGrouped
public boolean isAlreadyGrouped()
- Specified by:
isAlreadyGroupedin interfaceAttributeModel
-
isComplexEditable
public boolean isComplexEditable()
- Specified by:
isComplexEditablein interfaceAttributeModel
-
isCurrency
public boolean isCurrency()
- Specified by:
isCurrencyin interfaceAttributeModel
-
isEmail
public boolean isEmail()
- Specified by:
isEmailin interfaceAttributeModel
-
isEmbedded
public boolean isEmbedded()
- Specified by:
isEmbeddedin interfaceAttributeModel
-
isIgnoreInSearchFilter
public boolean isIgnoreInSearchFilter()
- Specified by:
isIgnoreInSearchFilterin interfaceAttributeModel
-
isImage
public boolean isImage()
- Specified by:
isImagein interfaceAttributeModel
-
isMainAttribute
public boolean isMainAttribute()
- Specified by:
isMainAttributein interfaceAttributeModel
-
isMultipleSearch
public boolean isMultipleSearch()
- Specified by:
isMultipleSearchin interfaceAttributeModel
-
isNavigable
public boolean isNavigable()
- Specified by:
isNavigablein interfaceAttributeModel
-
isNumerical
public boolean isNumerical()
- Specified by:
isNumericalin interfaceAttributeModel
-
isPercentage
public boolean isPercentage()
- Specified by:
isPercentagein interfaceAttributeModel
-
isQuickAddAllowed
public boolean isQuickAddAllowed()
- Specified by:
isQuickAddAllowedin interfaceAttributeModel
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin interfaceAttributeModel
-
isRequiredForSearching
public boolean isRequiredForSearching()
- Specified by:
isRequiredForSearchingin interfaceAttributeModel
-
isSearchable
public boolean isSearchable()
- Specified by:
isSearchablein interfaceAttributeModel
-
isSearchCaseSensitive
public boolean isSearchCaseSensitive()
- Specified by:
isSearchCaseSensitivein interfaceAttributeModel
-
isSearchDateOnly
public boolean isSearchDateOnly()
- Specified by:
isSearchDateOnlyin interfaceAttributeModel
-
isSearchForExactValue
public boolean isSearchForExactValue()
- Specified by:
isSearchForExactValuein interfaceAttributeModel
-
isSearchPrefixOnly
public boolean isSearchPrefixOnly()
- Specified by:
isSearchPrefixOnlyin interfaceAttributeModel
-
isSortable
public boolean isSortable()
- Specified by:
isSortablein interfaceAttributeModel
-
isThousandsGrouping
public boolean isThousandsGrouping()
- Specified by:
isThousandsGroupingin interfaceAttributeModel
-
isUrl
public boolean isUrl()
- Specified by:
isUrlin interfaceAttributeModel
-
isVisible
public boolean isVisible()
- Specified by:
isVisiblein interfaceAttributeModel
-
isVisibleInGrid
public boolean isVisibleInGrid()
- Specified by:
isVisibleInGridin interfaceAttributeModel
-
isWeek
public boolean isWeek()
- Specified by:
isWeekin interfaceAttributeModel
-
removeCascades
public void removeCascades()
- Specified by:
removeCascadesin interfaceAttributeModel
-
setAlreadyGrouped
public void setAlreadyGrouped(boolean alreadyGrouped)
-
setAttributeType
public void setAttributeType(AttributeType attributeType)
-
setCollectionTableFieldName
public void setCollectionTableFieldName(String collectionTableFieldName)
-
setCollectionTableName
public void setCollectionTableName(String collectionTableName)
-
setComplexEditable
public void setComplexEditable(boolean complexEditable)
-
setCurrency
public void setCurrency(boolean currency)
-
setCustomSetting
public void setCustomSetting(String name, Object value)
- Specified by:
setCustomSettingin interfaceAttributeModel
-
setDateType
public void setDateType(AttributeDateType dateType)
-
setDefaultDescription
public void setDefaultDescription(String defaultDescription)
-
setDefaultDisplayName
public void setDefaultDisplayName(String defaultDisplayName)
-
setDefaultFalseRepresentation
public void setDefaultFalseRepresentation(String defaultFalseRepresentation)
-
setDefaultPrompt
public void setDefaultPrompt(String defaultPrompt)
-
setDefaultTrueRepresentation
public void setDefaultTrueRepresentation(String defaultTrueRepresentation)
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
-
setDisplayFormat
public void setDisplayFormat(String displayFormat)
-
setEditableType
public void setEditableType(EditableType editableType)
-
setEmail
public void setEmail(boolean email)
-
setEntityModel
public void setEntityModel(EntityModel<?> entityModel)
-
setFileNameProperty
public void setFileNameProperty(String fileNameProperty)
-
setGridSelectMode
public void setGridSelectMode(AttributeSelectMode gridSelectMode)
-
setIgnoreInSearchFilter
public void setIgnoreInSearchFilter(boolean ignoreInSearchFilter)
-
setImage
public void setImage(boolean image)
-
setMainAttribute
public void setMainAttribute(boolean main)
- Specified by:
setMainAttributein interfaceAttributeModel
-
setMaxLength
public void setMaxLength(Integer maxLength)
-
setMaxLengthInGrid
public void setMaxLengthInGrid(Integer maxLengthInGrid)
-
setMaxValue
public void setMaxValue(Long maxValue)
-
setMemberType
public void setMemberType(Class<?> memberType)
-
setMinLength
public void setMinLength(Integer minLength)
-
setMinValue
public void setMinValue(Long minValue)
-
setMultipleSearch
public void setMultipleSearch(boolean multipleSearch)
-
setName
public void setName(String name)
-
setNavigable
public void setNavigable(boolean navigable)
-
setNestedEntityModel
public void setNestedEntityModel(EntityModel<?> nestedEntityModel)
-
setOrder
public void setOrder(Integer order)
-
setPercentage
public void setPercentage(boolean percentage)
-
setPrecision
public void setPrecision(int precision)
-
setQuickAddAllowed
public void setQuickAddAllowed(boolean quickAddAllowed)
-
setQuickAddPropertyName
public void setQuickAddPropertyName(String quickAddPropertyName)
-
setReplacementSearchPath
public void setReplacementSearchPath(String replacementSearchPath)
-
setReplacementSortPath
public void setReplacementSortPath(String replacementSortPath)
-
setRequired
public void setRequired(boolean required)
-
setRequiredForSearching
public void setRequiredForSearching(boolean requiredForSearching)
-
setSearchCaseSensitive
public void setSearchCaseSensitive(boolean searchCaseSensitive)
-
setSearchDateOnly
public void setSearchDateOnly(boolean searchDateOnly)
-
setSearchForExactValue
public void setSearchForExactValue(boolean searchForExactValue)
-
setSearchMode
public void setSearchMode(SearchMode searchMode)
-
setSearchPrefixOnly
public void setSearchPrefixOnly(boolean searchPrefixOnly)
-
setSearchSelectMode
public void setSearchSelectMode(AttributeSelectMode searchSelectMode)
-
setSelectMode
public void setSelectMode(AttributeSelectMode selectMode)
-
setSortable
public void setSortable(boolean sortable)
-
setStyles
public void setStyles(String styles)
-
setTextFieldMode
public void setTextFieldMode(AttributeTextFieldMode textFieldMode)
-
setThousandsGrouping
public void setThousandsGrouping(boolean thousandsGrouping)
-
setType
public void setType(Class<?> type)
-
setUrl
public void setUrl(boolean url)
-
setVisible
public void setVisible(boolean visible)
-
setVisibleInGrid
public void setVisibleInGrid(boolean visibleInGrid)
-
setWeek
public void setWeek(boolean week)
-
-