| java.util.HashSet org.cougaar.tools.csmart.ui.viewer.UniqueNameSet
All known Subclasses: org.cougaar.tools.csmart.ui.viewer.OrganizerNameSet,
Constructor Summary | |
public | UniqueNameSet(String prefix) Construct an object which can generate unique names
from the specified prefix. |
Method Summary | |
public String | generateName() Get a unique name for an object. | public String | generateName(String name) Generate a unique name from the given name by appending
a bracketed counter to it. | public void | init(Object[] things, Method getNameMethod) Initialize the unique name set with a set of objects,
using the specified method to get the names of those objects. |
UniqueNameSet | public UniqueNameSet(String prefix)(Code) | | Construct an object which can generate unique names
from the specified prefix.
Parameters: prefix - the prefix to use in the unique names |
generateName | public String generateName()(Code) | | Get a unique name for an object.
the unique name |
generateName | public String generateName(String name)(Code) | | Generate a unique name from the given name by appending
a bracketed counter to it.
Parameters: name - the name to use as the base a new unique name |
init | public void init(Object[] things, Method getNameMethod)(Code) | | Initialize the unique name set with a set of objects,
using the specified method to get the names of those objects.
Parameters: things - an array of objects used to initialize the unique name set Parameters: getNameMethod - the Method to get the name of an object |
|
|