public class

MetadataManager

extends Object
implements IMetadataManager
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.MetadataManager

Class Overview

A simple implementation of a metadata manager. Such objects are serializable if and only if all the groups they contain are also serializable.

Summary

Public Constructors
MetadataManager()
Public Methods
boolean addGroup(IMetadataGroup group)
Add a group.
IMetadataGroup getGroupByName(String name)
Get a group by its name.
int getGroupCount()
Retrieve the number of groups.
List<IMetadataGroup> getGroups()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.IMetadataManager

Public Constructors

public MetadataManager ()

Public Methods

public boolean addGroup (IMetadataGroup group)

Add a group.

Parameters
group group to add

public IMetadataGroup getGroupByName (String name)

Get a group by its name.

Parameters
name group name

public int getGroupCount ()

Retrieve the number of groups.

Returns
  • the number of groups

public List<IMetadataGroup> getGroups ()

Get the list of groups.

Returns
  • the groups, possibly empty but non-null

public boolean insertGroup (int index, IMetadataGroup group)

Insert a group at the given position.

Parameters
index position
group group to add

public boolean removeGroup (int index)

Delete a group by index.

Parameters
index group index

public boolean removeGroupByName (String name)

Delete a group by name.

Parameters
name group name