Package org.openl.rules.table.properties
Interface ITableProperties
-
- All Known Implementing Classes:
TableProperties
public interface ITableProperties
-
-
Method Summary
-
-
-
Method Detail
-
getAllProperties
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- Returns:
of all properties relevant to current table.Map
-
getTableProperties
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- Returns:
of properties defined in table.Map
-
getAllDimensionalProperties
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().- Returns:
of properties defined in table excluding system properties.Map
-
getCategoryProperties
Map<String,Object> getCategoryProperties()
of properties applied to the category this table belongs to.Map- Returns:
of properties applied to the category this table belongs to.Map
-
getModuleProperties
Map<String,Object> getModuleProperties()
of properties applied to the module this table belongs to.Map- Returns:
of properties applied to the module this table belongs to.Map
-
getGlobalProperties
Map<String,Object> getGlobalProperties()
of properties applied globally and inheritable in modules.Map- Returns:
of properties applied to the module this table belongs to.Map
-
getDefaultProperties
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().- Returns:
of properties that must be set by default.Map
-
getPropertyValue
Object getPropertyValue(String propertyName)
Gets the value of the property by its name.- Parameters:
propertyName- Property name.- Returns:
- Property value.
-
getPropertyValueAsString
String getPropertyValueAsString(String propertyName)
Returns the value of the property asString. If the current property value is ofDatetype, gets the format of date fromDefaultPropertyDefinitions.- Parameters:
propertyName- Name of the property.- Returns:
- Value formatted to string.
Nullwhen there is no property with such name.
-
getPropertiesSection
ILogicalTable getPropertiesSection()
Gets the logical table of the properties defined in table.
-
setPropertiesSection
void setPropertiesSection(ILogicalTable propertySection)
-
getModulePropertiesTableSyntaxNode
TableSyntaxNode getModulePropertiesTableSyntaxNode()
-
getGlobalPropertiesTableSyntaxNode
TableSyntaxNode getGlobalPropertiesTableSyntaxNode()
-
setModulePropertiesTableSyntaxNode
void setModulePropertiesTableSyntaxNode(TableSyntaxNode modulePropertiesTableSyntaxNode)
-
setGlobalPropertiesTableSyntaxNode
void setGlobalPropertiesTableSyntaxNode(TableSyntaxNode globalPropertiesTableSyntaxNode)
-
getCategoryPropertiesTableSyntaxNode
TableSyntaxNode getCategoryPropertiesTableSyntaxNode()
-
setCategoryPropertiesTableSyntaxNode
void setCategoryPropertiesTableSyntaxNode(TableSyntaxNode categoryPropertiesTableSyntaxNode)
-
getInheritedPropertiesTableSyntaxNode
TableSyntaxNode getInheritedPropertiesTableSyntaxNode(InheritanceLevel inheritanceLevel)
-
getPropertyLevelDefinedOn
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.- 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. @seeisPropertyAppliedByDefault(String)
-
isPropertyAppliedByDefault
boolean isPropertyAppliedByDefault(String propertyName)
Check if the property with given name is applied for current table by default.- Parameters:
propertyName- name of the property.- Returns:
TRUEif the property with given name is applied for current table by default.
-
isPropertiesEmpty
boolean isPropertiesEmpty()
Checks that current table does not have properties.- Returns:
-
getName
String getName()
-
setName
void setName(String name)
-
getCategory
String getCategory()
-
setCategory
void setCategory(String category)
-
getCreatedBy
String getCreatedBy()
-
setCreatedBy
void setCreatedBy(String createdBy)
-
getCreatedOn
Date getCreatedOn()
-
setCreatedOn
void setCreatedOn(Date createdOn)
-
getModifiedBy
String getModifiedBy()
-
setModifiedBy
void setModifiedBy(String modifiedBy)
-
getModifiedOn
Date getModifiedOn()
-
setModifiedOn
void setModifiedOn(Date modifiedOn)
-
getDescription
String getDescription()
-
setDescription
void setDescription(String description)
-
getTags
String[] getTags()
-
setTags
void setTags(String... tags)
-
getEffectiveDate
Date getEffectiveDate()
-
setEffectiveDate
void setEffectiveDate(Date effectiveDate)
-
getExpirationDate
Date getExpirationDate()
-
setExpirationDate
void setExpirationDate(Date expirationDate)
-
getStartRequestDate
Date getStartRequestDate()
-
setStartRequestDate
void setStartRequestDate(Date startRequestDate)
-
getEndRequestDate
Date getEndRequestDate()
-
setEndRequestDate
void setEndRequestDate(Date endRequestDate)
-
getCaRegions
CaRegionsEnum[] getCaRegions()
-
setCaRegions
void setCaRegions(CaRegionsEnum... caRegions)
-
getCaProvinces
CaProvincesEnum[] getCaProvinces()
-
setCaProvinces
void setCaProvinces(CaProvincesEnum... caProvinces)
-
getCountry
CountriesEnum[] getCountry()
-
setCountry
void setCountry(CountriesEnum... country)
-
getRegion
RegionsEnum[] getRegion()
-
setRegion
void setRegion(RegionsEnum... region)
-
getCurrency
CurrenciesEnum[] getCurrency()
-
setCurrency
void setCurrency(CurrenciesEnum... currency)
-
getLang
LanguagesEnum[] getLang()
-
setLang
void setLang(LanguagesEnum... lang)
-
getLob
String[] getLob()
-
setLob
void setLob(String... lob)
-
getOrigin
OriginsEnum getOrigin()
-
setOrigin
void setOrigin(OriginsEnum origin)
-
getUsregion
UsRegionsEnum[] getUsregion()
-
setUsregion
void setUsregion(UsRegionsEnum... usregion)
-
getState
UsStatesEnum[] getState()
-
setState
void setState(UsStatesEnum... state)
-
getVersion
String getVersion()
-
setVersion
void setVersion(String version)
-
getActive
Boolean getActive()
-
setActive
void setActive(Boolean active)
-
getId
String getId()
-
setId
void setId(String id)
-
getBuildPhase
String getBuildPhase()
-
setBuildPhase
void setBuildPhase(String buildPhase)
-
getValidateDT
ValidateDTEnum getValidateDT()
-
setValidateDT
void setValidateDT(ValidateDTEnum validateDT)
-
getFailOnMiss
Boolean getFailOnMiss()
-
setFailOnMiss
void setFailOnMiss(Boolean failOnMiss)
-
getScope
String getScope()
-
setScope
void setScope(String scope)
-
getPriority
Integer getPriority()
-
setPriority
void setPriority(Integer priority)
-
getDatatypePackage
String getDatatypePackage()
-
setDatatypePackage
void setDatatypePackage(String datatypePackage)
-
getSpreadsheetResultPackage
String getSpreadsheetResultPackage()
-
setSpreadsheetResultPackage
void setSpreadsheetResultPackage(String spreadsheetResultPackage)
-
getCacheable
Boolean getCacheable()
-
setCacheable
void setCacheable(Boolean cacheable)
-
getRecalculate
RecalculateEnum getRecalculate()
-
setRecalculate
void setRecalculate(RecalculateEnum recalculate)
-
getEmptyResultProcessing
DTEmptyResultProcessingEnum getEmptyResultProcessing()
-
setEmptyResultProcessing
void setEmptyResultProcessing(DTEmptyResultProcessingEnum emptyResultProcessing)
-
getPrecision
String getPrecision()
-
setPrecision
void setPrecision(String precision)
-
getTableStructureDetails
Boolean getTableStructureDetails()
-
setTableStructureDetails
void setTableStructureDetails(Boolean tableStructureDetails)
-
getAutoType
Boolean getAutoType()
-
setAutoType
void setAutoType(Boolean autoType)
-
getCalculateAllCells
Boolean getCalculateAllCells()
-
setCalculateAllCells
void setCalculateAllCells(Boolean calculateAllCells)
-
getParallel
Boolean getParallel()
-
setParallel
void setParallel(Boolean parallel)
-
getNature
String getNature()
-
setNature
void setNature(String nature)
-
setCurrentTableType
void setCurrentTableType(String currentTableType)
-
getCurrentTableType
String getCurrentTableType()
-
-