Package com.pnfsoftware.jeb.core.units
Interface IMetadataManager
- All Known Implementing Classes:
MetadataManager
Definition of a metadata manager.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroup
(IMetadataGroup group) Add a group.getGroupByName
(String name) Get a group by its name.int
Retrieve the number of groups.List<? extends IMetadataGroup>
Get the list of groups.boolean
insertGroup
(int index, IMetadataGroup group) Insert a group at the given position.boolean
removeGroup
(int index) Delete a group by index.boolean
removeGroupByName
(String name) Delete a group by name.
-
Method Details
-
getGroups
List<? extends IMetadataGroup> getGroups()Get the list of groups.- Returns:
- the groups, possibly empty but non-null
-
getGroupCount
int getGroupCount()Retrieve the number of groups.- Returns:
- the number of groups
-
getGroupByName
Get a group by its name.- Parameters:
name
- group name- Returns:
-
addGroup
Add a group.- Parameters:
group
- group to add- Returns:
-
insertGroup
Insert a group at the given position.- Parameters:
index
- positiongroup
- group to add- Returns:
-
removeGroup
boolean removeGroup(int index) Delete a group by index.- Parameters:
index
- group index- Returns:
-
removeGroupByName
Delete a group by name.- Parameters:
name
- group name
-