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-trueto apply standard XPath 1.0 rules: elements in the default namespace can only be selected with a prefix bound innamespaces
- 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 Summary
ConstructorsConstructorDescriptionXPathOptions(Map<String, String> namespaces, boolean strictNamespaces) Creates an instance of aXPathOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XPathOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenamespacesrecord component.booleanReturns the value of thestrictNamespacesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
XPathOptions
Creates an instance of aXPathOptionsrecord class.- Parameters:
namespaces- the value for thenamespacesrecord componentstrictNamespaces- the value for thestrictNamespacesrecord component
-
-
Method Details
-
defaults
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
namespaces
Returns the value of thenamespacesrecord component.- Returns:
- the value of the
namespacesrecord component
-
strictNamespaces
public boolean strictNamespaces()Returns the value of thestrictNamespacesrecord component.- Returns:
- the value of the
strictNamespacesrecord component
-