|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLListIteratorInterface
A interface XMLListIteratorInterface define as operações
necessárias a iteradores de listas de elementos XML da forma como estes são
retornados pelo parser.
| Field Summary | |
|---|---|
static String |
ANY
Tag usada para iterar sobre qualquer elemento |
| Method Summary | |
|---|---|
String |
getTag()
Retorna a tag de referência para o iterador (o valor que será usado na comparação com os elementos da lista). |
boolean |
hasNext()
Indica se existe mais algum elemento na lista cuja tag seja igual à solicitada. |
XMLElementInterface |
next()
Retorna o próximo elemento com tipo igual ao que vínhamos buscando ou null caso não haja mais elementos deste tipo. |
XMLElementInterface |
next(String tag)
Obtém o próximo elemento da lista que possui a tag desejada, ou null caso não haja mais elementos com esta tag. Se a tag solicitada é a mesma que vínhamos buscando, simplesmente continuamos a iteração. |
void |
reset()
Reinicializa o iterador, usando a tag ANY como tag de busca. |
void |
reset(String tag)
Reinicializa o iterador, redefinindo a tag de busca. |
| Field Detail |
|---|
static final String ANY
| Method Detail |
|---|
void reset(String tag)
tag - nova tag de buscavoid reset()
XMLElementInterface next()
XMLElementInterface next(String tag)
tag - nova tag de busca
boolean hasNext()
true se o elemento seguinte na lista possui tag
igual à tag de busca, false caso contrário.String getTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||