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 classField restrictionstatic classField synonym -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(DataSetField currentField, DataSetField field) Add fieldvoidcopyField(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 fieldsintGets 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 restrictionvoidinit()InitializevoidmoveField(DataSetField field, String parentPathNew) Move fieldvoidremoveField(DataSetField field) Remove fieldvoidsetFieldAttrUseRestiction(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field attribute restictionvoidsetFieldName(DataSetField field, String name) Set 'Field' property of fieldvoidsetFieldPath(DataSetField field, String path) Set 'Data path' property of fieldvoidsetFieldTitle(DataSetField field, LocalString title) Set 'Title' property of fieldvoidsetFieldUseRestiction(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 benullfield- field, can't benull- Throws:
DcsPathException
-
copyField
Copy field- Parameters:
field- field, can't benullparentPathNew- destination folder path ornull(empty) for root
-
removeField
Remove field- Parameters:
field- field, can't benull
-
moveField
Move field- Parameters:
field- field, can't benullparentPathNew- 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 benullname- 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 benullpath- 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
nullif no restrictions present
-
getField
Get field- Parameters:
path- field path, can't benull- Returns:
- field or
nullif 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 benullfeature- feature of restriction, can't benullstate- state
-
setFieldAttrUseRestiction
void setFieldAttrUseRestiction(DataSetField field, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state) Set field attribute restiction- Parameters:
field- field, can't benullfeature- feature of attribute restriction, can't benullstate- state
-