Class Attribute


  • public class Attribute
    extends Object
    Represents an XPath attribute of a specific node. Attributes know their name, the node they wrap, and have access to their value.

    Two attributes are equal if they have the same name and their parent nodes are equal.

    Author:
    daniels
    • Constructor Detail

      • Attribute

        public Attribute​(Node parent,
                         String name,
                         Method m)
        Creates a new attribute belonging to the given node using its accessor.
      • Attribute

        public Attribute​(Node parent,
                         String name,
                         String value)
        Creates a new attribute belonging to the given node using its string value.