Class DataPathConverter
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.datapath.impl.DataPathConverter
-
- All Implemented Interfaces:
IDataPathConverter
public class DataPathConverter extends Object implements IDataPathConverter
The default implementation ofIDataPathConverter
.
-
-
Constructor Summary
Constructors Constructor Description DataPathConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(AbstractDataPath path, FormItemContainer context, Form form)
This method checks opportunity to convert a data path.AbstractDataPath
convert(AbstractDataPath path, FormItemContainer context, Form form)
The method converts a data path for use in contextual object.boolean
needConvert(AbstractDataPath path, FormItemContainer context, Form form)
The method checks need to convert a path.
-
-
-
Method Detail
-
convert
public AbstractDataPath convert(AbstractDataPath path, FormItemContainer context, Form form)
The method converts a data path for use in contextual object. If converting is not possible throws anIllegalStateException
. If the path doesn't need converting returns the current path.- Specified by:
convert
in interfaceIDataPathConverter
- Parameters:
path
- is converted path.context
- is contextual object for convertion.form
- the form in which defines the path.- Returns:
- The converted path.
-
canConvert
public boolean canConvert(AbstractDataPath path, FormItemContainer context, Form form)
This method checks opportunity to convert a data path.- Specified by:
canConvert
in interfaceIDataPathConverter
- Parameters:
path
- is checked path.context
- is contextual object for convertion.form
- the form in which defines the path.- Returns:
true
- if converter can to convert this path, otherwise returnsfalse
-
needConvert
public boolean needConvert(AbstractDataPath path, FormItemContainer context, Form form)
The method checks need to convert a path. If converting is not possible throws anIllegalStateException
.- Specified by:
needConvert
in interfaceIDataPathConverter
- Parameters:
path
- is checked path.context
- is contextual object for convertion.form
- the form in which defines the path.- Returns:
true
- if convertation does need ,false
- if doesnot need.
-
-