org.codehaus.groovy.sandbox.util
Class ComplexElementCollection

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended byorg.codehaus.groovy.sandbox.util.ElementCollection
          extended byorg.codehaus.groovy.sandbox.util.ComplexElementCollection
All Implemented Interfaces:
GroovyObject

class ComplexElementCollection
extends ElementCollection


Field Summary
private  int[] nextParentElements
           
private  java.lang.String[] parentElementNames
           
private  XmlList[] parents
           
 
Fields inherited from class groovy.lang.GroovyObjectSupport
 
Constructor Summary
ComplexElementCollection(XmlList[] parents, int[] nextParentElements, java.lang.String[] parentElementNames, java.lang.String childElementName)
           
 
Method Summary
 java.lang.Object getAt(int index)
           
 java.lang.Object getProperty(java.lang.String property)
           
protected  ElementCollection getResult(java.lang.String property)
           
 ElementIterator iterator()
          Used by the Invoker when it wants to iterate over this object
 int size()
           
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parents

private final XmlList[] parents

nextParentElements

private final int[] nextParentElements

parentElementNames

private final java.lang.String[] parentElementNames
Constructor Detail

ComplexElementCollection

public ComplexElementCollection(XmlList[] parents,
                                int[] nextParentElements,
                                java.lang.String[] parentElementNames,
                                java.lang.String childElementName)
Method Detail

getResult

protected ElementCollection getResult(java.lang.String property)
Specified by:
getResult in class ElementCollection

iterator

public ElementIterator iterator()
Used by the Invoker when it wants to iterate over this object

Specified by:
iterator in class ElementCollection
Returns:

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface GroovyObject
Overrides:
getProperty in class GroovyObjectSupport

getAt

public java.lang.Object getAt(int index)

size

public int size()


Copyright © 2003-2005 The Codehaus. All Rights Reserved.