Class JADEExporter
java.lang.Object
com.tnsai.roles.export.frameworks.JADEExporter
- All Implemented Interfaces:
RoleExporter
Stub exporter for JADE (Java Agent DEvelopment Framework) format.
Experimental — currently unimplemented. The previous implementation
emitted placeholder stub lines for service registration, DF deregister,
request/inform handlers, and action bodies directly into generated code,
producing files that did not compile out of the box. To avoid shipping
broken artefacts, every export method now fails fast with
UnsupportedOperationException. The class shell and RoleExporter
contract are preserved so a proper JADE code generator can be added in a
future release without breaking the public API surface.
If you need JADE output today, use JsonRoleExporter
or YamlRoleExporter and translate manually.
- Author:
- TnsAI Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a JADEExporter with default package.JADEExporter(String packageName) Creates a JADEExporter with custom package. -
Method Summary
Modifier and TypeMethodDescriptionexport(ExportedRole metadata) Exports role metadata to the target format.Exports a Role instance to the target format.exportFromClass(Class<? extends Role> roleClass) Exports a Role class (using annotations) to the target format.Returns the file extension for this export format.Returns the format name.Returns the MIME type for this export format.
-
Constructor Details
-
JADEExporter
public JADEExporter()Creates a JADEExporter with default package. -
JADEExporter
Creates a JADEExporter with custom package. Retained for source compatibility with older callers; the package name is currently ignored because export is unimplemented.- Parameters:
packageName- the Java package for generated class (ignored)
-
-
Method Details
-
export
Description copied from interface:RoleExporterExports a Role instance to the target format.- Specified by:
exportin interfaceRoleExporter- Parameters:
role- the role to export- Returns:
- exported string representation
-
exportFromClass
Description copied from interface:RoleExporterExports a Role class (using annotations) to the target format.- Specified by:
exportFromClassin interfaceRoleExporter- Parameters:
roleClass- the role class with annotations- Returns:
- exported string representation
-
export
Description copied from interface:RoleExporterExports role metadata to the target format.- Specified by:
exportin interfaceRoleExporter- Parameters:
metadata- the extracted role metadata- Returns:
- exported string representation
-
getFileExtension
Description copied from interface:RoleExporterReturns the file extension for this export format.- Specified by:
getFileExtensionin interfaceRoleExporter- Returns:
- file extension (e.g., "json", "yaml", "asl")
-
getMimeType
Description copied from interface:RoleExporterReturns the MIME type for this export format.- Specified by:
getMimeTypein interfaceRoleExporter- Returns:
- MIME type
-
getFormatName
Description copied from interface:RoleExporterReturns the format name.- Specified by:
getFormatNamein interfaceRoleExporter- Returns:
- format name (e.g., "JSON", "YAML", "AgentSpeak")
-