Class DataSetsFieldsTree
java.lang.Object
com._1c.g5.v8.dt.dcs.dataset.fields.DataSetsFieldsTree
Object containing information about fake fields tree
-
Constructor Summary
ConstructorsConstructorDescriptionDataSetsFieldsTree
(Collection<IDataSetFieldsWrapper> fieldsWrappers) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFieldWrapper
(IDataSetFieldsWrapper fieldWrapper) Add filed wrappergetAncestor
(IDataSetFieldsWrapper fieldWrapper) Get ancestor of field (nearest existing folder ot table)getChildren
(IDataSetFieldsWrapper fieldWrapper) Get first level children of fieldgetFieldWrapper
(String path) Get field wrapper by pathgetParentPath
(IDataSetFieldsWrapper fieldWrapper) Get path of parent field (parent field may does not exist)void
removeFieldWrapper
(String path) Remove field wrapper by path
-
Constructor Details
-
DataSetsFieldsTree
Constructor- Parameters:
fieldsWrappers
- fields wrappers, can't be null
-
-
Method Details
-
getAncestor
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)
-
getChildren
Get first level children of field- Parameters:
fieldWrapper
- field wrapper, can be null (when method returns root fields)- Returns:
- list of fields, never null
-
getFieldWrapper
Get field wrapper by path- Parameters:
path
- field path, can't be null- Returns:
- wrapper or null if field was not found
-
getParentPath
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
-
addFieldWrapper
Add filed wrapper- Parameters:
fieldWrapper
- field wrapper, can't be null
-
removeFieldWrapper
Remove field wrapper by path- Parameters:
path
- field path, can't be null
-