public class EnumTypeToEnumPatternWriter extends java.lang.Object implements CustomAbstractTypeWriter
| Constructor and Description |
|---|
EnumTypeToEnumPatternWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(AbstractNamedType type,
WriterPreferences preferences)
Checks if writer preferences are valid for passed type or not.
|
void |
writeDef(AbstractNamedType type,
java.io.Writer writer,
WriterPreferences preferences)
Writes type definition.
|
public boolean accepts(AbstractNamedType type, WriterPreferences preferences)
CustomAbstractTypeWriteraccepts in interface CustomAbstractTypeWritertype - named type definition.preferences - type writing preferences.Writer.public void writeDef(AbstractNamedType type, java.io.Writer writer, WriterPreferences preferences) throws java.io.IOException
writeDef in interface CustomAbstractTypeWritertype - Type to be added into typescript.writer - Typescript file writer.preferences - Writing preperences and settings.java.io.IOExceptionCopyright © 2022. All rights reserved.