|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface modeling a collection of extensions.
| Method Summary | |
void |
add(Extension ext)
Adds an extension to this Extensions collection. |
Extension |
get(java.lang.String xidentifier)
Returns the extension with the given identifier. |
Extension |
get(java.lang.String xidentifier,
int idx)
Returns the extension with the given identifier and the given index. |
java.util.Iterator |
iterator(java.lang.String xidentifier)
Returns an iterator over all elements of this Extensions collection with a given identifier. |
Extension[] |
list(java.lang.String xidentifier)
Returns a list of extensions with the given identifier. |
java.lang.String[] |
listIdentifiers()
Returns a list identifiers of all extensions in this Extensions collection. |
void |
remove(Extension ext)
Removes the given extension from this Extensions collection. |
void |
remove(java.lang.String xidentifier)
Removes all extensions with the given identifier from this Extensions collection. |
Extension |
remove(java.lang.String xidentifier,
int idx)
Removes the extension with the given identifier and index from this Extensions collection. |
int |
size()
Returns the total number of extensions associated with this Extensions collection. |
int |
size(java.lang.String xidentifier)
Returns the number of extensions associated with this Extensions collection with a given identifier. |
| Method Detail |
public java.lang.String[] listIdentifiers()
public java.util.Iterator iterator(java.lang.String xidentifier)
xidentifier - an identifier as String.
public Extension[] list(java.lang.String xidentifier)
xidentifier - an identifier as String.
public Extension get(java.lang.String xidentifier)
xidentifier - an identifier as String.
public Extension get(java.lang.String xidentifier,
int idx)
throws java.lang.IndexOutOfBoundsException
xidentifier - an identifier as String.idx - the index as int.
java.lang.IndexOutOfBoundsException - if the index is
out of bounds.public void add(Extension ext)
ext - the Extension to be added.public void remove(Extension ext)
ext - the extension as Extension instance.public void remove(java.lang.String xidentifier)
xidentifier - an identifier as String.
public Extension remove(java.lang.String xidentifier,
int idx)
throws java.lang.IndexOutOfBoundsException
xidentifier - an identifier as String.idx - the index as int.
java.lang.IndexOutOfBoundsException - if the index is
out of bounds.public int size()
public int size(java.lang.String xidentifier)
xidentifier - an identifier as String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||