Package overit.geocall.edm.model
Class ExtendedDataAttributeImpl
java.lang.Object
overit.geocall.edm.model.ExtendedDataAttributeImpl
- All Implemented Interfaces:
Serializable,BaseDataAttribute,DataAttribute
Represents an extended data attribute in the Entity-Data-Model (EDM). This class implements the
DataAttribute interface and provides
additional functionality for attribute properties and permissions. It is designed to handle various configurations and constraints related
to data attributes within the EDM framework.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedDataAttributeImpl(String name, Entity entity, Company company, AttributeProperties attributeProperties) Constructs a new ExtendedDataAttribute with the specified properties and lazily evaluated values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the specified identity has permission to edit the attribute.booleanChecks if the specified identity has permission to view the attribute.booleanRetrieves the name of the field for which this attribute is an alias.Retrieves the ARIA description for accessibility purposes.Retrieves ARIA description for dateRetrieves ARIA description for timeRetrieves the ARIA label for accessibility purposes.Retrieves the autocomplete setting.Retrieves the cleaner, which could be used for formatting or sanitization.overit.geocall.timezone.DateTypesReturns aDateTypesabout the configured type of date/time or time (local,centralorsymbolic).Retrieves the dictionary prefix.Retrieves the edit permissions for the current data attributeRetrieves the enabled status.Returns the associatedEntity.Retrieves the false title.Retrieves the format.Returns the starting date of the range.Retrieves the name of the field to use as "from" constraint.Retrieves the lower limit for the attribute (greater than constraint).Retrieves the lower limit (inclusive) for the attribute (greater than or equal to constraint).Retrieves the head title.Returns the set of hours allowed in the range.getKey()Retrieves the key associated with this object.getLabel()Retrieves the label of the data attribute.getLess()Retrieves the upper limit for the attribute (less than constraint).Retrieves the upper limit (inclusive) for the attribute (less than or equal to constraint).Retrieves the letter case setting.Returns the maximum length allowed.Retrieves the menu minute step.Returns a representing the minimum length property.Returns the set of minutes allowed in the range.Retrieves the multiline setting, possibly indicating if multiple lines of text are supported.getName()Retrieves the name of the data attribute.Retrieves the output precision, which might indicate the number of decimal places or detail level.Retrieves the placeholder text.Retrieves placeholder for dateRetrieves placeholder for time.Returns a representing the precision property.Retrieves the prefix.getRange()Retrieves the range.Retrieves the search threshold, which might indicate a limit or criteria for search operations.Retrieves the symbols.getTitle()Retrieves the title.Retrieves title for date.Retrieves title for time context.Returns the ending date of the range.Retrieves the name of the field to use as "to" constraint.overit.geocall.edm.model.datatypes.DataType<?, ?> getType()Retrieves the data type of the attribute.getValue()Retrieves the value associated with this object.Retrieves a list of values associated with this object.Retrieves the view permissions for the current data attributeRetrieves the zone name.Retrieves the zone value.inthashCode()booleanisStatic()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface overit.geocall.edm.model.BaseDataAttribute
isExtendedMethods inherited from interface overit.geocall.edm.model.DataAttribute
getFullName
-
Constructor Details
-
ExtendedDataAttributeImpl
public ExtendedDataAttributeImpl(String name, Entity entity, Company company, AttributeProperties attributeProperties) Constructs a new ExtendedDataAttribute with the specified properties and lazily evaluated values.- Parameters:
name- The name of the attribute.entity- The entity the attribute belongs to.company- The company associated with the attribute.
-
-
Method Details
-
getName
Description copied from interface:BaseDataAttributeRetrieves the name of the data attribute.- Specified by:
getNamein interfaceBaseDataAttribute- Returns:
- The name of the attribute.
-
getAliasFor
Description copied from interface:DataAttributeRetrieves the name of the field for which this attribute is an alias.- Specified by:
getAliasForin interfaceDataAttribute- Returns:
- the name of the field for which this attribute is an alias.
-
getLabel
Description copied from interface:DataAttributeRetrieves the label of the data attribute.- Specified by:
getLabelin interfaceDataAttribute- Returns:
- The label of the attribute.
-
getType
public overit.geocall.edm.model.datatypes.DataType<?,?> getType()Description copied from interface:BaseDataAttributeRetrieves the data type of the attribute.- Specified by:
getTypein interfaceBaseDataAttribute- Returns:
- The data type of the attribute.
-
isStatic
public boolean isStatic()Description copied from interface:BaseDataAttribute- Specified by:
isStaticin interfaceBaseDataAttribute- Returns:
truein case thisBaseDataAttributeis about astatic data attribute;falseotherwise.
-
canView
Description copied from interface:DataAttributeChecks if the specified identity has permission to view the attribute.- Specified by:
canViewin interfaceDataAttribute- Parameters:
identity- The identity to check permissions for.- Returns:
trueif the identity can view the attribute,falseotherwise.
-
canEdit
Description copied from interface:DataAttributeChecks if the specified identity has permission to edit the attribute.- Specified by:
canEditin interfaceDataAttribute- Parameters:
identity- The identity to check permissions for.- Returns:
trueif the identity can edit the attribute,falseotherwise.
-
getViewPermissions
Description copied from interface:DataAttributeRetrieves the view permissions for the current data attribute- Specified by:
getViewPermissionsin interfaceDataAttribute- Returns:
- A
Stringrepresenting the permissions required for viewing the attribute
-
getEditPermissions
Description copied from interface:DataAttributeRetrieves the edit permissions for the current data attribute- Specified by:
getEditPermissionsin interfaceDataAttribute- Returns:
- A
Stringrepresenting the permissions required for editing the attribute
-
getLess
Description copied from interface:DataAttributeRetrieves the upper limit for the attribute (less than constraint).- Specified by:
getLessin interfaceDataAttribute- Returns:
- The upper limit for the attribute.
-
getLessEqual
Description copied from interface:DataAttributeRetrieves the upper limit (inclusive) for the attribute (less than or equal to constraint).- Specified by:
getLessEqualin interfaceDataAttribute- Returns:
- The upper limit (inclusive) for the attribute.
-
getGreater
Description copied from interface:DataAttributeRetrieves the lower limit for the attribute (greater than constraint).- Specified by:
getGreaterin interfaceDataAttribute- Returns:
- The lower limit for the attribute.
-
getGreaterEqual
Description copied from interface:DataAttributeRetrieves the lower limit (inclusive) for the attribute (greater than or equal to constraint).- Specified by:
getGreaterEqualin interfaceDataAttribute- Returns:
- The lower limit (inclusive) for the attribute.
-
getMaxLength
Description copied from interface:DataAttributeReturns the maximum length allowed.- Specified by:
getMaxLengthin interfaceDataAttribute- Returns:
- the maximum length allowed
-
getMinLength
Description copied from interface:DataAttributeReturns a representing the minimum length property.- Specified by:
getMinLengthin interfaceDataAttribute- Returns:
- An
Optional<Integer>containing the minimum length property if present, otherwise an empty optional.
-
getPrecision
Description copied from interface:DataAttributeReturns a representing the precision property.- Specified by:
getPrecisionin interfaceDataAttribute- Returns:
- An
Optional<Integer>containing the precision property if present, otherwise an empty optional.
-
getRegExpPattern
- Specified by:
getRegExpPatternin interfaceDataAttribute
-
getFromDate
Description copied from interface:DataAttributeReturns the starting date of the range.- Specified by:
getFromDatein interfaceDataAttribute- Returns:
- the starting date of the range
-
getToDate
Description copied from interface:DataAttributeReturns the ending date of the range.- Specified by:
getToDatein interfaceDataAttribute- Returns:
- the ending date of the range
-
getHourRange
Description copied from interface:DataAttributeReturns the set of hours allowed in the range.- Specified by:
getHourRangein interfaceDataAttribute- Returns:
- the set of hours allowed in the range
-
getMinuteRange
Description copied from interface:DataAttributeReturns the set of minutes allowed in the range.- Specified by:
getMinuteRangein interfaceDataAttribute- Returns:
- the set of minutes allowed in the range
-
getEntity
Description copied from interface:DataAttributeReturns the associatedEntity.- Specified by:
getEntityin interfaceDataAttribute- Returns:
- the associated
Entity.
-
getTitle
Description copied from interface:DataAttributeRetrieves the title.- Specified by:
getTitlein interfaceDataAttribute- Returns:
- the title as a
String.
-
getAriaLabel
Description copied from interface:DataAttributeRetrieves the ARIA label for accessibility purposes.- Specified by:
getAriaLabelin interfaceDataAttribute- Returns:
- the ARIA label as a
String.
-
getAriaDescription
Description copied from interface:DataAttributeRetrieves the ARIA description for accessibility purposes.- Specified by:
getAriaDescriptionin interfaceDataAttribute- Returns:
- the ARIA description as a
String.
-
getCleaner
Description copied from interface:DataAttributeRetrieves the cleaner, which could be used for formatting or sanitization.- Specified by:
getCleanerin interfaceDataAttribute- Returns:
- the cleaner as a
String.
-
getValue
Description copied from interface:DataAttributeRetrieves the value associated with this object.- Specified by:
getValuein interfaceDataAttribute- Returns:
- the value as a
String.
-
getKey
Description copied from interface:DataAttributeRetrieves the key associated with this object.- Specified by:
getKeyin interfaceDataAttribute- Returns:
- the key as a
String.
-
getHeadTitle
Description copied from interface:DataAttributeRetrieves the head title.- Specified by:
getHeadTitlein interfaceDataAttribute- Returns:
- the head title as a
String.
-
getFalseTitle
Description copied from interface:DataAttributeRetrieves the false title.- Specified by:
getFalseTitlein interfaceDataAttribute- Returns:
- the false title as a
String.
-
getEnabled
Description copied from interface:DataAttributeRetrieves the enabled status.- Specified by:
getEnabledin interfaceDataAttribute- Returns:
- the enabled status as a
String.
-
getFormat
Description copied from interface:DataAttributeRetrieves the format.- Specified by:
getFormatin interfaceDataAttribute- Returns:
- the format as a
String.
-
getRange
Description copied from interface:DataAttributeRetrieves the range.- Specified by:
getRangein interfaceDataAttribute- Returns:
- the range as a
String.
-
getSymbols
Description copied from interface:DataAttributeRetrieves the symbols.- Specified by:
getSymbolsin interfaceDataAttribute- Returns:
- the symbols as a
String.
-
getPrefix
Description copied from interface:DataAttributeRetrieves the prefix.- Specified by:
getPrefixin interfaceDataAttribute- Returns:
- the prefix as a
String.
-
getZoneName
Description copied from interface:DataAttributeRetrieves the zone name.- Specified by:
getZoneNamein interfaceDataAttribute- Returns:
- the zone name as a
String.
-
getZoneValue
Description copied from interface:DataAttributeRetrieves the zone value.- Specified by:
getZoneValuein interfaceDataAttribute- Returns:
- the zone value as a
String.
-
getPlaceholder
Description copied from interface:DataAttributeRetrieves the placeholder text.- Specified by:
getPlaceholderin interfaceDataAttribute- Returns:
- the placeholder as a
String.
-
getAutocomplete
Description copied from interface:DataAttributeRetrieves the autocomplete setting.- Specified by:
getAutocompletein interfaceDataAttribute- Returns:
- the autocomplete setting as a
String.
-
getLetterCase
Description copied from interface:DataAttributeRetrieves the letter case setting.- Specified by:
getLetterCasein interfaceDataAttribute- Returns:
- the letter case setting as a
String.
-
getOutputPrecision
Description copied from interface:DataAttributeRetrieves the output precision, which might indicate the number of decimal places or detail level.- Specified by:
getOutputPrecisionin interfaceDataAttribute- Returns:
- the output precision as a
String.
-
getAriaDescriptionD
Description copied from interface:DataAttributeRetrieves ARIA description for date- Specified by:
getAriaDescriptionDin interfaceDataAttribute- Returns:
- the date ARIA description as a
String.
-
getPlaceHolderD
Description copied from interface:DataAttributeRetrieves placeholder for date- Specified by:
getPlaceHolderDin interfaceDataAttribute- Returns:
- the secondary placeholder as a
String.
-
getTitleD
Description copied from interface:DataAttributeRetrieves title for date.- Specified by:
getTitleDin interfaceDataAttribute- Returns:
- the secondary title as a
String.
-
getFromName
Description copied from interface:DataAttributeRetrieves the name of the field to use as "from" constraint.- Specified by:
getFromNamein interfaceDataAttribute- Returns:
- the "from" name as a
String.
-
getToName
Description copied from interface:DataAttributeRetrieves the name of the field to use as "to" constraint.- Specified by:
getToNamein interfaceDataAttribute- Returns:
- the "to" name as a
String.
-
getAriaDescriptionT
Description copied from interface:DataAttributeRetrieves ARIA description for time- Specified by:
getAriaDescriptionTin interfaceDataAttribute- Returns:
- the ARIA description for time as a
String.
-
getPlaceHolderT
Description copied from interface:DataAttributeRetrieves placeholder for time.- Specified by:
getPlaceHolderTin interfaceDataAttribute- Returns:
- the placeholder as a
String.
-
getTitleT
Description copied from interface:DataAttributeRetrieves title for time context.- Specified by:
getTitleTin interfaceDataAttribute- Returns:
- the title as a
String.
-
getMenuMinuteStep
Description copied from interface:DataAttributeRetrieves the menu minute step.- Specified by:
getMenuMinuteStepin interfaceDataAttribute- Returns:
- the menu minute step as a
String.
-
getSearchThreshold
Description copied from interface:DataAttributeRetrieves the search threshold, which might indicate a limit or criteria for search operations.- Specified by:
getSearchThresholdin interfaceDataAttribute- Returns:
- the search threshold as a
String.
-
getDictionaryPrefix
Description copied from interface:DataAttributeRetrieves the dictionary prefix.- Specified by:
getDictionaryPrefixin interfaceDataAttribute- Returns:
- the dictionary prefix as a
String.
-
getMultiline
Description copied from interface:DataAttributeRetrieves the multiline setting, possibly indicating if multiple lines of text are supported.- Specified by:
getMultilinein interfaceDataAttribute- Returns:
- the multiline setting as a
String.
-
getValueList
Description copied from interface:DataAttributeRetrieves a list of values associated with this object.- Specified by:
getValueListin interfaceDataAttribute- Returns:
- a list of values as a
List<String>.
-
getDateTypes
public overit.geocall.timezone.DateTypes getDateTypes()Description copied from interface:DataAttributeReturns aDateTypesabout the configured type of date/time or time (local,centralorsymbolic).This value only makes sense in case of
DataAttributeof typedate/timeortime.- Specified by:
getDateTypesin interfaceDataAttribute- Returns:
- a
DateTypesabout the configured type of date/time or time (local,centralorsymbolic).
-
equals
-
hashCode
public int hashCode() -
toString
-