public class JsClassGenerator extends JsFileWriter
indent, INDENTATION_UNITY, writer| Constructor and Description |
|---|
JsClassGenerator(String filePath,
String typesPackage) |
| Modifier and Type | Method and Description |
|---|---|
void |
builderClass(ParsedValueObject valueObject,
String objectName,
JsClassGenerator write) |
void |
buildMethod(String objectName,
List<ValueObjectProperty> properties) |
void |
constructor(List<ValueObjectProperty> properties) |
void |
elementAccessor(ValueObjectType type) |
void |
extendGenericTypeJsDoc(ValueObjectType type) |
void |
fromJsonMethod(String objectName) |
void |
fromObjectMethod(String builderName,
List<ValueObjectProperty> properties) |
void |
getters(List<ValueObjectProperty> properties) |
void |
listConstructor() |
void |
setters(List<ValueObjectProperty> properties,
String builderName) |
void |
toJsonMethod() |
void |
toObjectMethod(List<ValueObjectProperty> properties) |
void |
validateElement(ValueObjectType type) |
void |
valueObjectClass(ParsedValueObject valueObject,
String objectName,
JsClassGenerator write) |
public JsClassGenerator(String filePath, String typesPackage) throws IOException
IOExceptionpublic void valueObjectClass(ParsedValueObject valueObject, String objectName, JsClassGenerator write) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void constructor(List<ValueObjectProperty> properties) throws IOException
IOExceptionpublic void getters(List<ValueObjectProperty> properties) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void toObjectMethod(List<ValueObjectProperty> properties) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void toJsonMethod()
throws IOException
IOExceptionpublic void builderClass(ParsedValueObject valueObject, String objectName, JsClassGenerator write) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void validateElement(ValueObjectType type) throws ProcessingException, IOException
ProcessingExceptionIOExceptionpublic void setters(List<ValueObjectProperty> properties, String builderName) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void buildMethod(String objectName, List<ValueObjectProperty> properties) throws IOException
IOExceptionpublic void fromObjectMethod(String builderName, List<ValueObjectProperty> properties) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void fromJsonMethod(String objectName) throws IOException
IOExceptionpublic void elementAccessor(ValueObjectType type) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void extendGenericTypeJsDoc(ValueObjectType type) throws IOException, ProcessingException
IOExceptionProcessingExceptionpublic void listConstructor()
throws IOException
IOExceptionCopyright © 2019. All rights reserved.