org.codehaus.groovy.sandbox.util
Class XmlList

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended byorg.codehaus.groovy.sandbox.util.XmlList
All Implemented Interfaces:
Buildable, GroovyObject, Writable

class XmlList
extends GroovyObjectSupport
implements Writable, Buildable


Field Summary
(package private)  java.util.Map attributes
           
(package private)  java.lang.Object[] children
           
(package private)  java.lang.String name
           
(package private)  java.lang.String namespaceURI
           
 
Fields inherited from class groovy.lang.GroovyObjectSupport
 
Constructor Summary
XmlList(java.lang.String name, java.util.Map attributes, java.util.List body, java.lang.String namespaceURI)
           
 
Method Summary
 void build(GroovyObject builder)
           
private  void buildChildren(GroovyObject builder)
           
 java.lang.Object getAt(int index)
           
protected  int getNextXmlElement(java.lang.String name, int lastFound)
           
 java.lang.Object getProperty(java.lang.String elementName)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
          Invokes the given method
 int size()
           
private  java.lang.String text()
           
 java.lang.String toString()
           
 java.io.Writer writeTo(java.io.Writer out)
          writes this object to the given stream
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

final java.lang.String name

attributes

final java.util.Map attributes

children

final java.lang.Object[] children

namespaceURI

final java.lang.String namespaceURI
Constructor Detail

XmlList

public XmlList(java.lang.String name,
               java.util.Map attributes,
               java.util.List body,
               java.lang.String namespaceURI)
Method Detail

getProperty

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

getAt

public java.lang.Object getAt(int index)

size

public int size()

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Description copied from interface: GroovyObject
Invokes the given method

Specified by:
invokeMethod in interface GroovyObject
Overrides:
invokeMethod in class GroovyObjectSupport

writeTo

public java.io.Writer writeTo(java.io.Writer out)
                       throws java.io.IOException
Description copied from interface: Writable
writes this object to the given stream

Specified by:
writeTo in interface Writable
Throws:
java.io.IOException

build

public void build(GroovyObject builder)
Specified by:
build in interface Buildable

toString

public java.lang.String toString()

text

private java.lang.String text()

buildChildren

private void buildChildren(GroovyObject builder)

getNextXmlElement

protected int getNextXmlElement(java.lang.String name,
                                int lastFound)


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