public class CollectionDtoWriter extends AbstractDtoWriter
wsConfig, XML_ATTRIBUTE, XML_ELEMENT, XML_ELEMENTWRAPPER, XML_ROOTELEMENTGENERATED_NOTICE| Constructor and Description |
|---|
CollectionDtoWriter(WebservicesConfig wsConfig,
DtoConfig cfg,
CodeGenerator gen,
YExtension ext)
for type Language will generate DTO class like
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<MethodWriter> |
getBeanMethodWriters() |
protected java.util.Collection<MethodWriter> |
getConstructorMethodWriters() |
CollectionDtoConfig |
getDtoConfig()
Returns the
DtoConfig which is used for specific generation information. |
createDefaultConstructorMethodWriter, fill, getClassNameaddAnnotation, addAnnotations, addConstantDeclaration, addConstantDeclaration, addConstructor, addDeclaration, addDeclaration, addDeclaration, addInterface, addMethod, assembleAbstractClassName, assembleClassName, containsAnnotation, disableSuppressPMD, firstLetterUpperCase, getAnnotations, getClassToExtend, getConstantDeclarations, getConstructors, getCopyright, getDeclarations, getExtension, getGenerator, getInfo, getInterfaces, getJavadoc, getMethods, getModifiers, getPackageName, getRequiredImports, getVisibility, isGeneratePartOf, isSuppressPMD, processAnnotations, removeSelfImport, setClassToExtend, setCopyright, setJavadoc, setModifiers, setPackageName, setVisibility, sortMethods, write, writeMethods, writeSignatureaddRequiredImportpublic CollectionDtoWriter(WebservicesConfig wsConfig, DtoConfig cfg, CodeGenerator gen, YExtension ext)
@XmlRootElement(name = "languages")
public class LanguagesDTO {
private List<LanguageDTO> languages = null;
public LanguagesDTO() { // }
public LanguagesDTO(final List<LanguageDTO> languages)
{
this.languages =
languages;
}
@XmlElement(name = "language")
public List<LanguageDTO> getLanguages()
{
return languages;
}
public void setLanguages(final List<LanguageDTO> languages)
{
this.languages =
languages;
}
} public CollectionDtoConfig getDtoConfig()
AbstractDtoWriterDtoConfig which is used for specific generation information.getDtoConfig in class AbstractDtoWriterDtoConfigprotected java.util.Collection<MethodWriter> getConstructorMethodWriters()
getConstructorMethodWriters in class AbstractDtoWriterprotected java.util.Collection<MethodWriter> getBeanMethodWriters()
getBeanMethodWriters in class AbstractDtoWriterCopyright © 2018 SAP SE. All Rights Reserved.