Package com._1c.g5.v8.dt.dcs.dataset
Class DataSetWrapperBase<T extends DataSet>
java.lang.Object
com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase<T>
- All Implemented Interfaces:
IDataSetWrapper
- Direct Known Subclasses:
DataSetsWrapperBase,EmptyQueryDataSetWrapperBase
public abstract class DataSetWrapperBase<T extends DataSet>
extends Object
implements IDataSetWrapper
Base implementation of
IDataSetWrapper-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrapper
IDataSetWrapper.FieldRestriction, IDataSetWrapper.FieldSynonym -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Tprotected DataSetsFieldsTreeprotected Map<DataSetField,IDataSetFieldsWrapper> protected Map<String,IDataSetFieldsWrapper> protected final booleanprotected Map<String,IDataSetWrapper.FieldSynonym> protected Map<String,IDataSetWrapper.FieldRestriction> protected Map<String,IDataSetWrapper.FieldRestriction> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataSetWrapperBase(T dataSet, boolean isDynamicList) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(DataSetField currentField, DataSetField dataSetField) Add fieldprotected voidaddFieldWrapper(IDataSetFieldsWrapper fieldWrapper) Add field wrapperprotected IDataSetFieldsWrappercreateFieldWrapper(DataSetField field) Create field wrappercreatePath(String path) Create path from stringfillDataSetFields(List<DcsDataSetInfoAvailableFieldInfo> avialableFields) FillsDataSet.getFields()fromDcsDataSetInfoAvailableFieldInfofieldsprotected voidfillFieldsWrappers(List<DataSetField> fields) Fills wrapper fieldsgetAncestorField(DataSetField field) Get ancestor for fieldgetChildFields(DataSetField parentField) Get child fields or root fieldsGet 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 fieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrapper
copyField, getCurrentAlias, getCurrentLanguageCode, removeField, setFieldAttrUseRestiction, setFieldName, setFieldPath, setFieldTitle, setFieldUseRestiction
-
Field Details
-
dataSet
-
isDynamicList
protected final boolean isDynamicList -
fieldsTree
-
fieldsWrappers
-
fieldsWrappersByName
-
synonyms
-
useRestrictions
-
visibilityRestrictions
-
-
Constructor Details
-
DataSetWrapperBase
Constructor- Parameters:
dataSet- wrapsDataSet, can't benullisDynamicList-trueif dynamic list context,falseotherwise
-
-
Method Details
-
init
public void init()Description copied from interface:IDataSetWrapperInitialize- Specified by:
initin interfaceIDataSetWrapper
-
addField
Description copied from interface:IDataSetWrapperAdd field- Specified by:
addFieldin interfaceIDataSetWrapper- Parameters:
currentField- current field, can benulldataSetField- field, can't benull- Throws:
DcsPathException
-
fillDataSetFields
public V8Commands.CompoundV8Command fillDataSetFields(List<DcsDataSetInfoAvailableFieldInfo> avialableFields) FillsDataSet.getFields()fromDcsDataSetInfoAvailableFieldInfofields- Parameters:
avialableFields-DcsDataSetInfoAvailableFieldInfofields for creating DataSetField by them, can't benull- Returns:
V8Commands.CompoundV8Commandwith information of changing ofDataSet, nevernull
-
moveField
Description copied from interface:IDataSetWrapperMove field- Specified by:
moveFieldin interfaceIDataSetWrapper- Parameters:
field- field, can't benullparentPathNew- destination folder path ornull(empty) for root
-
getFieldsWrappers
Description copied from interface:IDataSetWrapperGet fields wrappers- Specified by:
getFieldsWrappersin interfaceIDataSetWrapper- Returns:
- collection of fields wrappers, never
null
-
getChildFields
Description copied from interface:IDataSetWrapperGet child fields or root fields- Specified by:
getChildFieldsin interfaceIDataSetWrapper- Parameters:
parentField- parent field, can't benull- Returns:
- list of fields, never
null
-
getFieldName
Description copied from interface:IDataSetWrapperGet 'Field' property of field- Specified by:
getFieldNamein interfaceIDataSetWrapper- Parameters:
field- field, can't benull- Returns:
- value of 'Field' property
name from source, never
null, empty for folder
-
getFieldParentPath
Description copied from interface:IDataSetWrapperGet path of field parent- Specified by:
getFieldParentPathin interfaceIDataSetWrapper- Parameters:
field- field, can't benull- Returns:
- path of field parent, can be
null
-
getAncestorField
Description copied from interface:IDataSetWrapperGet ancestor for field- Specified by:
getAncestorFieldin interfaceIDataSetWrapper- Parameters:
field- field, can't benull- Returns:
- ancestor if exists or
null
-
getFieldSynonym
Description copied from interface:IDataSetWrapperGet field synonym- Specified by:
getFieldSynonymin interfaceIDataSetWrapper- Parameters:
path- path of field, can't benull- Returns:
- synonym or
null
-
getFieldUseRestriction
Description copied from interface:IDataSetWrapperGet field use restriction- Specified by:
getFieldUseRestrictionin interfaceIDataSetWrapper- Parameters:
path- path of field, can't benull- Returns:
- restriction or
null
-
getFieldVisibilityRestriction
Description copied from interface:IDataSetWrapperGet field visibility restriction- Specified by:
getFieldVisibilityRestrictionin interfaceIDataSetWrapper- Parameters:
path- path of field, can't benull- Returns:
- restriction or
nullif no restrictions present
-
getField
Description copied from interface:IDataSetWrapperGet field- Specified by:
getFieldin interfaceIDataSetWrapper- Parameters:
path- field path, can't benull- Returns:
- field or
nullif field not found
-
getFieldPath
Description copied from interface:IDataSetWrapperGet 'Data path' property of field- Specified by:
getFieldPathin interfaceIDataSetWrapper- Parameters:
field- field, can't benull- Returns:
- value of 'Data path' property, never
null
-
createPath
Description copied from interface:IDataSetWrapperCreate path from string- Specified by:
createPathin interfaceIDataSetWrapper- Parameters:
path- string path, nevernull- Returns:
- DCS path, never
null - Throws:
IDataSetFieldsWrapper.FieldRenameException- if path is not valid
-
createFieldWrapper
Create field wrapper- Parameters:
field- field, can't benull- Returns:
- wrapper or
nullif field type unknown
-
fillFieldsWrappers
Fills wrapper fields- Parameters:
fields- fields for wrapping, can't benull
-
addFieldWrapper
Add field wrapper- Parameters:
fieldWrapper- wrapper, can't benull
-