public class OneOfImplementorAdditionalData extends Object
| Constructor and Description |
|---|
OneOfImplementorAdditionalData(String implementorName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFromInterfaceModel(CodegenModel cm,
List<Map<String,String>> modelsImports)
Add data from a given CodegenModel that the oneOf implementor should implement.
|
void |
addToImplementor(CodegenConfig cc,
CodegenModel implcm,
List<Map<String,String>> implImports,
boolean addInterfaceImports)
Adds stored data to given implementing model
|
String |
getImplementorName() |
String |
toString() |
public OneOfImplementorAdditionalData(String implementorName)
public String getImplementorName()
public void addFromInterfaceModel(CodegenModel cm, List<Map<String,String>> modelsImports)
cm - model that the implementor should implementmodelsImports - imports of the given `cm`public void addToImplementor(CodegenConfig cc, CodegenModel implcm, List<Map<String,String>> implImports, boolean addInterfaceImports)
cc - CodegenConfig running this operationimplcm - the implementing modelimplImports - imports of the implementing modeladdInterfaceImports - whether or not to add the interface model as import (will vary by language)Copyright © 2021. All rights reserved.