public interface ModelItemContainer
Modifier and Type | Method and Description |
---|---|
default ModelItem |
getChild(String childName)
Retrieves the child model item with the given name
|
default ModelItem |
getModelItem(String itemPath)
Retrieves the model item at given path
|
Collection<? extends ModelItem> |
getModelItems()
Retrieves all the model items of this container
|
default boolean |
hasModelItem(String itemPath)
Checks if there is an item defined with the given path
|
default ModelItem getChild(String childName)
childName
- name of the model item child to retrievenull
if no child is founddefault ModelItem getModelItem(String itemPath) throws UndefinedItemPathException
itemPath
- the item pathUndefinedItemPathException
- if there is no item defined at the given pathdefault boolean hasModelItem(String itemPath)
itemPath
- path of the itemtrue
if there is an item, false
otherwiseCollection<? extends ModelItem> getModelItems()