Interface IDataSourceInfoAssociationService
-
- All Known Implementing Classes:
DataSourceInfoAssociationService
public interface IDataSourceInfoAssociationService
This service provides information about an objects ofAbstractFormDataSourceInfo
for various a related objects.- See Also:
PropertyInfo
,ElementDataSourceInfo
-
-
Method Summary
-
-
-
Method Detail
-
findPropertyInfo
PropertyInfo findPropertyInfo(Form form, AbstractDataPath path)
Search relatedPropertyInfo
by data path- 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
- Throws:
NullPointerException
- if arguments(form, path) are null.IllegalArgumentException
- if path does not contain segments
-
findPropertyInfo
PropertyInfo findPropertyInfo(Form form, AbstractFormAttribute attribute)
Search relatedPropertyInfo
by attribute.- 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
ElementDataSourceInfo findElementDataSourceInfo(Form form, AbstractDataPath path)
Search relatedElementDataSourceInfo
by data path.- 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
- Throws:
NullPointerException
- if arguments(form, path) are null.IllegalArgumentException
- if path does not contain segments. Or path is not the element data path
-
findRelativelySourceItem
ElementDataSourceInfo findRelativelySourceItem(Table source)
Search relatedElementDataSourceInfo
by source form item- 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
ElementDataSourceInfo findRelativelySourceItem(Table source, AbstractDataPath path)
Search relatedElementDataSourceInfo
by source a data path- Parameters:
source
- the source which can provideElementDataSourceInfo
'spath
- the path- Returns:
- returns the related
ElementDataSourceInfo
, if it wasn't found returnsnull
.
-
getRelatedElementDataSourceInfo
ElementDataSourceInfo getRelatedElementDataSourceInfo(Form form, PropertyInfo info)
Search relatedElementDataSourceInfo
by property info.- 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
.
-
getRelatedElementDataSourceInfo
ElementDataSourceInfo getRelatedElementDataSourceInfo(Form form, AbstractDataPath contextPath, PropertyInfo info)
Search relatedElementDataSourceInfo
by property info start form contextPath.- Parameters:
form
- the form which contains required objects.contextPath
- 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
.
-
findRelativelyElementDataSourceInfo
ElementDataSourceInfo findRelativelyElementDataSourceInfo(Form form, ElementDataSourceInfo start, AbstractDataPath path)
Search relatedElementDataSourceInfo
by element data source info with data path.- 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
.
-
isRelatedDynamicList
boolean isRelatedDynamicList(Form form, AbstractDataPath path)
Checks whether the given data path is related to dynamic list or not.- Parameters:
form
- the form which contains required objects, can't benull
path
- the path for search related element data source, can't benull
- Returns:
- boolean
-
isPathResolved
boolean isPathResolved(Form form, AbstractDataPath dataPath)
Checks whether the given data path is resolved or not.- Parameters:
form
- the form which contains required objects, can't benull
path
- the path for search related element data source, can't benull
- Returns:
- boolean
-
-