|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.gcubemodellibrary.elements.InnerElements<T>
T - the element type.public class InnerElements<T extends BaseInnerElement>
Group of typed elements of the document.
| Method Summary | |
|---|---|
T |
add(T e)
Adds an element to the document, binding the element to the document. |
boolean |
contains(java.lang.String id)
Indicates the existence of an element. |
T |
get(java.lang.String id)
Returns an element. |
java.util.Iterator<T> |
iterator()
|
T |
remove(java.lang.String id)
Removes an element. |
void |
remove(T e)
Removes an element from the document. |
int |
size()
|
java.util.List<T> |
toList()
Returns the elements. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public T add(T e)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
e - the element.
null if no element was replaced.
java.lang.IllegalArgumentException - if the element is not new (has an identifier) but the document is already tracked for changes.
java.lang.IllegalStateException - if the element is already bound to another document
public T get(java.lang.String id)
throws java.lang.IllegalStateException
id - the element's identifier.
java.lang.IllegalStateException - if an element with the given identifier does not exist.public boolean contains(java.lang.String id)
id - the element's identifier.
true if an element with the given identifier exists, false otherwise.
public T remove(java.lang.String id)
throws java.lang.IllegalStateException
id - the element's identifier.
java.lang.IllegalStateException - if an element with the given identifier does not exist.
public void remove(T e)
throws java.lang.IllegalStateException
e - the element.
java.lang.IllegalStateException - if the element does not exist.public java.util.List<T> toList()
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends BaseInnerElement>public int size()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||