Record Class GeneratedClass

java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.spi.GeneratedClass
Record Components:
simpleName - its simple name, in the base package
origin - what it was generated from
key - the component's name for a component, the JSON pointer of the schema for an inline schema, or the JSON pointer of the operation for an operation
exposed - whether it is public; a class nothing outside the package needs is package-private
provenance - where it came from; an inline schema has no fragment path
schema - the schema its body and fields are generated from, or null when it has none, such as a response with several media types
bodyShaped - whether it has body(...) and fields(...): its schema describes an object, rather than a scalar or a list

public record GeneratedClass(String simpleName, Origin origin, String key, boolean exposed, Provenance provenance, Schema schema, boolean bodyShaped) extends Record
One core class, as the core emitter names it.
  • Constructor Details

    • GeneratedClass

      public GeneratedClass(String simpleName, Origin origin, String key, boolean exposed, Provenance provenance, Schema schema, boolean bodyShaped)
      Creates an instance of a GeneratedClass record class.
      Parameters:
      simpleName - the value for the simpleName record component
      origin - the value for the origin record component
      key - the value for the key record component
      exposed - the value for the exposed record component
      provenance - the value for the provenance record component
      schema - the value for the schema record component
      bodyShaped - the value for the bodyShaped 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • simpleName

      public String simpleName()
      Returns the value of the simpleName record component.
      Returns:
      the value of the simpleName record component
    • origin

      public Origin origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • exposed

      public boolean exposed()
      Returns the value of the exposed record component.
      Returns:
      the value of the exposed record component
    • provenance

      public Provenance provenance()
      Returns the value of the provenance record component.
      Returns:
      the value of the provenance record component
    • schema

      public Schema schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • bodyShaped

      public boolean bodyShaped()
      Returns the value of the bodyShaped record component.
      Returns:
      the value of the bodyShaped record component