Package com.abstratt.kirra
Class Service
- java.lang.Object
-
- com.abstratt.kirra.NamedElement<Namespace>
-
- com.abstratt.kirra.TopLevelElement
-
- com.abstratt.kirra.Service
-
- All Implemented Interfaces:
BehaviorScope
,NameScope
,Serializable
,Comparable<NamedElement<Namespace>>
public class Service extends TopLevelElement implements BehaviorScope
A service is a collection of operations.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Operation>
operations
-
Fields inherited from class com.abstratt.kirra.TopLevelElement
namespace
-
Fields inherited from class com.abstratt.kirra.NamedElement
description, label, name, symbol, userVisible
-
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Operation
getOperation(String name)
List<Operation>
getOperations()
TypeRef.TypeKind
getTypeKind()
void
setOperations(List<Operation> operations)
-
Methods inherited from class com.abstratt.kirra.TopLevelElement
getNamespace, getTypeRef, isA, setNamespace
-
Methods inherited from class com.abstratt.kirra.NamedElement
compareTo, equals, getDescription, getLabel, getName, getSymbol, hashCode, isUserVisible, setDescription, setLabel, setName, setSymbol, setUserVisible, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.abstratt.kirra.NameScope
getTypeRef
-
-
-
-
Method Detail
-
getOperation
public Operation getOperation(String name)
- Specified by:
getOperation
in interfaceBehaviorScope
-
getOperations
public List<Operation> getOperations()
- Specified by:
getOperations
in interfaceBehaviorScope
-
getTypeKind
public TypeRef.TypeKind getTypeKind()
- Specified by:
getTypeKind
in interfaceNameScope
-
-