groovy.util.slurpersupport
Class GPathResult

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended bygroovy.util.slurpersupport.GPathResult
All Implemented Interfaces:
Buildable, GroovyObject, Writable
Direct Known Subclasses:
NoChildren, NodeChild, groovy.util.slurpersupport.NodeChildren

public abstract class GPathResult
extends GroovyObjectSupport
implements Writable, Buildable

Author:
John Wilson

Field Summary
protected  String name
           
protected  Map namespaceMap
           
protected  String namespacePrefix
           
protected  Map namespaceTagHints
           
protected  GPathResult parent
           
 
Constructor Summary
GPathResult(GPathResult parent, String name, String namespacePrefix, Map namespaceTagHints)
           
 
Method Summary
abstract  Iterator childNodes()
           
 GPathResult children()
           
 GPathResult declareNamespace(Map newNamespaceMapping)
           
 boolean equals(Object obj)
           
abstract  GPathResult find(Closure closure)
           
abstract  GPathResult findAll(Closure closure)
           
 Object getAt(int index)
           
 Object getProperty(String property)
           
abstract  Iterator iterator()
           
 List list()
           
 String name()
           
abstract  Iterator nodeIterator()
           
 GPathResult parent()
           
abstract  GPathResult parents()
           
 void setMetaClass(MetaClass metaClass)
          Allows the MetaClass to be replaced with a derived implementation
abstract  int size()
           
abstract  String text()
           
 String toString()
           
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface groovy.lang.Writable
writeTo
 
Methods inherited from interface groovy.lang.Buildable
build
 

Field Detail

parent

protected final GPathResult parent

name

protected final String name

namespacePrefix

protected final String namespacePrefix

namespaceMap

protected final Map namespaceMap

namespaceTagHints

protected final Map namespaceTagHints
Constructor Detail

GPathResult

public GPathResult(GPathResult parent,
                   String name,
                   String namespacePrefix,
                   Map namespaceTagHints)
Parameters:
parent -
name -
Method Detail

setMetaClass

public void setMetaClass(MetaClass metaClass)
Description copied from interface: GroovyObject
Allows the MetaClass to be replaced with a derived implementation

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

getProperty

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

name

public String name()

parent

public GPathResult parent()

children

public GPathResult children()

toString

public String toString()

declareNamespace

public GPathResult declareNamespace(Map newNamespaceMapping)

equals

public boolean equals(Object obj)

getAt

public Object getAt(int index)

list

public List list()

size

public abstract int size()

text

public abstract String text()

parents

public abstract GPathResult parents()

childNodes

public abstract Iterator childNodes()

iterator

public abstract Iterator iterator()

find

public abstract GPathResult find(Closure closure)

findAll

public abstract GPathResult findAll(Closure closure)

nodeIterator

public abstract Iterator nodeIterator()


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