public class CollectionResourceWriter extends AbstractResourceWriter
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ABSTRACT_COLLECTION_RESOURCE |
ABSTRACT_YRESOURCE, READRESOURCE_METHOD, WS_DELETE, WS_GET, WS_PATH, WS_PATHPARAM, WS_POST, WS_PUT, WS_RESPONSEGENERATED_NOTICE| Constructor and Description |
|---|
CollectionResourceWriter(CodeGenerator gen,
YExtension ext,
ResourceConfig cfg)
Generates resource for access list of base resources defined as @param type
|
| Modifier and Type | Method and Description |
|---|---|
protected MethodWriter |
createDeleteMethodWriter() |
protected MethodWriter |
createGetMethodWriter() |
protected MethodWriter |
createPostMethodWriter() |
protected MethodWriter |
createPutMethodWriter() |
protected MethodWriter |
getReadResourceMethodWriter()
Returns the 'readResource'
MethodWriter. |
protected java.util.Collection<MethodWriter> |
getResourceValueMethodWriters()
Convenience Getter/Setter
MethodWriter which delegates to AbstractResource#get/setResourceValue(...) but
is named more user-friendly. |
protected java.util.Collection<MethodWriter> |
getSubResourceMethodWriters()
Returns supported sub-resources as
MethodWriter Collection |
createCRUDMethodWriter, createDefaultConstructorMethodWriter, createReadResourceMethodWriter, createResourceValueMethodWriters, createSubResourceMethodWriter, fill, getClassName, getConstructorMethodWriters, getCRUDMethodWriters, getCustomMethodWriters, getResourceConfigaddAnnotation, 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, writeSignatureaddRequiredImportprotected static final java.lang.String ABSTRACT_COLLECTION_RESOURCE
public CollectionResourceWriter(CodeGenerator gen, YExtension ext, ResourceConfig cfg)
protected java.util.Collection<MethodWriter> getSubResourceMethodWriters()
AbstractResourceWriterMethodWriter CollectiongetSubResourceMethodWriters in class AbstractResourceWriterMethodWriterprotected MethodWriter getReadResourceMethodWriter()
AbstractResourceWriterMethodWriter.getReadResourceMethodWriter in class AbstractResourceWriterMethodWriterprotected java.util.Collection<MethodWriter> getResourceValueMethodWriters()
AbstractResourceWriterMethodWriter which delegates to AbstractResource#get/setResourceValue(...) but
is named more user-friendly.getResourceValueMethodWriters in class AbstractResourceWriterMethodWriterprotected MethodWriter createGetMethodWriter()
createGetMethodWriter in class AbstractResourceWriterprotected MethodWriter createDeleteMethodWriter()
createDeleteMethodWriter in class AbstractResourceWriterprotected MethodWriter createPutMethodWriter()
createPutMethodWriter in class AbstractResourceWriterprotected MethodWriter createPostMethodWriter()
createPostMethodWriter in class AbstractResourceWriterCopyright © 2018 SAP SE. All Rights Reserved.