Record Class XPathOptions

java.lang.Object
java.lang.Record
io.jenkins.plugins.xmleditor.core.xpath.XPathOptions
Record Components:
namespaces - extra prefix → URI bindings (they override the prefixes declared in the document)
strictNamespaces - true to apply standard XPath 1.0 rules: elements in the default namespace can only be selected with a prefix bound in namespaces
All Implemented Interfaces:
Serializable

public record XPathOptions(Map<String,String> namespaces, boolean strictNamespaces) extends Record implements Serializable
How XPath expressions are evaluated.
See Also:
  • Constructor Details

    • XPathOptions

      public XPathOptions(Map<String,String> namespaces, boolean strictNamespaces)
      Creates an instance of a XPathOptions record class.
      Parameters:
      namespaces - the value for the namespaces record component
      strictNamespaces - the value for the strictNamespaces record component
  • Method Details

    • defaults

      public static XPathOptions defaults()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namespaces

      public Map<String,String> namespaces()
      Returns the value of the namespaces record component.
      Returns:
      the value of the namespaces record component
    • strictNamespaces

      public boolean strictNamespaces()
      Returns the value of the strictNamespaces record component.
      Returns:
      the value of the strictNamespaces record component