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