source: java2python/jackson-t/src/test/javaactions/testcode/actions/Action.java@ 1318

Last change on this file since 1318 was 1116, checked in by wouter, 2 months ago

#363 small cleanup in test code

File size: 820 bytes
Line 
1package testcode.actions;
2
3import org.eclipse.jdt.annotation.NonNull;
4
5import com.fasterxml.jackson.annotation.JsonSubTypes;
6import com.fasterxml.jackson.annotation.JsonTypeInfo;
7import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
8import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
9
10/**
11 * An action represents a "promise" made by a participant in the negotiation. It
12 * can not be retracted and is immutable. But it can be followed by other
13 * actions that override it or make it outdated.
14 */
15@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.WRAPPER_OBJECT)
16@JsonSubTypes({ @JsonSubTypes.Type(value = EndNegotiation.class),
17 @JsonSubTypes.Type(value = Accept.class) })
18public interface Action {
19 /**
20 *
21 * @return the {@link Id} of the actor of this action.
22 */
23 @NonNull
24 PartyId getActor();
25
26}
Note: See TracBrowser for help on using the repository browser.