Skip to content

Commit

Permalink
swagger: Remove prefix "I" from all swagger model interfaces
Browse files Browse the repository at this point in the history
This is to allow generation of the api doc close to the implementation.

Change-Id: Idcbf5da66d1aa267a879ccb4b97f54b1fd687c25
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/191918
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
bhufmann committed Mar 17, 2022
1 parent 364d14d commit d75ef08
Show file tree
Hide file tree
Showing 55 changed files with 216 additions and 218 deletions.
Expand Up @@ -20,7 +20,7 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "An annotation is used to mark an interesting area at a given time or time range")
public interface IAnnotation {
public interface Annotation {

/**
* The annotation types.
Expand Down Expand Up @@ -65,5 +65,5 @@ enum AnnotationType {
* @return The style.
*/
@Nullable
IOutputElementStyle getStyle();
OutputElementStyle getStyle();
}
Expand Up @@ -20,7 +20,7 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "Model returned by outputs that contains annotation categories available for this output")
public interface IAnnotationCategoriesModel {
public interface AnnotationCategoriesModel {

/**
* @return The annotation categories.
Expand Down
Expand Up @@ -18,12 +18,12 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(allOf = IGenericResponse.class)
public interface ITimeGraphTreeResponse {
@Schema(allOf = GenericResponse.class)
public interface AnnotationCategoriesResponse {

/**
* @return The model.
*/
@Nullable
ITimeGraphTreeModel getModel();
AnnotationCategoriesModel getModel();
}
Expand Up @@ -20,11 +20,11 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "Model returned by outputs that contains annotations per category")
public interface IAnnotationModel {
public interface AnnotationModel {

/**
* @return The annotations per category.
*/
@Schema(description = "Map of annotations where the keys are categories")
Map<String, Collection<IAnnotation>> getAnnotations();
Map<String, Collection<Annotation>> getAnnotations();
}
Expand Up @@ -18,12 +18,12 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(allOf = IGenericResponse.class)
public interface IAnnotationResponse {
@Schema(allOf = GenericResponse.class)
public interface AnnotationResponse {

/**
* @return The model.
*/
@Nullable
IAnnotationModel getModel();
AnnotationModel getModel();
}
Expand Up @@ -20,19 +20,19 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IAnnotationsQueryParameters {
public interface AnnotationsQueryParameters {

/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
IAnnotationsParameters getParameters();
AnnotationsParameters getParameters();

/**
* Property names below use underscores as per trace-server protocol.
*/
interface IAnnotationsParameters {
interface AnnotationsParameters {

@JsonProperty("requested_times")
@Schema(required = true)
Expand Down
Expand Up @@ -20,19 +20,19 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IArrowsQueryParameters {
public interface ArrowsQueryParameters {

/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
IArrowsParameters getParameters();
ArrowsParameters getParameters();

/**
* Property name(s) below use underscores as per trace-server protocol.
*/
interface IArrowsParameters {
interface ArrowsParameters {

@JsonProperty("requested_times")
@Schema(required = true)
Expand Down
Expand Up @@ -16,7 +16,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IDataProvider {
public interface DataProvider {

/**
* The provider types.
Expand Down
Expand Up @@ -19,7 +19,7 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "An element model to be identified")
public interface IElement {
public interface Element {

/**
* The element types.
Expand Down
Expand Up @@ -22,7 +22,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IExperiment {
public interface Experiment {

/**
* @return The name.
Expand Down Expand Up @@ -65,5 +65,5 @@ public interface IExperiment {
* @return The traces.
*/
@ArraySchema(arraySchema = @Schema(description = "The traces encapsulated by this experiment"))
List<ITrace> getTraces();
List<Trace> getTraces();
}
Expand Up @@ -22,7 +22,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IExperimentQueryParameters {
public interface ExperimentQueryParameters {

/**
* @return The name.
Expand Down
Expand Up @@ -17,7 +17,7 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "Response that includes the status and a status message")
public interface IGenericResponse {
public interface GenericResponse {

/**
* The statuses.
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -22,19 +22,19 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface ILinesQueryParameters {
public interface LinesQueryParameters {

/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
ILinesParameters getParameters();
LinesParameters getParameters();

/**
* Property names below use underscores as per trace-server protocol.
*/
interface ILinesParameters {
interface LinesParameters {

enum Direction {
NEXT, PREVIOUS
Expand Down
Expand Up @@ -17,7 +17,7 @@
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "A marker set is used to represent a set of annotations that can be fetched")
public interface IMarkerSet {
public interface MarkerSet {

/**
* @return The name.
Expand Down
Expand Up @@ -20,12 +20,12 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(allOf = IGenericResponse.class)
public interface IMarkerSetsResponse {
@Schema(allOf = GenericResponse.class)
public interface MarkerSetsResponse {

/**
* @return The model.
*/
@Nullable
List<IMarkerSet> getModel();
List<MarkerSet> getModel();
}
Expand Up @@ -18,18 +18,18 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IOptionalQueryParameters {
public interface OptionalQueryParameters {

/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
IOptionalParameters getParameters();
OptionalParameters getParameters();

/**
* No expected properties below, as per current trace-server protocol.
*/
interface IOptionalParameters {
interface OptionalParameters {
}
}
Expand Up @@ -23,7 +23,7 @@
@Schema(description = "Represents the style on an element (ex. Entry, TimeGraphState, ...) returned by any output. " +
"Supports style inheritance. " +
"To avoid having too many styles, the element style can have a parent style and will have all the same style property values as the parent, and can add or override style properties.")
public interface IOutputElementStyle {
public interface OutputElementStyle {

/**
* @return The parent key.
Expand Down
Expand Up @@ -22,11 +22,11 @@
*/
@Schema(description = "Map of styles specific to an output where values give hints on the style. " +
"The keys are strings that can be used in OutputElementStyle")
public interface IOutputStyleModel {
public interface OutputStyleModel {

/**
* @return The styles.
*/
@NonNull
Map<@NonNull String, @NonNull IOutputElementStyle> getStyles();
Map<@NonNull String, @NonNull OutputElementStyle> getStyles();
}
Expand Up @@ -20,19 +20,19 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IRequestedQueryParameters {
public interface RequestedQueryParameters {

/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
IRequestedParameters getParameters();
RequestedParameters getParameters();

/**
* Property names below use underscores as per trace-server protocol.
*/
interface IRequestedParameters {
interface RequestedParameters {

@JsonProperty("requested_times")
@Schema(required = true)
Expand Down
Expand Up @@ -21,7 +21,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface ISeriesModel {
public interface SeriesModel {

/**
* @return The series ID.
Expand Down
Expand Up @@ -16,7 +16,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface IServerStatus {
public interface ServerStatus {

/**
* The statuses.
Expand Down
Expand Up @@ -18,12 +18,12 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(allOf = IGenericResponse.class)
public interface IStylesResponse {
@Schema(allOf = GenericResponse.class)
public interface StylesResponse {

/**
* @return The model.
*/
@NonNull
IOutputStyleModel getModel();
OutputStyleModel getModel();
}
Expand Up @@ -16,7 +16,7 @@
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface ITableColumnHeader {
public interface TableColumnHeader {

/**
* @return The ID.
Expand Down

0 comments on commit d75ef08

Please sign in to comment.