cdqa.iterator
Class CreateElementIterator

java.lang.Object
  extended by cdqa.iterator.Iterator
      extended by cdqa.iterator.CreateElementIterator

public class CreateElementIterator
extends Iterator

Tested this new version with the following use cases :

 ;
 
=> OK
 ;
 
=> OK
 <"ns:test" "xmlns:ns"="http://MyTest">;
 
=> OK
 <"rdf:RDF" "xmlns:rdf"="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <"foaf:Organization" "xmlns:foaf"="http://xmlns.com/foaf/0.1">
     <"foaf:name" "xmlns:foaf"="http://xmlns.com/foaf/0.1">"INRIA Futurs",
     <"foaf:homepage" "xmlns:foaf"="http://xmlns.com/foaf/0.1"
       "xmlns:rdf"="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       "rdf:resource"="http://www-futurs.inria.fr">,
     <"foaf:member" "xmlns:foaf"="http://xmlns.com/foaf/0.1"
       "xmlns:rdf"="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       "rdf:nodeID"="gemo">
   
 ;
 
=> OK

Version:
$Id: CreateElementIterator.java,v 1.2 2006/01/17 07:51:55 simonkm Exp $
Author:
baumgart, $Author: simonkm $

Nested Class Summary
 
Nested classes/interfaces inherited from class cdqa.iterator.Iterator
Iterator.IteratorManager
 
Field Summary
(package private)  java.util.ArrayList attributes
           
(package private)  ListIterator content
           
(package private)  Iterator name
           
 
Fields inherited from class cdqa.iterator.Iterator
current, initValue, NULL
 
Constructor Summary
CreateElementIterator(Iterator name, java.util.ArrayList attributes, ListIterator content)
           
 
Method Summary
(package private)  XString firstString(Iterator i)
           
 void postInit()
          initializes name, then attributes and finally the content
 void preClose()
          does nothing
 XObject pumpNext()
           
 
Methods inherited from class cdqa.iterator.Iterator
aggreg, all, and, asBooleanIterator, close, constant, constant, constant, constant, constant, debugPrint, empty, exist, getCurrent, init, init, join, join, list, ljoin, ljoin, map, mapL, mapL, mapL, mTOm, next, not, or, rjoin, rjoin, scan, scan, theFalseIterator, theTrueIterator, toPrintWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

Iterator name

attributes

java.util.ArrayList attributes

content

ListIterator content
Constructor Detail

CreateElementIterator

public CreateElementIterator(Iterator name,
                             java.util.ArrayList attributes,
                             ListIterator content)
Parameters:
name -
attributes -
content -
Method Detail

postInit

public void postInit()
initializes name, then attributes and finally the content

Specified by:
postInit in class Iterator

preClose

public void preClose()
does nothing

Specified by:
preClose in class Iterator

firstString

XString firstString(Iterator i)
Parameters:
i -
Returns:

pumpNext

public XObject pumpNext()
Specified by:
pumpNext in class Iterator