Class SingleResourceWriter
- java.lang.Object
-
- de.hybris.bootstrap.codegenerator.AbstractImportProvider
-
- de.hybris.bootstrap.codegenerator.ClassWriter
-
- de.hybris.bootstrap.codegenerator.platformwebservices.resource.AbstractResourceWriter
-
- de.hybris.bootstrap.codegenerator.platformwebservices.resource.SingleResourceWriter
-
- All Implemented Interfaces:
CodeWriter
@Deprecated(since="1818", forRemoval=true) public class SingleResourceWriter extends AbstractResourceWriterDeprecated, for removal: This API element is subject to removal in a future version.since 1818Responsible for generating code for webservices resource.
-
-
Field Summary
-
Fields inherited from class de.hybris.bootstrap.codegenerator.platformwebservices.resource.AbstractResourceWriter
ABSTRACT_YRESOURCE, READRESOURCE_METHOD, WS_DELETE, WS_GET, WS_PATH, WS_PATHPARAM, WS_POST, WS_PUT, WS_RESPONSE
-
Fields inherited from class de.hybris.bootstrap.codegenerator.ClassWriter
GENERATED_NOTICE
-
-
Constructor Summary
Constructors Constructor Description SingleResourceWriter(CodeGenerator gen, YExtension ext, ResourceConfig cfg)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected MethodWritercreateDeleteMethodWriter()Deprecated, for removal: This API element is subject to removal in a future version.protected MethodWritercreateGetMethodWriter()Deprecated, for removal: This API element is subject to removal in a future version.protected MethodWritercreatePostMethodWriter()Deprecated, for removal: This API element is subject to removal in a future version.protected MethodWritercreatePutMethodWriter()Deprecated, for removal: This API element is subject to removal in a future version.protected MethodWritergetReadResourceMethodWriter()Deprecated, for removal: This API element is subject to removal in a future version.Returns the 'readResource'MethodWriter.protected java.util.Collection<MethodWriter>getResourceValueMethodWriters()Deprecated, for removal: This API element is subject to removal in a future version.Convenience Getter/SetterMethodWriterwhich delegates to AbstractResource#get/setResourceValue(...) but is named more user-friendly.protected java.util.Collection<MethodWriter>getSubResourceMethodWriters()Deprecated, for removal: This API element is subject to removal in a future version.Returns supported sub-resources asMethodWriterCollection-
Methods inherited from class de.hybris.bootstrap.codegenerator.platformwebservices.resource.AbstractResourceWriter
createCRUDMethodWriter, createDefaultConstructorMethodWriter, createReadResourceMethodWriter, createResourceValueMethodWriters, createSubResourceMethodWriter, fill, getClassName, getConstructorMethodWriters, getCRUDMethodWriters, getCustomMethodWriters, getResourceConfig
-
Methods inherited from class de.hybris.bootstrap.codegenerator.ClassWriter
addAnnotation, addAnnotationIfDeprecated, addAnnotations, addConstantDeclaration, addConstantDeclaration, addConstructor, addDeclaration, addDeclaration, addDeclaration, addInterface, addMethod, assembleAbstractClassName, assembleClassName, containsAnnotation, firstLetterUpperCase, getAnnotations, getClassToExtend, getConstantDeclarations, getConstructors, getCopyright, getDeclarations, getExtension, getGenerator, getInfo, getInterfaces, getJavadoc, getMethods, getModifiers, getPackageName, getRequiredImports, getVisibility, isGeneratePartOf, processAnnotations, removeSelfImport, setClassToExtend, setCopyright, setJavadoc, setModifiers, setPackageName, setVisibility, sortMethods, write, writeMethods, writeSignature
-
Methods inherited from class de.hybris.bootstrap.codegenerator.AbstractImportProvider
addRequiredImport
-
-
-
-
Constructor Detail
-
SingleResourceWriter
public SingleResourceWriter(CodeGenerator gen, YExtension ext, ResourceConfig cfg)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getReadResourceMethodWriter
protected MethodWriter getReadResourceMethodWriter()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractResourceWriterReturns the 'readResource'MethodWriter.- Specified by:
getReadResourceMethodWriterin classAbstractResourceWriter- Returns:
MethodWriter
-
getSubResourceMethodWriters
protected java.util.Collection<MethodWriter> getSubResourceMethodWriters()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractResourceWriterReturns supported sub-resources asMethodWriterCollection- Specified by:
getSubResourceMethodWritersin classAbstractResourceWriter- Returns:
- Collection of
MethodWriter
-
getResourceValueMethodWriters
protected java.util.Collection<MethodWriter> getResourceValueMethodWriters()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractResourceWriterConvenience Getter/SetterMethodWriterwhich delegates to AbstractResource#get/setResourceValue(...) but is named more user-friendly.- Specified by:
getResourceValueMethodWritersin classAbstractResourceWriter- Returns:
- Getter/Setter
MethodWriter
-
createGetMethodWriter
protected MethodWriter createGetMethodWriter()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createGetMethodWriterin classAbstractResourceWriter
-
createDeleteMethodWriter
protected MethodWriter createDeleteMethodWriter()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createDeleteMethodWriterin classAbstractResourceWriter
-
createPutMethodWriter
protected MethodWriter createPutMethodWriter()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createPutMethodWriterin classAbstractResourceWriter
-
createPostMethodWriter
protected MethodWriter createPostMethodWriter()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createPostMethodWriterin classAbstractResourceWriter
-
-