Package com._1c.g5.v8.dt.form.model
Class PropertyInfo
- java.lang.Object
-
- com._1c.g5.v8.dt.form.model.AbstractFormDataSourceInfo
-
- com._1c.g5.v8.dt.form.model.PropertyInfo
-
- Direct Known Subclasses:
ColumnPropertyInfo,PropertyInfoWithChildren,RootPropertyInfo
public class PropertyInfo extends AbstractFormDataSourceInfo
Special element for ui presentation of Form attributes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyInfo.PropertyInfoTypeTypes ofPropertyInfo
-
Constructor Summary
Constructors Constructor Description PropertyInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDataPathgetDataPath(ScriptVariant scriptVariant)Gets actualDataPathforMultiLanguageDataPathgetMultyLanguageDataPath()Gets actual multi-languageDataPathfor the instanceStringgetPresentation(String languageCode, ScriptVariant scriptVariant)Gets string presentationList<PropertyInfo>getPropertyInfoCache()Gets caching nestedPropertyInfoList<PropertyInfo>getPropertyInfos()Gets nestedPropertyInfoTypeDescriptiongetRealValueType()GetsTypeDescriptioncorresponding to thePropertyInfo.StringgetStaticDescription()Gets description ofPropertyInfoPropertyInfo.PropertyInfoTypegetType()GetsPropertyInfotypeTypeDescriptiongetValueType()GetsTypeDescriptioncorresponding to thePropertyInfobooleanhasChildren()Checks that thisPropertyInfohas nestedPropertyInfobooleanisAggregationFunction()Checks thatPropertyInfocorresponding to the aggregation functionbooleanisAliasedField()booleanisReadOnly()Checks thatPropertyInfois read onlybooleanisTable()Checks thatPropertyInfocorresponding to the table form attributebooleanisThroughReference()Checks thatPropertyInfohas reference typesvoidsetAggregationFunction(boolean aggregationFunction)Sets thatPropertyInfois read onlyvoidsetAliasedField(boolean aliasedField)voidsetPropertyInfoCache(List<PropertyInfo> propertyInfoCache)Sets caching nestedPropertyInfovoidsetReadOnly(boolean readOnly)Sets thatPropertyInfois read onlyvoidsetStaticDescription(String staticDescription)Sets description ofPropertyInfovoidsetTable(boolean table)Sets thatPropertyInfocorresponding to the table form attributevoidsetThroughReference(boolean throughReference)Sets thatPropertyInfohas reference typesvoidsetType(PropertyInfo.PropertyInfoType type)SetsPropertyInfotypevoidsetValueType(TypeDescription valueType)SetsTypeDescriptioncorresponding to thePropertyInfo-
Methods inherited from class com._1c.g5.v8.dt.form.model.AbstractFormDataSourceInfo
getExtension, getForm, getName, getNameRu, getParent, getSource, getSourceTextRegion, setExtension, setName, setNameRu, setParent, setSource, setSourceTextRegion
-
-
-
-
Method Detail
-
getPresentation
public String getPresentation(String languageCode, ScriptVariant scriptVariant)
Gets string presentation- Parameters:
languageCode- actual language code, can't benullscriptVariant- actual script varian, can't benull- Returns:
- string presentation of this
PropertyInfo, nevernull
-
getDataPath
public AbstractDataPath getDataPath(ScriptVariant scriptVariant)
Description copied from class:AbstractFormDataSourceInfoGets actualDataPathfor- Specified by:
getDataPathin classAbstractFormDataSourceInfo- Parameters:
scriptVariant- currentDataPathScriptVariant, can't benull- Returns:
- actual
DataPath, nevernull
-
getMultyLanguageDataPath
public MultiLanguageDataPath getMultyLanguageDataPath()
Description copied from class:AbstractFormDataSourceInfoGets actual multi-languageDataPathfor the instance- Specified by:
getMultyLanguageDataPathin classAbstractFormDataSourceInfo- Returns:
- actual
DataPath, nevernull
-
hasChildren
public boolean hasChildren()
Checks that thisPropertyInfohas nestedPropertyInfo- Returns:
trueif thisPropertyInfohas nestedPropertyInfo,falseotherwise
-
getStaticDescription
public String getStaticDescription()
Gets description ofPropertyInfo- Returns:
- description of
PropertyInfo, can benull
-
setStaticDescription
public void setStaticDescription(String staticDescription)
Sets description ofPropertyInfo- Parameters:
staticDescription- description ofPropertyInfo, can benull
-
getValueType
public TypeDescription getValueType()
GetsTypeDescriptioncorresponding to thePropertyInfo- Returns:
TypeDescriptioncorresponding to thePropertyInfo, can't benull
-
getRealValueType
public TypeDescription getRealValueType()
GetsTypeDescriptioncorresponding to thePropertyInfo. Takes user-defined types into the account.- Returns:
TypeDescriptioncorresponding to thePropertyInfo, can't benull
-
setValueType
public void setValueType(TypeDescription valueType)
SetsTypeDescriptioncorresponding to thePropertyInfo- Parameters:
valueType-TypeDescriptioncorresponding to thePropertyInfo, can't benull
-
isTable
public boolean isTable()
Checks thatPropertyInfocorresponding to the table form attribute- Returns:
truePropertyInfocorresponding to the table form attribute,falseotherwise
-
setTable
public void setTable(boolean table)
Sets thatPropertyInfocorresponding to the table form attribute- Parameters:
table-truePropertyInfocorresponding to the table form attribute,falseotherwise
-
isReadOnly
public boolean isReadOnly()
Checks thatPropertyInfois read only- Returns:
truePropertyInfois read only,falseotherwise
-
setReadOnly
public void setReadOnly(boolean readOnly)
Sets thatPropertyInfois read only- Parameters:
readOnly-truePropertyInfois read only,falseotherwise
-
isAggregationFunction
public boolean isAggregationFunction()
Checks thatPropertyInfocorresponding to the aggregation function- Returns:
trueifPropertyInfocorresponding to the aggregation function,false
-
setAggregationFunction
public void setAggregationFunction(boolean aggregationFunction)
Sets thatPropertyInfois read only- Parameters:
aggregationFunction-trueifPropertyInfocorresponding to the aggregation function,false
-
isThroughReference
public boolean isThroughReference()
Checks thatPropertyInfohas reference types- Returns:
trueifPropertyInfohas references types,falseotherwise
-
setThroughReference
public void setThroughReference(boolean throughReference)
Sets thatPropertyInfohas reference types- Parameters:
throughReference-trueifPropertyInfohas references types,falseotherwise
-
getPropertyInfoCache
public List<PropertyInfo> getPropertyInfoCache()
Gets caching nestedPropertyInfo- Returns:
- nested
PropertyInfo, can benull
-
setPropertyInfoCache
public void setPropertyInfoCache(List<PropertyInfo> propertyInfoCache)
Sets caching nestedPropertyInfo- Parameters:
propertyInfoCache- caching nestedPropertyInfo, can benull
-
getPropertyInfos
public List<PropertyInfo> getPropertyInfos()
Gets nestedPropertyInfo- Returns:
- nested
PropertyInfo, nevernull
-
getType
public PropertyInfo.PropertyInfoType getType()
GetsPropertyInfotype- Returns:
PropertyInfotype, nevernull
-
setType
public void setType(PropertyInfo.PropertyInfoType type)
SetsPropertyInfotype- Parameters:
type-PropertyInfotype, can't benull
-
isAliasedField
public boolean isAliasedField()
- Returns:
- the aliasedField
-
setAliasedField
public void setAliasedField(boolean aliasedField)
- Parameters:
aliasedField- the aliasedField to set
-
-