Record Class DotNetPath
java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.xml.DotNetPath
- Record Components:
collection- which .NET collection the path addressesentryName- the literal value of the identifying attribute to match, exactly and case-sensitively. Named for what it holds rather than for one collection's spelling of it:appSettingsentries are identified bykeyandconnectionStringsentries byname, and this is either.attribute- the attribute on the matched<add>whose value is replaced
public record DotNetPath(DotNetPath.Collection collection, String entryName, String attribute)
extends Record
A parsed .NET configuration shorthand path (SRS sections 8.2 and 8.3).
Version 1.0 supports exactly two collections. Both resolve to a single attribute on a single
<add> element that is a direct child of the top-level collection element:
appSettings.<key> -> /configuration/appSettings/add[@key='...']/@value connectionStrings.<name> -> /configuration/connectionStrings/add[@name='...']/@connectionString connectionStrings.<name>.@providerName -> /configuration/connectionStrings/add[@name='...']/@providerName
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe two supported collections and the attribute each uses to identify an entry. -
Constructor Summary
ConstructorsConstructorDescriptionDotNetPath(DotNetPath.Collection collection, String entryName, String attribute) Creates an instance of aDotNetPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.Returns the value of thecollectionrecord component.Returns the value of theentryNamerecord component.final booleanIndicates whether some other object is "equal to" this one.The equivalent XPath, used in documentation and diagnostics.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DotNetPath
Creates an instance of aDotNetPathrecord class.- Parameters:
collection- the value for thecollectionrecord componententryName- the value for theentryNamerecord componentattribute- the value for theattributerecord component
-
-
Method Details
-
equivalentXPath
The equivalent XPath, used in documentation and diagnostics. Contains no values. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
entryName
Returns the value of theentryNamerecord component.- Returns:
- the value of the
entryNamerecord component
-
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-