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 class
PropertyInfo.PropertyInfoType
Types ofPropertyInfo
-
Constructor Summary
Constructors Constructor Description PropertyInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDataPath
getDataPath(ScriptVariant scriptVariant)
Gets actualDataPath
forMultiLanguageDataPath
getMultyLanguageDataPath()
Gets actual multi-languageDataPath
for the instanceString
getPresentation(String languageCode, ScriptVariant scriptVariant)
Gets string presentationList<PropertyInfo>
getPropertyInfoCache()
Gets caching nestedPropertyInfo
List<PropertyInfo>
getPropertyInfos()
Gets nestedPropertyInfo
TypeDescription
getRealValueType()
GetsTypeDescription
corresponding to thePropertyInfo
.String
getStaticDescription()
Gets description ofPropertyInfo
PropertyInfo.PropertyInfoType
getType()
GetsPropertyInfo
typeTypeDescription
getValueType()
GetsTypeDescription
corresponding to thePropertyInfo
boolean
hasChildren()
Checks that thisPropertyInfo
has nestedPropertyInfo
boolean
isAggregationFunction()
Checks thatPropertyInfo
corresponding to the aggregation functionboolean
isAliasedField()
boolean
isReadOnly()
Checks thatPropertyInfo
is read onlyboolean
isTable()
Checks thatPropertyInfo
corresponding to the table form attributeboolean
isThroughReference()
Checks thatPropertyInfo
has reference typesvoid
setAggregationFunction(boolean aggregationFunction)
Sets thatPropertyInfo
is read onlyvoid
setAliasedField(boolean aliasedField)
void
setPropertyInfoCache(List<PropertyInfo> propertyInfoCache)
Sets caching nestedPropertyInfo
void
setReadOnly(boolean readOnly)
Sets thatPropertyInfo
is read onlyvoid
setStaticDescription(String staticDescription)
Sets description ofPropertyInfo
void
setTable(boolean table)
Sets thatPropertyInfo
corresponding to the table form attributevoid
setThroughReference(boolean throughReference)
Sets thatPropertyInfo
has reference typesvoid
setType(PropertyInfo.PropertyInfoType type)
SetsPropertyInfo
typevoid
setValueType(TypeDescription valueType)
SetsTypeDescription
corresponding 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 benull
scriptVariant
- actual script varian, can't benull
- Returns:
- string presentation of this
PropertyInfo
, nevernull
-
getDataPath
public AbstractDataPath getDataPath(ScriptVariant scriptVariant)
Description copied from class:AbstractFormDataSourceInfo
Gets actualDataPath
for- Specified by:
getDataPath
in classAbstractFormDataSourceInfo
- Parameters:
scriptVariant
- currentDataPath
ScriptVariant
, can't benull
- Returns:
- actual
DataPath
, nevernull
-
getMultyLanguageDataPath
public MultiLanguageDataPath getMultyLanguageDataPath()
Description copied from class:AbstractFormDataSourceInfo
Gets actual multi-languageDataPath
for the instance- Specified by:
getMultyLanguageDataPath
in classAbstractFormDataSourceInfo
- Returns:
- actual
DataPath
, nevernull
-
hasChildren
public boolean hasChildren()
Checks that thisPropertyInfo
has nestedPropertyInfo
- Returns:
true
if thisPropertyInfo
has nestedPropertyInfo
,false
otherwise
-
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()
GetsTypeDescription
corresponding to thePropertyInfo
- Returns:
TypeDescription
corresponding to thePropertyInfo
, can't benull
-
getRealValueType
public TypeDescription getRealValueType()
GetsTypeDescription
corresponding to thePropertyInfo
. Takes user-defined types into the account.- Returns:
TypeDescription
corresponding to thePropertyInfo
, can't benull
-
setValueType
public void setValueType(TypeDescription valueType)
SetsTypeDescription
corresponding to thePropertyInfo
- Parameters:
valueType
-TypeDescription
corresponding to thePropertyInfo
, can't benull
-
isTable
public boolean isTable()
Checks thatPropertyInfo
corresponding to the table form attribute- Returns:
true
PropertyInfo
corresponding to the table form attribute,false
otherwise
-
setTable
public void setTable(boolean table)
Sets thatPropertyInfo
corresponding to the table form attribute- Parameters:
table
-true
PropertyInfo
corresponding to the table form attribute,false
otherwise
-
isReadOnly
public boolean isReadOnly()
Checks thatPropertyInfo
is read only- Returns:
true
PropertyInfo
is read only,false
otherwise
-
setReadOnly
public void setReadOnly(boolean readOnly)
Sets thatPropertyInfo
is read only- Parameters:
readOnly
-true
PropertyInfo
is read only,false
otherwise
-
isAggregationFunction
public boolean isAggregationFunction()
Checks thatPropertyInfo
corresponding to the aggregation function- Returns:
true
ifPropertyInfo
corresponding to the aggregation function,false
-
setAggregationFunction
public void setAggregationFunction(boolean aggregationFunction)
Sets thatPropertyInfo
is read only- Parameters:
aggregationFunction
-true
ifPropertyInfo
corresponding to the aggregation function,false
-
isThroughReference
public boolean isThroughReference()
Checks thatPropertyInfo
has reference types- Returns:
true
ifPropertyInfo
has references types,false
otherwise
-
setThroughReference
public void setThroughReference(boolean throughReference)
Sets thatPropertyInfo
has reference types- Parameters:
throughReference
-true
ifPropertyInfo
has references types,false
otherwise
-
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()
GetsPropertyInfo
type- Returns:
PropertyInfo
type, nevernull
-
setType
public void setType(PropertyInfo.PropertyInfoType type)
SetsPropertyInfo
type- Parameters:
type
-PropertyInfo
type, can't benull
-
isAliasedField
public boolean isAliasedField()
- Returns:
- the aliasedField
-
setAliasedField
public void setAliasedField(boolean aliasedField)
- Parameters:
aliasedField
- the aliasedField to set
-
-