Package com._1c.g5.v8.dt.dcs.dataset
Interface IDataSetWrapper
-
- All Known Subinterfaces:
IDataSetsWrapper
- All Known Implementing Classes:
DataSetsWrapperBase,DataSetsWrapperObject,DataSetsWrapperQuery,DataSetsWrapperUnion,DataSetWrapperBase
public interface IDataSetWrapperWrapper 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 Classes Modifier and Type Interface Description static classIDataSetWrapper.FieldRestrictionField restrictionstatic classIDataSetWrapper.FieldSynonymField synonym
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddField(DataSetField currentField, DataSetField field)Add fieldvoidcopyField(DataSetField field, String parentPathNew)Copy fieldDcsPathcreatePath(String path)Create path from stringDataSetFieldgetAncestorField(DataSetField field)Get ancestor for fieldList<DataSetField>getChildFields(DataSetField parentField)Get child fields or root fieldsintgetCurrentAlias()Gets number of current aliasStringgetCurrentLanguageCode()Get current language codeDataSetFieldgetField(String path)Get fieldStringgetFieldName(DataSetField field)Get 'Field' property of fieldStringgetFieldParentPath(DataSetField field)Get path of field parentStringgetFieldPath(DataSetField field)Get 'Data path' property of fieldIDataSetWrapper.FieldRestrictiongetFieldRestriction(String path)Get field restrictionCollection<IDataSetFieldsWrapper>getFieldsWrappers()Get fields wrappersIDataSetWrapper.FieldSynonymgetFieldSynonym(String path)Get field synonymvoidinit()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 Detail
-
init
void init()
Initialize
-
addField
void addField(DataSetField currentField, DataSetField field) throws DcsPathException
Add field- Parameters:
currentField- current field, can benullfield- field, can't benull- Throws:
DcsPathException
-
copyField
void copyField(DataSetField field, String parentPathNew)
Copy field- Parameters:
field- field, can't benullparentPathNew- destination folder path ornull(empty) for root
-
removeField
void removeField(DataSetField field)
Remove field- Parameters:
field- field, can't benull
-
moveField
void moveField(DataSetField field, String parentPathNew)
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
List<DataSetField> getChildFields(DataSetField parentField)
Get child fields or root fields- Parameters:
parentField- parent field, can't benull- Returns:
- list of fields, never
null
-
getFieldName
String getFieldName(DataSetField field)
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
void setFieldName(DataSetField field, String name)
Set 'Field' property of field- Parameters:
field- field, can't benullname- value of 'Field' property
-
getFieldPath
String getFieldPath(DataSetField field)
Get 'Data path' property of field- Parameters:
field- field, can't benull- Returns:
- value of 'Data path' property, never
null
-
setFieldPath
void setFieldPath(DataSetField field, String path)
Set 'Data path' property of field- Parameters:
field- field, can't benullpath- value of 'Data path' property, can't benull
-
setFieldTitle
void setFieldTitle(DataSetField field, LocalString title)
Set 'Title' property of field- Parameters:
field- field, can't be nulltitle- value of 'Title' property, can't benull
-
getFieldSynonym
IDataSetWrapper.FieldSynonym getFieldSynonym(String path)
Get field synonym- Parameters:
path- path of field, can't benull- Returns:
- synonym or
null
-
getFieldRestriction
IDataSetWrapper.FieldRestriction getFieldRestriction(String path)
Get field restriction- Parameters:
path- path of field, can't benull- Returns:
- restriction or
null
-
getField
DataSetField getField(String path)
Get field- Parameters:
path- field path, can't benull- Returns:
- field or
nullif field not found
-
getAncestorField
DataSetField getAncestorField(DataSetField field)
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
DcsPath createPath(String path) throws IDataSetFieldsWrapper.FieldRenameException
Create path from string- Parameters:
path- string path, nevernull- Returns:
- DCS path, never
null - Throws:
IDataSetFieldsWrapper.FieldRenameException- if path is not valid
-
getFieldParentPath
String getFieldParentPath(DataSetField field)
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
-
-