Package com.pnfsoftware.jeb.core.units
Class MetadataManager
java.lang.Object
com.pnfsoftware.jeb.core.units.MetadataManager
- All Implemented Interfaces:
IMetadataManager
A simple implementation of a metadata manager. Such objects are serializable if and only if all
the groups they contain are also serializable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroup(IMetadataGroup group) Add a group.getGroupByName(String name) Get a group by its name.intRetrieve the number of groups.Get the list of groups.booleaninsertGroup(int index, IMetadataGroup group) Insert a group at the given position.booleanremoveGroup(int index) Delete a group by index.booleanremoveGroupByName(String name) Delete a group by name.
-
Constructor Details
-
MetadataManager
public MetadataManager()
-
-
Method Details
-
getGroups
Description copied from interface:IMetadataManagerGet the list of groups.- Specified by:
getGroupsin interfaceIMetadataManager- Returns:
- the groups, possibly empty but non-null
-
getGroupCount
public int getGroupCount()Description copied from interface:IMetadataManagerRetrieve the number of groups.- Specified by:
getGroupCountin interfaceIMetadataManager- Returns:
- the number of groups
-
getGroupByName
Description copied from interface:IMetadataManagerGet a group by its name.- Specified by:
getGroupByNamein interfaceIMetadataManager- Parameters:
name- group name- Returns:
-
addGroup
Description copied from interface:IMetadataManagerAdd a group.- Specified by:
addGroupin interfaceIMetadataManager- Parameters:
group- group to add- Returns:
-
insertGroup
Description copied from interface:IMetadataManagerInsert a group at the given position.- Specified by:
insertGroupin interfaceIMetadataManager- Parameters:
index- positiongroup- group to add- Returns:
-
removeGroup
public boolean removeGroup(int index) Description copied from interface:IMetadataManagerDelete a group by index.- Specified by:
removeGroupin interfaceIMetadataManager- Parameters:
index- group index- Returns:
-
removeGroupByName
Description copied from interface:IMetadataManagerDelete a group by name.- Specified by:
removeGroupByNamein interfaceIMetadataManager- Parameters:
name- group name
-