I need to support UI client which has nested components. I have come up with below object model -
public class SomeUserInterface {
String name;
List<Component> components;
}
public class Component {
List <Component> components;
}
Here, SomeUserInterface will have multiple Components and each Component may have nested Components inside it. Is there any issue in the proposed object model? Or what is the best way to support nested components?
Note : SomeUserInterface and Component are not identical classes. SomeUserInterface can contain Component but vice-versa is not true.