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
 
 public abstract class DataSetWrapperBase<T extends DataSet> extends Object implements IDataSetWrapper Base implementation ofIDataSetWrapper
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrapperIDataSetWrapper.FieldRestriction, IDataSetWrapper.FieldSynonym
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected TdataSetprotected DataSetsFieldsTreefieldsTreeprotected Map<DataSetField,IDataSetFieldsWrapper>fieldsWrappersprotected Map<String,IDataSetFieldsWrapper>fieldsWrappersByNameprotected Map<String,IDataSetWrapper.FieldRestriction>restrictionsprotected Map<String,IDataSetWrapper.FieldSynonym>synonyms
 - 
Constructor SummaryConstructors Constructor Description DataSetWrapperBase(T dataSet)Constructor
 - 
Method Summary- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrappercopyField, getCurrentAlias, getCurrentLanguageCode, removeField, setFieldAttrUseRestiction, setFieldName, setFieldPath, setFieldTitle, setFieldUseRestiction
 
- 
 
- 
- 
- 
Field Detail- 
fieldsTreeprotected DataSetsFieldsTree fieldsTree 
 - 
fieldsWrappersprotected Map<DataSetField,IDataSetFieldsWrapper> fieldsWrappers 
 - 
fieldsWrappersByNameprotected Map<String,IDataSetFieldsWrapper> fieldsWrappersByName 
 - 
synonymsprotected Map<String,IDataSetWrapper.FieldSynonym> synonyms 
 - 
restrictionsprotected Map<String,IDataSetWrapper.FieldRestriction> restrictions 
 
- 
 - 
Method Detail- 
initpublic void init() Description copied from interface:IDataSetWrapperInitialize- Specified by:
- initin interface- IDataSetWrapper
 
 - 
addFieldpublic void addField(DataSetField currentField, DataSetField field) throws DcsPathException Description copied from interface:IDataSetWrapperAdd field- Specified by:
- addFieldin interface- IDataSetWrapper
- Parameters:
- currentField- current field, can be- null
- field- field, can't be- null
- Throws:
- DcsPathException
 
 - 
fillDataSetFieldspublic V8Commands.CompoundV8Command fillDataSetFields(List<DcsDataSetInfoAvailableFieldInfo> avialableFields) FillsDataSet.getFields()fromDcsDataSetInfoAvailableFieldInfofields- Parameters:
- avialableFields-- DcsDataSetInfoAvailableFieldInfofields for creating DataSetField by them, can't be- null
- Returns:
- V8Commands.CompoundV8Commandwith information of changing of- DataSet, never- null
 
 - 
moveFieldpublic void moveField(DataSetField field, String parentPathNew) Description copied from interface:IDataSetWrapperMove field- Specified by:
- moveFieldin interface- IDataSetWrapper
- Parameters:
- field- field, can't be- null
- parentPathNew- destination folder path or- null(empty) for root
 
 - 
getFieldsWrapperspublic Collection<IDataSetFieldsWrapper> getFieldsWrappers() Description copied from interface:IDataSetWrapperGet fields wrappers- Specified by:
- getFieldsWrappersin interface- IDataSetWrapper
- Returns:
- collection of fields wrappers, never null
 
 - 
getChildFieldspublic List<DataSetField> getChildFields(DataSetField parentField) Description copied from interface:IDataSetWrapperGet child fields or root fields- Specified by:
- getChildFieldsin interface- IDataSetWrapper
- Parameters:
- parentField- parent field, can't be- null
- Returns:
- list of fields, never null
 
 - 
getFieldNamepublic String getFieldName(DataSetField field) Description copied from interface:IDataSetWrapperGet 'Field' property of field- Specified by:
- getFieldNamein interface- IDataSetWrapper
- Parameters:
- field- field, can't be- null
- Returns:
- value of 'Field' property
  name from source, never null, empty for folder
 
 - 
getFieldParentPathpublic String getFieldParentPath(DataSetField field) Description copied from interface:IDataSetWrapperGet path of field parent- Specified by:
- getFieldParentPathin interface- IDataSetWrapper
- Parameters:
- field- field, can't be- null
- Returns:
- path of field parent, can be null
 
 - 
getAncestorFieldpublic DataSetField getAncestorField(DataSetField field) Description copied from interface:IDataSetWrapperGet ancestor for field- Specified by:
- getAncestorFieldin interface- IDataSetWrapper
- Parameters:
- field- field, can't be- null
- Returns:
- ancestor if exists or null
 
 - 
getFieldSynonympublic IDataSetWrapper.FieldSynonym getFieldSynonym(String path) Description copied from interface:IDataSetWrapperGet field synonym- Specified by:
- getFieldSynonymin interface- IDataSetWrapper
- Parameters:
- path- path of field, can't be- null
- Returns:
- synonym or null
 
 - 
getFieldRestrictionpublic IDataSetWrapper.FieldRestriction getFieldRestriction(String path) Description copied from interface:IDataSetWrapperGet field restriction- Specified by:
- getFieldRestrictionin interface- IDataSetWrapper
- Parameters:
- path- path of field, can't be- null
- Returns:
- restriction or null
 
 - 
getFieldpublic DataSetField getField(String path) Description copied from interface:IDataSetWrapperGet field- Specified by:
- getFieldin interface- IDataSetWrapper
- Parameters:
- path- field path, can't be- null
- Returns:
- field or nullif field not found
 
 - 
getFieldPathpublic String getFieldPath(DataSetField field) Description copied from interface:IDataSetWrapperGet 'Data path' property of field- Specified by:
- getFieldPathin interface- IDataSetWrapper
- Parameters:
- field- field, can't be- null
- Returns:
- value of 'Data path' property, never null
 
 - 
createPathpublic DcsPath createPath(String path) throws IDataSetFieldsWrapper.FieldRenameException Description copied from interface:IDataSetWrapperCreate path from string- Specified by:
- createPathin interface- IDataSetWrapper
- Parameters:
- path- string path, never- null
- Returns:
- DCS path, never null
- Throws:
- IDataSetFieldsWrapper.FieldRenameException- if path is not valid
 
 - 
createFieldWrapperprotected IDataSetFieldsWrapper createFieldWrapper(DataSetField field) Create field wrapper- Parameters:
- field- field, can't be- null
- Returns:
- wrapper or nullif field type unknown
 
 - 
fillFieldsWrappersprotected void fillFieldsWrappers(List<DataSetField> fields) Fills wrapper fields- Parameters:
- fields- fields for wrapping, can't be- null
 
 - 
addFieldWrapperprotected void addFieldWrapper(IDataSetFieldsWrapper fieldWrapper) Add field wrapper- Parameters:
- fieldWrapper- wrapper, can't be- null
 
 
- 
 
-