Package org.openl.rules.table.properties
Class TableProperties
- java.lang.Object
-
- org.openl.rules.table.properties.TableProperties
-
- All Implemented Interfaces:
ITableProperties
public class TableProperties extends Object implements ITableProperties
-
-
Constructor Summary
Constructors Constructor Description TableProperties()
-
Method Summary
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceITableProperties
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceITableProperties
-
getCategory
public String getCategory()
- Specified by:
getCategoryin interfaceITableProperties
-
setCategory
public void setCategory(String category)
- Specified by:
setCategoryin interfaceITableProperties
-
getCreatedBy
public String getCreatedBy()
- Specified by:
getCreatedByin interfaceITableProperties
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedByin interfaceITableProperties
-
getCreatedOn
public Date getCreatedOn()
- Specified by:
getCreatedOnin interfaceITableProperties
-
setCreatedOn
public void setCreatedOn(Date createdOn)
- Specified by:
setCreatedOnin interfaceITableProperties
-
getModifiedBy
public String getModifiedBy()
- Specified by:
getModifiedByin interfaceITableProperties
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedByin interfaceITableProperties
-
getModifiedOn
public Date getModifiedOn()
- Specified by:
getModifiedOnin interfaceITableProperties
-
setModifiedOn
public void setModifiedOn(Date modifiedOn)
- Specified by:
setModifiedOnin interfaceITableProperties
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceITableProperties
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceITableProperties
-
getTags
public String[] getTags()
- Specified by:
getTagsin interfaceITableProperties
-
setTags
public void setTags(String... tags)
- Specified by:
setTagsin interfaceITableProperties
-
getEffectiveDate
public Date getEffectiveDate()
- Specified by:
getEffectiveDatein interfaceITableProperties
-
setEffectiveDate
public void setEffectiveDate(Date effectiveDate)
- Specified by:
setEffectiveDatein interfaceITableProperties
-
getExpirationDate
public Date getExpirationDate()
- Specified by:
getExpirationDatein interfaceITableProperties
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
- Specified by:
setExpirationDatein interfaceITableProperties
-
getStartRequestDate
public Date getStartRequestDate()
- Specified by:
getStartRequestDatein interfaceITableProperties
-
setStartRequestDate
public void setStartRequestDate(Date startRequestDate)
- Specified by:
setStartRequestDatein interfaceITableProperties
-
getEndRequestDate
public Date getEndRequestDate()
- Specified by:
getEndRequestDatein interfaceITableProperties
-
setEndRequestDate
public void setEndRequestDate(Date endRequestDate)
- Specified by:
setEndRequestDatein interfaceITableProperties
-
getCaRegions
public CaRegionsEnum[] getCaRegions()
- Specified by:
getCaRegionsin interfaceITableProperties
-
setCaRegions
public void setCaRegions(CaRegionsEnum... caRegions)
- Specified by:
setCaRegionsin interfaceITableProperties
-
getCaProvinces
public CaProvincesEnum[] getCaProvinces()
- Specified by:
getCaProvincesin interfaceITableProperties
-
setCaProvinces
public void setCaProvinces(CaProvincesEnum... caProvinces)
- Specified by:
setCaProvincesin interfaceITableProperties
-
getCountry
public CountriesEnum[] getCountry()
- Specified by:
getCountryin interfaceITableProperties
-
setCountry
public void setCountry(CountriesEnum... country)
- Specified by:
setCountryin interfaceITableProperties
-
getRegion
public RegionsEnum[] getRegion()
- Specified by:
getRegionin interfaceITableProperties
-
setRegion
public void setRegion(RegionsEnum... region)
- Specified by:
setRegionin interfaceITableProperties
-
getCurrency
public CurrenciesEnum[] getCurrency()
- Specified by:
getCurrencyin interfaceITableProperties
-
setCurrency
public void setCurrency(CurrenciesEnum... currency)
- Specified by:
setCurrencyin interfaceITableProperties
-
getLang
public LanguagesEnum[] getLang()
- Specified by:
getLangin interfaceITableProperties
-
setLang
public void setLang(LanguagesEnum... lang)
- Specified by:
setLangin interfaceITableProperties
-
getLob
public String[] getLob()
- Specified by:
getLobin interfaceITableProperties
-
setLob
public void setLob(String... lob)
- Specified by:
setLobin interfaceITableProperties
-
getOrigin
public OriginsEnum getOrigin()
- Specified by:
getOriginin interfaceITableProperties
-
setOrigin
public void setOrigin(OriginsEnum origin)
- Specified by:
setOriginin interfaceITableProperties
-
getUsregion
public UsRegionsEnum[] getUsregion()
- Specified by:
getUsregionin interfaceITableProperties
-
setUsregion
public void setUsregion(UsRegionsEnum... usregion)
- Specified by:
setUsregionin interfaceITableProperties
-
getState
public UsStatesEnum[] getState()
- Specified by:
getStatein interfaceITableProperties
-
setState
public void setState(UsStatesEnum... state)
- Specified by:
setStatein interfaceITableProperties
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceITableProperties
-
setVersion
public void setVersion(String version)
- Specified by:
setVersionin interfaceITableProperties
-
getActive
public Boolean getActive()
- Specified by:
getActivein interfaceITableProperties
-
setActive
public void setActive(Boolean active)
- Specified by:
setActivein interfaceITableProperties
-
getId
public String getId()
- Specified by:
getIdin interfaceITableProperties
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceITableProperties
-
getBuildPhase
public String getBuildPhase()
- Specified by:
getBuildPhasein interfaceITableProperties
-
setBuildPhase
public void setBuildPhase(String buildPhase)
- Specified by:
setBuildPhasein interfaceITableProperties
-
getValidateDT
public ValidateDTEnum getValidateDT()
- Specified by:
getValidateDTin interfaceITableProperties
-
setValidateDT
public void setValidateDT(ValidateDTEnum validateDT)
- Specified by:
setValidateDTin interfaceITableProperties
-
getFailOnMiss
public Boolean getFailOnMiss()
- Specified by:
getFailOnMissin interfaceITableProperties
-
setFailOnMiss
public void setFailOnMiss(Boolean failOnMiss)
- Specified by:
setFailOnMissin interfaceITableProperties
-
getScope
public String getScope()
- Specified by:
getScopein interfaceITableProperties
-
setScope
public void setScope(String scope)
- Specified by:
setScopein interfaceITableProperties
-
getPriority
public Integer getPriority()
- Specified by:
getPriorityin interfaceITableProperties
-
setPriority
public void setPriority(Integer priority)
- Specified by:
setPriorityin interfaceITableProperties
-
getDatatypePackage
public String getDatatypePackage()
- Specified by:
getDatatypePackagein interfaceITableProperties
-
setDatatypePackage
public void setDatatypePackage(String datatypePackage)
- Specified by:
setDatatypePackagein interfaceITableProperties
-
getSpreadsheetResultPackage
public String getSpreadsheetResultPackage()
- Specified by:
getSpreadsheetResultPackagein interfaceITableProperties
-
setSpreadsheetResultPackage
public void setSpreadsheetResultPackage(String spreadsheetResultPackage)
- Specified by:
setSpreadsheetResultPackagein interfaceITableProperties
-
getCacheable
public Boolean getCacheable()
- Specified by:
getCacheablein interfaceITableProperties
-
setCacheable
public void setCacheable(Boolean cacheable)
- Specified by:
setCacheablein interfaceITableProperties
-
getRecalculate
public RecalculateEnum getRecalculate()
- Specified by:
getRecalculatein interfaceITableProperties
-
setRecalculate
public void setRecalculate(RecalculateEnum recalculate)
- Specified by:
setRecalculatein interfaceITableProperties
-
getEmptyResultProcessing
public DTEmptyResultProcessingEnum getEmptyResultProcessing()
- Specified by:
getEmptyResultProcessingin interfaceITableProperties
-
setEmptyResultProcessing
public void setEmptyResultProcessing(DTEmptyResultProcessingEnum emptyResultProcessing)
- Specified by:
setEmptyResultProcessingin interfaceITableProperties
-
getPrecision
public String getPrecision()
- Specified by:
getPrecisionin interfaceITableProperties
-
setPrecision
public void setPrecision(String precision)
- Specified by:
setPrecisionin interfaceITableProperties
-
getTableStructureDetails
public Boolean getTableStructureDetails()
- Specified by:
getTableStructureDetailsin interfaceITableProperties
-
setTableStructureDetails
public void setTableStructureDetails(Boolean tableStructureDetails)
- Specified by:
setTableStructureDetailsin interfaceITableProperties
-
getAutoType
public Boolean getAutoType()
- Specified by:
getAutoTypein interfaceITableProperties
-
setAutoType
public void setAutoType(Boolean autoType)
- Specified by:
setAutoTypein interfaceITableProperties
-
getCalculateAllCells
public Boolean getCalculateAllCells()
- Specified by:
getCalculateAllCellsin interfaceITableProperties
-
setCalculateAllCells
public void setCalculateAllCells(Boolean calculateAllCells)
- Specified by:
setCalculateAllCellsin interfaceITableProperties
-
getParallel
public Boolean getParallel()
- Specified by:
getParallelin interfaceITableProperties
-
setParallel
public void setParallel(Boolean parallel)
- Specified by:
setParallelin interfaceITableProperties
-
getNature
public String getNature()
- Specified by:
getNaturein interfaceITableProperties
-
setNature
public void setNature(String nature)
- Specified by:
setNaturein interfaceITableProperties
-
getPropertyValue
public Object getPropertyValue(String key)
Gets the value of the property by its name.- Specified by:
getPropertyValuein interfaceITableProperties- Parameters:
key- Property name.- Returns:
- Property value.
-
getPropertyValueAsString
public String getPropertyValueAsString(String key)
Returns the value of the property asString. If the current property value is ofDatetype, gets the format of date fromDefaultPropertyDefinitions.- Specified by:
getPropertyValueAsStringin interfaceITableProperties- Parameters:
key- Name of the property.- Returns:
- Value formatted to string.
Nullwhen there is no property with such name.
-
getPropertyLevelDefinedOn
public InheritanceLevel getPropertyLevelDefinedOn(String propertyName)
Goes through the hierarchy of properties from TABLE to CATEGORY and then to MODULE and returns the level on which property is inherited or defined.- Specified by:
getPropertyLevelDefinedOnin interfaceITableProperties- Parameters:
propertyName- Name of the property.- Returns:
- level on which property is defined.
NULLwhen there is no such property on all these levels. Or it can be set by default. So check is it applied as default. @seeITableProperties.isPropertyAppliedByDefault(String)
-
isPropertyAppliedByDefault
public boolean isPropertyAppliedByDefault(String propertyName)
Check if the property with given name is applied for current table by default.- Specified by:
isPropertyAppliedByDefaultin interfaceITableProperties- Parameters:
propertyName- name of the property.- Returns:
TRUEif the property with given name is applied for current table by default.
-
getPropertiesSection
public ILogicalTable getPropertiesSection()
Gets the logical table of the properties defined in table.- Specified by:
getPropertiesSectionin interfaceITableProperties
-
setPropertiesSection
public void setPropertiesSection(ILogicalTable propertySection)
- Specified by:
setPropertiesSectionin interfaceITableProperties
-
getModulePropertiesTableSyntaxNode
public TableSyntaxNode getModulePropertiesTableSyntaxNode()
- Specified by:
getModulePropertiesTableSyntaxNodein interfaceITableProperties
-
setModulePropertiesTableSyntaxNode
public void setModulePropertiesTableSyntaxNode(TableSyntaxNode modulePropertiesTableSyntaxNode)
- Specified by:
setModulePropertiesTableSyntaxNodein interfaceITableProperties
-
getGlobalPropertiesTableSyntaxNode
public TableSyntaxNode getGlobalPropertiesTableSyntaxNode()
- Specified by:
getGlobalPropertiesTableSyntaxNodein interfaceITableProperties
-
setGlobalPropertiesTableSyntaxNode
public void setGlobalPropertiesTableSyntaxNode(TableSyntaxNode globalPropertiesTableSyntaxNode)
- Specified by:
setGlobalPropertiesTableSyntaxNodein interfaceITableProperties
-
getCategoryPropertiesTableSyntaxNode
public TableSyntaxNode getCategoryPropertiesTableSyntaxNode()
- Specified by:
getCategoryPropertiesTableSyntaxNodein interfaceITableProperties
-
setCategoryPropertiesTableSyntaxNode
public void setCategoryPropertiesTableSyntaxNode(TableSyntaxNode categoryPropertiesTableSyntaxNode)
- Specified by:
setCategoryPropertiesTableSyntaxNodein interfaceITableProperties
-
getInheritedPropertiesTableSyntaxNode
public TableSyntaxNode getInheritedPropertiesTableSyntaxNode(InheritanceLevel inheritanceLevel)
- Specified by:
getInheritedPropertiesTableSyntaxNodein interfaceITableProperties
-
getAllProperties
public Map<String,Object> getAllProperties()
of properties that includes all properties for current table. It includes: - all properties physically defined in table with system ones; - inherited properties from category and module scopes; - properties set by default;Map- Specified by:
getAllPropertiesin interfaceITableProperties- Returns:
of all properties relevant to current table.Map
-
getTableProperties
public Map<String,Object> getTableProperties()
Gets theof properties with name as key and value as value, this map contains all properties defined in source table. No inherited and no default properties.Map- Specified by:
getTablePropertiesin interfaceITableProperties- Returns:
of properties defined in table.Map
-
getAllDimensionalProperties
public Map<String,Object> getAllDimensionalProperties()
Gets theof properties with name as key and value as value, this map contains all dimensional properties defined for table. To find out which property is dimensional see property definitionsMapTablePropertyDefinitionUtils.getSystemProperties().- Specified by:
getAllDimensionalPropertiesin interfaceITableProperties- Returns:
of properties defined in table excluding system properties.Map
-
setCategoryProperties
public void setCategoryProperties(Map<String,Object> categoryProperties)
- Specified by:
setCategoryPropertiesin interfaceITableProperties
-
getCategoryProperties
public Map<String,Object> getCategoryProperties()
of properties applied to the category this table belongs to.Map- Specified by:
getCategoryPropertiesin interfaceITableProperties- Returns:
of properties applied to the category this table belongs to.Map
-
setModuleProperties
public void setModuleProperties(Map<String,Object> moduleProperties)
- Specified by:
setModulePropertiesin interfaceITableProperties
-
setGlobalProperties
public void setGlobalProperties(Map<String,Object> globalProperties)
- Specified by:
setGlobalPropertiesin interfaceITableProperties
-
getModuleProperties
public Map<String,Object> getModuleProperties()
of properties applied to the module this table belongs to.Map- Specified by:
getModulePropertiesin interfaceITableProperties- Returns:
of properties applied to the module this table belongs to.Map
-
getGlobalProperties
public Map<String,Object> getGlobalProperties()
of properties applied globally and inheritable in modules.Map- Specified by:
getGlobalPropertiesin interfaceITableProperties- Returns:
of properties applied to the module this table belongs to.Map
-
setDefaultProperties
public void setDefaultProperties(Map<String,Object> defaultProperties)
- Specified by:
setDefaultPropertiesin interfaceITableProperties
-
getDefaultProperties
public Map<String,Object> getDefaultProperties()
of properties that must be set by default. Default properties are set to the table when there is no such property defined on TABLE, CATEGORY and MODULE levels. To find out which property is default see property definitionsMapTablePropertyDefinitionUtils.getSystemProperties().- Specified by:
getDefaultPropertiesin interfaceITableProperties- Returns:
of properties that must be set by default.Map
-
setCurrentTableType
public void setCurrentTableType(String currentTableType)
- Specified by:
setCurrentTableTypein interfaceITableProperties
-
getCurrentTableType
public String getCurrentTableType()
- Specified by:
getCurrentTableTypein interfaceITableProperties
-
getExternalProperties
public Map<String,Object> getExternalProperties()
- Specified by:
getExternalPropertiesin interfaceITableProperties
-
setExternalProperties
public void setExternalProperties(Map<String,Object> externalProperties)
- Specified by:
setExternalPropertiesin interfaceITableProperties
-
isPropertiesEmpty
public boolean isPropertiesEmpty()
Checks that current table does not have properties.- Specified by:
isPropertiesEmptyin interfaceITableProperties- Returns:
-
-