com.togethersoft.openapi.model.extension
Interface ParentProvider
- public interface ParentProvider
- extends Provider
Provider implementing this interface is responsible for the generation of
the unique name of a parent element for the given element. Basically the
parent UIN is known to the model and there is no need to ask providers.
However, it is possible that element is instantiated without parent although
there is one in the universe. It can happen, for example, after invocation of
Model.findElement(). Aim of this provider is to provide some
good parent for such elements. Provider should return unique name
of the parent element, if it can. If provider knows nothing about
parent of the element, it should return null.
- Author:
- TogetherSoft
| Method Summary |
String | getParent(Element child) Provider should return UIN of the parent element for child,
if it can. |
getParent
public String getParent(Element child)
Provider should return UIN of the parent element for child,
if it can. If provider knows nothing about parent, it should return
null.
The result of collaborative execution of this method for multiple
unique name providers registered in the model is the first non-null value
returned from this method by some provider.
- Returns: Unique name of the parent element