Record Class GenericXmlLocator.Located
java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.xml.GenericXmlLocator.Located
- Enclosing class:
GenericXmlLocator
public static record GenericXmlLocator.Located(SourceRange range, GenericXmlLocator.Located.Kind kind, char quote, String rawValue)
extends Record
A located target: an attribute value, or an element's text.
rawValue is the value currently in the file, which in a configuration file may
itself be a secret. The generated record toString() would print it, so it is
overridden to mask.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLocated(SourceRange range, GenericXmlLocator.Located.Kind kind, char quote, String rawValue) Creates an instance of aLocatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe current value with entities resolved, for idempotency comparisons.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.charquote()Returns the value of thequoterecord component.range()Returns the value of therangerecord component.rawValue()Returns the value of therawValuerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Located
Creates an instance of aLocatedrecord class.- Parameters:
range- the value for therangerecord componentkind- the value for thekindrecord componentquote- the value for thequoterecord componentrawValue- the value for therawValuerecord component
-
-
Method Details
-
decodedValue
The current value with entities resolved, for idempotency comparisons. -
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 '=='. -
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
quote
public char quote()Returns the value of thequoterecord component.- Returns:
- the value of the
quoterecord component
-
rawValue
Returns the value of therawValuerecord component.- Returns:
- the value of the
rawValuerecord component
-