public class ResourceImpl extends AnnotatableNode implements Resource
ResourceImpl This is the implementation for the Resource API.annotationMap| Constructor and Description |
|---|
ResourceImpl(String name,
ResourceInfo resourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotationEntryKey() |
List<Annotation> |
getAnnotationList(String pkgPath,
String name)
This method will return annotation for the given package path and annotation name.
|
String |
getName()
This method returns the resource name.
|
List<ParamDetail> |
getParamDetails()
This method will return parameter list of the resource.
|
ResourceInfo |
getResourceInfo()
This is a protected method to access original resourceInfo object within Ballerina.
|
String |
getServiceName()
This method returns the corresponding service name.
|
addAnnotationpublic ResourceImpl(String name, ResourceInfo resourceInfo)
public String getName()
Resourcepublic String getServiceName()
ResourcegetServiceName in interface Resourcepublic ResourceInfo getResourceInfo()
getResourceInfo in interface Resourcepublic List<Annotation> getAnnotationList(String pkgPath, String name)
ResourcegetAnnotationList in interface ResourcepkgPath - of the annotation.name - of the annotation.public List<ParamDetail> getParamDetails()
ResourcegetParamDetails in interface Resourcepublic String getAnnotationEntryKey()
getAnnotationEntryKey in class AnnotatableNodeCopyright © 2018 WSO2. All rights reserved.