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 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 Classes Modifier and Type Interface Description static class
IDataSetWrapper.FieldRestriction
Field restrictionstatic class
IDataSetWrapper.FieldSynonym
Field synonym
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addField(DataSetField currentField, DataSetField field)
Add fieldvoid
copyField(DataSetField field, String parentPathNew)
Copy fieldDcsPath
createPath(String path)
Create path from stringDataSetField
getAncestorField(DataSetField field)
Get ancestor for fieldList<DataSetField>
getChildFields(DataSetField parentField)
Get child fields or root fieldsint
getCurrentAlias()
Gets number of current aliasString
getCurrentLanguageCode()
Get current language codeDataSetField
getField(String path)
Get fieldString
getFieldName(DataSetField field)
Get 'Field' property of fieldString
getFieldParentPath(DataSetField field)
Get path of field parentString
getFieldPath(DataSetField field)
Get 'Data path' property of fieldIDataSetWrapper.FieldRestriction
getFieldRestriction(String path)
Get field restrictionCollection<IDataSetFieldsWrapper>
getFieldsWrappers()
Get fields wrappersIDataSetWrapper.FieldSynonym
getFieldSynonym(String path)
Get field synonymvoid
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 Detail
-
init
void init()
Initialize
-
addField
void addField(DataSetField currentField, DataSetField field) throws DcsPathException
Add field- Parameters:
currentField
- current field, can benull
field
- field, can't benull
- Throws:
DcsPathException
-
copyField
void copyField(DataSetField field, String parentPathNew)
Copy field- Parameters:
field
- field, can't benull
parentPathNew
- 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 benull
parentPathNew
- 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 benull
name
- 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 benull
path
- 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
null
if 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 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
-
-