|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.NamedObjectCollectionUtil
public final class NamedObjectCollectionUtil
Static utilitiy methods for managing collections of NamedObject objects.
| Method Summary | |
|---|---|
static java.lang.String |
createUniqueId(java.util.Collection toInsert,
java.util.Collection inserted,
java.util.Collection base,
java.lang.String typeName)
Creates a unique id among objects in two collections. |
static java.lang.String |
createUniqueId(java.util.Collection c,
java.lang.String typeName)
Creates a unique id among objects in a collection beginning with the specified type name. |
static void |
createUniqueName(DescriptionObject element,
java.util.Collection base)
Renames the given element in such a way, that the element name doesn't conflict with an element of the given collection. |
static void |
createUniqueNames(java.util.Collection toInsert,
java.util.Collection base)
Renames the elements of the first collection in such a way, that the element names do not conflict with the elements of the given base collection. |
static DescriptionObject |
getByName(java.util.Collection c,
java.lang.String name)
Searches a collection for an object with a particular name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DescriptionObject getByName(java.util.Collection c,
java.lang.String name)
DescriptionObject interface
in order to be found. Objects that do not implement this interface
will be skipped.
c - Collection to search or nullname - Object name to search for or null
public static java.lang.String createUniqueId(java.util.Collection c,
java.lang.String typeName)
c - Collection containing DescriptionObject itemstypeName - The type name to use as base name
public static java.lang.String createUniqueId(java.util.Collection toInsert,
java.util.Collection inserted,
java.util.Collection base,
java.lang.String typeName)
toInsert - Collection containing DescriptionObject items that shall be inserted into the targetinserted - Collection containing DescriptionObject items that have been inserted into the target
(but are not present yet in the base collection)base - Collection containing DescriptionObject items already present in the targettypeName - The type name to use as base name, should be a name present in insert
public static void createUniqueNames(java.util.Collection toInsert,
java.util.Collection base)
toInsert - Changeable collection of DescriptionObject itemsbase - Collection of DescriptionObject items
public static void createUniqueName(DescriptionObject element,
java.util.Collection base)
element - Element to renamebase - Collection of DescriptionObject items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||