Record Class SchemaDefinition
java.lang.Object
java.lang.Record
express.mvp.myra.codec.schema.SchemaDefinition
- Record Components:
namespace- the target namespace for generated codeversion- the semantic version string for the schemamessages- the message definitions in the schemaenums- the enum definitions in the schema
public record SchemaDefinition(String namespace, String version, List<MessageDefinition> messages, List<EnumDefinition> enums)
extends Record
Root schema definition for a .myra.yml file.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaDefinition(String namespace, String version, List<MessageDefinition> messages, List<EnumDefinition> enums) Creates an instance of aSchemaDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenums()Returns the value of theenumsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
SchemaDefinition
public SchemaDefinition(String namespace, String version, List<MessageDefinition> messages, List<EnumDefinition> enums) Creates an instance of aSchemaDefinitionrecord class.
-
-
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). -
namespace
-
version
-
messages
-
enums
-