Method Summary |
|
public boolean | add(Object object) Ensures that this collection contains the specified object. |
public boolean | addAuthorityCode(String code) Ensures that this collection contains an object for the specified authority code.
The
will be created from the specified
code only when first needed. |
public void | clear() Removes all of the elements from this collection. |
public boolean | contains(Object object) Returns
true if this collection contains the specified object. |
protected IdentifiedObject | createObject(String code) Creates an object for the specified authority code. |
protected String | getAuthorityCode(IdentifiedObject object) Returns the code to uses as a key for the specified object. |
public String[] | getAuthorityCodes() Returns the
of all objects in this set.
The returned array contains the codes in iteration order. |
protected boolean | isRecoverableFailure(FactoryException exception) Returns
true if the specified exception should be handled as a recoverable failure.
This method is invoked during the iteration process if the factory failed to create some
object. |
public Iterator | iterator() Returns an iterator over the objects in this set. |
static void | log(FactoryException exception, String code) Log an message for the specified exception. |
public boolean | remove(Object object) Removes a single instance of the specified element from this collection,
if it is present. |
public boolean | removeAll(Collection collection) Removes from this collection all of its elements that are contained in
the specified collection. |
public void | resolve(int n) Ensures that the n first objects in this set are created. |
public void | setAuthorityCodes(String[] codes) Set the content of this set as an array of authority codes. |
public int | size() Returns the number of objects available in this set. |
protected Object | writeReplace() Returns a serializable copy of this set. |