Module agentforge4j.config.loader
Record Class CatalogManifest
java.lang.Object
java.lang.Record
com.agentforge4j.config.loader.catalog.CatalogManifest
- Record Components:
catalogVersion- the catalog's own (independent) version, for diagnosticsminimumAgentForge4jVersion- lowest framework version the catalog supports (inclusive)maximumAgentForge4jVersion- highest framework version the catalog supports (inclusive), ornullfor unboundedworkflowSchemaVersion- the workflow schema version the catalog was authored against
public record CatalogManifest(String catalogVersion, String minimumAgentForge4jVersion, String maximumAgentForge4jVersion, int workflowSchemaVersion)
extends Record
Compatibility metadata declared by a shipped workflow catalog, read from
shipped-workflows/agentforge4j-catalog.json.
The framework loads a catalog only when this manifest's version bounds admit the running
FrameworkVersion and its declared workflowSchemaVersion
matches WorkflowSchemaVersion.SUPPORTED_WORKFLOW_SCHEMA_VERSION.
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogManifest(String catalogVersion, String minimumAgentForge4jVersion, String maximumAgentForge4jVersion, int workflowSchemaVersion) Validates the manifest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatalogVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaximumAgentForge4jVersionrecord component.Returns the value of theminimumAgentForge4jVersionrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theworkflowSchemaVersionrecord component.
-
Constructor Details
-
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 '=='. -
catalogVersion
Returns the value of thecatalogVersionrecord component.- Returns:
- the value of the
catalogVersionrecord component
-
minimumAgentForge4jVersion
Returns the value of theminimumAgentForge4jVersionrecord component.- Returns:
- the value of the
minimumAgentForge4jVersionrecord component
-
maximumAgentForge4jVersion
Returns the value of themaximumAgentForge4jVersionrecord component.- Returns:
- the value of the
maximumAgentForge4jVersionrecord component
-
workflowSchemaVersion
public int workflowSchemaVersion()Returns the value of theworkflowSchemaVersionrecord component.- Returns:
- the value of the
workflowSchemaVersionrecord component
-