Record Class ManagedElement
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ManagedElement
- Record Components:
path- adapter-specific canonical path expression locating this element (e.g.pluginGroups/pluginGroup[.="network.ike.tooling"])installedAt- UTC timestamp when this element was first installed; nevernullstandardsVersion-ike-build-standardsversion that declared the ensuring rule when this element was last touched; nevernull
public record ManagedElement(String path, Instant installedAt, String standardsVersion)
extends Record
Provenance record for a single element installed by the
MODEL_MANAGED tier.
Each managed element is identified by a canonical path expression
that the relevant adapter understands — an XPath for settings.xml,
an OpenRewrite cursor path for a POM, a git-config key for a git
config. The standardsVersion records which
ike-build-standards version caused the element to be
written, enabling targeted removal when a later standards version
retires the element.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedElement(String path, Instant installedAt, String standardsVersion) Canonical constructor with validation. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstalledAtrecord component.path()Returns the value of thepathrecord component.Returns the value of thestandardsVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManagedElement
-
-
Method Details
-
toString
-
hashCode
-
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). -
path
-
installedAt
Returns the value of theinstalledAtrecord component.- Returns:
- the value of the
installedAtrecord component
-
standardsVersion
Returns the value of thestandardsVersionrecord component.- Returns:
- the value of the
standardsVersionrecord component
-