Class AlternativeModelGetterWriter
java.lang.Object
de.hybris.bootstrap.codegenerator.AbstractImportProvider
de.hybris.bootstrap.codegenerator.MethodWriter
de.hybris.bootstrap.codegenerator.model.AlternativeModelGetterWriter
- All Implemented Interfaces:
CodeWriter
-
Field Summary
Fields inherited from class de.hybris.bootstrap.codegenerator.MethodWriter
ABSTRACT, FINAL, STATIC, SYNCHRONIZED -
Constructor Summary
ConstructorsConstructorDescriptionAlternativeModelGetterWriter(ModelGetterWriter defaultWriter, YAttributeDescriptor descriptor, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidFor localized attributes we write method twice: once without locale and one with locale parameter.protected voidwriteContent(JavaFile file) Methods inherited from class de.hybris.bootstrap.codegenerator.MethodWriter
addAnnotation, addComment, addDeprecatedAnnotation, addParameter, addThrownException, analyzeAndStripReturnType, assembleSignature, assembleThrowsClause, extractClassNames, getAnnotations, getContent, getJavadoc, getModifiers, getName, getParameterType, getRequiredImports, getReturnType, getSignature, getThrownExceptions, getVisibility, isAbstract, isConstructor, modifiersToString, setAbstract, setConstructor, setContent, setContentPlain, setJavadoc, setModifiers, setReturnType, setVisibility, stripPackageName, writeTextToFileMethods inherited from class de.hybris.bootstrap.codegenerator.AbstractImportProvider
addRequiredImport
-
Constructor Details
-
AlternativeModelGetterWriter
public AlternativeModelGetterWriter(ModelGetterWriter defaultWriter, YAttributeDescriptor descriptor, String name)
-
-
Method Details
-
writeContent
- Overrides:
writeContentin classMethodWriter
-
write
For localized attributes we write method twice: once without locale and one with locale parameter.- Specified by:
writein interfaceCodeWriter- Overrides:
writein classMethodWriter
-