Package io.protostuff.compiler.model
Class Service
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.AbstractDescriptor
-
- io.protostuff.compiler.model.Service
-
- All Implemented Interfaces:
Descriptor,Element,Type
public class Service extends AbstractDescriptor implements Type
Service node.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
-
Fields inherited from class io.protostuff.compiler.model.AbstractDescriptor
name, options
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMethod(ServiceMethod method)StringgetCanonicalName()DescriptorTypegetDescriptorType()StringgetFullyQualifiedName()ServiceMethodgetMethod(String name)Get a service method by it's name.List<ServiceMethod>getMethods()ProtogetParent()ProtogetProto()voidsetFullyQualifiedName(String fullyQualifiedName)voidsetMethods(List<ServiceMethod> methods)voidsetProto(Proto proto)StringtoString()-
Methods inherited from class io.protostuff.compiler.model.AbstractDescriptor
getName, getOptions, setName
-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.protostuff.compiler.model.Element
getCommentLines, getComments, getSourceCodeLocation
-
-
-
-
Constructor Detail
-
Service
public Service(Proto parent)
-
-
Method Detail
-
getDescriptorType
public DescriptorType getDescriptorType()
- Specified by:
getDescriptorTypein interfaceDescriptor
-
getProto
public Proto getProto()
-
setProto
public void setProto(Proto proto)
-
getFullyQualifiedName
public String getFullyQualifiedName()
- Specified by:
getFullyQualifiedNamein interfaceType
-
setFullyQualifiedName
public void setFullyQualifiedName(String fullyQualifiedName)
-
getMethods
public List<ServiceMethod> getMethods()
-
setMethods
public void setMethods(List<ServiceMethod> methods)
-
getMethod
public ServiceMethod getMethod(String name)
Get a service method by it's name.
-
addMethod
public void addMethod(ServiceMethod method)
-
getCanonicalName
public String getCanonicalName()
- Specified by:
getCanonicalNamein interfaceType
-
-