Record Class ImportExportDelegate.ResourceImportPath

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.importexport.ImportExportDelegate.ResourceImportPath
Record Components:
resourcePath - the logical resource path (moduleId/typeId/name)
collection - the collection name (e.g., "core", "PRODUCTION")
Enclosing interface:
ImportExportDelegate<R>

public static record ImportExportDelegate.ResourceImportPath(ResourcePath resourcePath, String collection) extends Record
Pairs a ResourcePath with the collection it was found in within the .gwex ZIP. Constructed by the manager from the ZIP directory structure and passed to ImportExportDelegate.parseImport(List, ResourceReader).
  • Constructor Details

    • ResourceImportPath

      public ResourceImportPath(ResourcePath resourcePath, String collection)
      Creates an instance of a ResourceImportPath record class.
      Parameters:
      resourcePath - the value for the resourcePath record component
      collection - the value for the collection record component
  • 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.
    • resourcePath

      public ResourcePath resourcePath()
      Returns the value of the resourcePath record component.
      Returns:
      the value of the resourcePath record component
    • collection

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