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; never null
standardsVersion - ike-build-standards version that declared the ensuring rule when this element was last touched; never null

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 Details

    • ManagedElement

      public ManagedElement(String path, Instant installedAt, String standardsVersion)
      Canonical constructor with validation.
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • installedAt

      public Instant installedAt()
      Returns the value of the installedAt record component.
      Returns:
      the value of the installedAt record component
    • standardsVersion

      public String standardsVersion()
      Returns the value of the standardsVersion record component.
      Returns:
      the value of the standardsVersion record component