Interface EventKindMapper_v0_3
- All Known Implementing Classes:
EventKindMapper_v0_3Impl
public interface EventKindMapper_v0_3
Bidirectional polymorphic mapper for converting EventKind between A2A Protocol v0.3 and v1.0.
Handles conversion for all EventKind implementers:
Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventKindMapper_v0_3Singleton instance accessed viaA2AMappers_v0_3factory. -
Method Summary
Modifier and TypeMethodDescriptiondefault EventKind_v0_3Converts v1.0 EventKind to v0.3 EventKind.default EventKindtoV10(EventKind_v0_3 v03) Converts v0.3 EventKind to v1.0 EventKind.
-
Field Details
-
INSTANCE
Singleton instance accessed viaA2AMappers_v0_3factory.
-
-
Method Details
-
toV10
Converts v0.3 EventKind to v1.0 EventKind.Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.
- Parameters:
v03- the v0.3 event kind- Returns:
- the equivalent v1.0 event kind
- Throws:
InvalidRequestError- if the event kind type is unrecognized
-
fromV10
Converts v1.0 EventKind to v0.3 EventKind.Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.
- Parameters:
v10- the v1.0 event kind- Returns:
- the equivalent v0.3 event kind
- Throws:
InvalidRequestError- if the event kind type is unrecognized
-