Class DataSourceInfoAssociationService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.datasourceinfo.impl.DataSourceInfoAssociationService
-
- All Implemented Interfaces:
IDataSourceInfoAssociationService
public class DataSourceInfoAssociationService extends Object implements IDataSourceInfoAssociationService
The default implementation ofIDataSourceInfoAssociationService
-
-
Constructor Summary
Constructors Constructor Description DataSourceInfoAssociationService()
-
Method Summary
-
-
-
Method Detail
-
findPropertyInfo
public PropertyInfo findPropertyInfo(Form form, AbstractDataPath path)
Search relatedPropertyInfo
by data path- Specified by:
findPropertyInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objectspath
- the path for which the relatedPropertyInfo
is looked for- Returns:
- returns the related
PropertyInfo
, if it wasn't found returnsnull
-
findPropertyInfo
public PropertyInfo findPropertyInfo(Form form, AbstractFormAttribute attribute)
Search relatedPropertyInfo
by attribute.- Specified by:
findPropertyInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects.attribute
- the attribute for which the relatedPropertyInfo
is looked for. (can not benull
)- Returns:
- returns the related
PropertyInfo
, if it wasn't found returnsnull
-
findElementDataSourceInfo
public ElementDataSourceInfo findElementDataSourceInfo(Form form, AbstractDataPath path)
Search relatedElementDataSourceInfo
by data path.- Specified by:
findElementDataSourceInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objectspath
- the path for which the relatedElementDataSourceInfo
is looked for. Has to contain only elements path- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
-
findRelativelySourceItem
public ElementDataSourceInfo findRelativelySourceItem(Table source)
Search relatedElementDataSourceInfo
by source form item- Specified by:
findRelativelySourceItem
in interfaceIDataSourceInfoAssociationService
- Parameters:
source
- the source which can provideElementDataSourceInfo
's- Returns:
- related
ElementDataSourceInfo
of source, ornull
if a form item doesn't act as a source
-
findRelativelySourceItem
public ElementDataSourceInfo findRelativelySourceItem(Table source, AbstractDataPath path)
Search relatedElementDataSourceInfo
by source a data path- Specified by:
findRelativelySourceItem
in interfaceIDataSourceInfoAssociationService
- Parameters:
source
- the source which can provideElementDataSourceInfo
'spath
- the path- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
.
-
getRelatedElementDataSourceInfo
public ElementDataSourceInfo getRelatedElementDataSourceInfo(Form form, PropertyInfo info)
Search relatedElementDataSourceInfo
by property info.- Specified by:
getRelatedElementDataSourceInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects.info
- the info for which the relatedElementDataSourceInfo
is looked for. (can not benull
)- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
.
-
findRelativelyElementDataSourceInfo
public ElementDataSourceInfo findRelativelyElementDataSourceInfo(Form form, ElementDataSourceInfo start, AbstractDataPath path)
Search relatedElementDataSourceInfo
by element data source info with data path.- Specified by:
findRelativelyElementDataSourceInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects.start
- the start element data source info for which the relatedElementDataSourceInfo
is looked for.path
- the path for search related element data source.- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
.
-
getRelatedElementDataSourceInfo
public ElementDataSourceInfo getRelatedElementDataSourceInfo(Form form, AbstractDataPath context, PropertyInfo info)
Search relatedElementDataSourceInfo
by property info start form contextPath.- Specified by:
getRelatedElementDataSourceInfo
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects.context
- the elements path in which start searching. Support only element data path.(Can benull
).info
- the info for which the relatedElementDataSourceInfo
is looked for. (can not benull
)- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
.
-
isRelatedDynamicList
public boolean isRelatedDynamicList(Form form, AbstractDataPath dataPath)
Description copied from interface:IDataSourceInfoAssociationService
Checks whether the given data path is related to dynamic list or not.- Specified by:
isRelatedDynamicList
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects, can't benull
dataPath
- the path for search related element data source, can't benull
- Returns:
- boolean
-
isPathResolved
public boolean isPathResolved(Form form, AbstractDataPath dataPath)
Description copied from interface:IDataSourceInfoAssociationService
Checks whether the given data path is resolved or not.- Specified by:
isPathResolved
in interfaceIDataSourceInfoAssociationService
- Parameters:
form
- the form which contains required objects, can't benull
- Returns:
- boolean
-
-