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 packageorigin- what it was generated fromkey- 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 operationexposed- whether it is public; a class nothing outside the package needs is package-privateprovenance- where it came from; an inline schema has no fragment pathschema- the schema its body and fields are generated from, ornullwhen it has none, such as a response with several media typesbodyShaped- whether it hasbody(...)andfields(...): 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 Summary
ConstructorsConstructorDescriptionGeneratedClass(String simpleName, Origin origin, String key, boolean exposed, Provenance provenance, Schema schema, boolean bodyShaped) Creates an instance of aGeneratedClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebodyShapedrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexposed()Returns the value of theexposedrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.origin()Returns the value of theoriginrecord component.Returns the value of theprovenancerecord component.schema()Returns the value of theschemarecord component.Returns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratedClass
public GeneratedClass(String simpleName, Origin origin, String key, boolean exposed, Provenance provenance, Schema schema, boolean bodyShaped) Creates an instance of aGeneratedClassrecord class.- Parameters:
simpleName- the value for thesimpleNamerecord componentorigin- the value for theoriginrecord componentkey- the value for thekeyrecord componentexposed- the value for theexposedrecord componentprovenance- the value for theprovenancerecord componentschema- the value for theschemarecord componentbodyShaped- the value for thebodyShapedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
simpleName
Returns the value of thesimpleNamerecord component.- Returns:
- the value of the
simpleNamerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
exposed
public boolean exposed()Returns the value of theexposedrecord component.- Returns:
- the value of the
exposedrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
bodyShaped
public boolean bodyShaped()Returns the value of thebodyShapedrecord component.- Returns:
- the value of the
bodyShapedrecord component
-