Class Attributes

java.lang.Object
groovy.lang.GroovyObjectSupport
All Implemented Interfaces:
groovy.lang.Buildable, groovy.lang.GroovyObject, groovy.lang.Writable, Iterable
Direct Known Subclasses:
FilteredAttributes

public class Attributes
extends NodeChildren
Lazy evaluated representation of a node's attributes.
  • Constructor Details

    • Attributes

      public Attributes​(GPathResult parent, String name, String namespacePrefix, Map<String,​String> namespaceTagHints)
      Parameters:
      parent - the GPathResult prior to the application of the expression creating this GPathResult
      name - if the GPathResult corresponds to something with a name, e.g. a node
      namespacePrefix - the namespace prefix if any
      namespaceTagHints - the known tag to namespace mappings
    • Attributes

      public Attributes​(GPathResult parent, String name, Map<String,​String> namespaceTagHints)
      Parameters:
      parent - the GPathResult prior to the application of the expression creating this GPathResult
      name - if the GPathResult corresponds to something with a name, e.g. a node
      namespaceTagHints - the known tag to namespace mappings
  • Method Details