Class DataSetsFieldsTree
- java.lang.Object
- 
- com._1c.g5.v8.dt.dcs.dataset.fields.DataSetsFieldsTree
 
- 
 public class DataSetsFieldsTree extends Object Object containing information about fake fields tree
- 
- 
Constructor SummaryConstructors Constructor Description DataSetsFieldsTree(Collection<IDataSetFieldsWrapper> fieldsWrappers)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFieldWrapper(IDataSetFieldsWrapper fieldWrapper)Add filed wrapperIDataSetFieldsWrappergetAncestor(IDataSetFieldsWrapper fieldWrapper)Get ancestor of field (nearest existing folder ot table)List<IDataSetFieldsWrapper>getChildren(IDataSetFieldsWrapper fieldWrapper)Get first level children of fieldIDataSetFieldsWrappergetFieldWrapper(String path)Get field wrapper by pathStringgetParentPath(IDataSetFieldsWrapper fieldWrapper)Get path of parent field (parent field may does not exist)voidremoveFieldWrapper(String path)Remove field wrapper by path
 
- 
- 
- 
Constructor Detail- 
DataSetsFieldsTreepublic DataSetsFieldsTree(Collection<IDataSetFieldsWrapper> fieldsWrappers) Constructor- Parameters:
- fieldsWrappers- fields wrappers, can't be null
 
 
- 
 - 
Method Detail- 
getAncestorpublic IDataSetFieldsWrapper getAncestor(IDataSetFieldsWrapper fieldWrapper) Get ancestor of field (nearest existing folder ot table)- Parameters:
- fieldWrapper- field wrapper, can't be null
- Returns:
- ancestor field wrapper or null for root field (or if ancestor does not exist)
 
 - 
getChildrenpublic List<IDataSetFieldsWrapper> getChildren(IDataSetFieldsWrapper fieldWrapper) Get first level children of field- Parameters:
- fieldWrapper- field wrapper, can be null (when method returns root fields)
- Returns:
- list of fields, never null
 
 - 
getFieldWrapperpublic IDataSetFieldsWrapper getFieldWrapper(String path) Get field wrapper by path- Parameters:
- path- field path, can't be null
- Returns:
- wrapper or null if field was not found
 
 - 
getParentPathpublic String getParentPath(IDataSetFieldsWrapper fieldWrapper) Get path of parent field (parent field may does not exist)- Parameters:
- fieldWrapper- field wrapper, can't be null
- Returns:
- path of parent field, never null
 
 - 
addFieldWrapperpublic void addFieldWrapper(IDataSetFieldsWrapper fieldWrapper) Add filed wrapper- Parameters:
- fieldWrapper- field wrapper, can't be null
 
 - 
removeFieldWrapperpublic void removeFieldWrapper(String path) Remove field wrapper by path- Parameters:
- path- field path, can't be null
 
 
- 
 
-