Package com._1c.g5.v8.dt.dcs.dataset
Interface IDataSetWrapper
- All Known Subinterfaces:
IDataSetsWrapper
- All Known Implementing Classes:
DataSetsWrapperBase
,DataSetsWrapperObject
,DataSetsWrapperQuery
,DataSetsWrapperUnion
,DataSetWrapperBase
,EmptyQueryDataSetWrapperBase
public interface IDataSetWrapper
Wrapper for data set model object, provides uninform interface for query, object and union data sets
with runtime information about fields (tree of fields, fields synonyms, fields restrictions).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Field restrictionstatic class
Field synonym -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(DataSetField currentField, DataSetField field) Add fieldvoid
copyField
(DataSetField field, String parentPathNew) Copy fieldcreatePath
(String path) Create path from stringgetAncestorField
(DataSetField field) Get ancestor for fieldgetChildFields
(DataSetField parentField) Get child fields or root fieldsint
Gets number of current aliasGet current language codeGet fieldgetFieldName
(DataSetField field) Get 'Field' property of fieldgetFieldParentPath
(DataSetField field) Get path of field parentgetFieldPath
(DataSetField field) Get 'Data path' property of fieldGet fields wrappersgetFieldSynonym
(String path) Get field synonymgetFieldUseRestriction
(String path) Get field use restrictionGet field visibility restrictionvoid
init()
Initializevoid
moveField
(DataSetField field, String parentPathNew) Move fieldvoid
removeField
(DataSetField field) Remove fieldvoid
setFieldAttrUseRestiction
(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field attribute restictionvoid
setFieldName
(DataSetField field, String name) Set 'Field' property of fieldvoid
setFieldPath
(DataSetField field, String path) Set 'Data path' property of fieldvoid
setFieldTitle
(DataSetField field, LocalString title) Set 'Title' property of fieldvoid
setFieldUseRestiction
(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field restiction
-
Method Details
-
init
void init()Initialize -
addField
Add field- Parameters:
currentField
- current field, can benull
field
- field, can't benull
- Throws:
DcsPathException
-
copyField
Copy field- Parameters:
field
- field, can't benull
parentPathNew
- destination folder path ornull
(empty) for root
-
removeField
Remove field- Parameters:
field
- field, can't benull
-
moveField
Move field- Parameters:
field
- field, can't benull
parentPathNew
- destination folder path ornull
(empty) for root
-
getFieldsWrappers
Collection<IDataSetFieldsWrapper> getFieldsWrappers()Get fields wrappers- Returns:
- collection of fields wrappers, never
null
-
getChildFields
Get child fields or root fields- Parameters:
parentField
- parent field, can't benull
- Returns:
- list of fields, never
null
-
getFieldName
Get 'Field' property of field- Parameters:
field
- field, can't benull
- Returns:
- value of 'Field' property
name from source, never
null
, empty for folder
-
setFieldName
Set 'Field' property of field- Parameters:
field
- field, can't benull
name
- value of 'Field' property
-
getFieldPath
Get 'Data path' property of field- Parameters:
field
- field, can't benull
- Returns:
- value of 'Data path' property, never
null
-
setFieldPath
Set 'Data path' property of field- Parameters:
field
- field, can't benull
path
- value of 'Data path' property, can't benull
-
setFieldTitle
Set 'Title' property of field- Parameters:
field
- field, can't be nulltitle
- value of 'Title' property, can't benull
-
getFieldSynonym
Get field synonym- Parameters:
path
- path of field, can't benull
- Returns:
- synonym or
null
-
getFieldUseRestriction
Get field use restriction- Parameters:
path
- path of field, can't benull
- Returns:
- restriction or
null
-
getFieldVisibilityRestriction
Get field visibility restriction- Parameters:
path
- path of field, can't benull
- Returns:
- restriction or
null
if no restrictions present
-
getField
Get field- Parameters:
path
- field path, can't benull
- Returns:
- field or
null
if field not found
-
getAncestorField
Get ancestor for field- Parameters:
field
- field, can't benull
- Returns:
- ancestor if exists or
null
-
getCurrentLanguageCode
String getCurrentLanguageCode()Get current language code- Returns:
- language code, never
null
-
getCurrentAlias
int getCurrentAlias()Gets number of current alias- Returns:
- number of current alias
-
createPath
Create path from string- Parameters:
path
- string path, nevernull
- Returns:
- DCS path, never
null
- Throws:
IDataSetFieldsWrapper.FieldRenameException
- if path is not valid
-
getFieldParentPath
Get path of field parent- Parameters:
field
- field, can't benull
- Returns:
- path of field parent, can be
null
-
setFieldUseRestiction
void setFieldUseRestiction(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field restiction- Parameters:
field
- field, can't benull
feature
- feature of restriction, can't benull
state
- state
-
setFieldAttrUseRestiction
void setFieldAttrUseRestiction(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field attribute restiction- Parameters:
field
- field, can't benull
feature
- feature of attribute restriction, can't benull
state
- state
-