Package com.abstratt.kirra
Class Operation
- java.lang.Object
-
- com.abstratt.kirra.NamedElement<O>
-
- com.abstratt.kirra.SubElement<O>
-
- com.abstratt.kirra.TypedElement<BehaviorScope>
-
- com.abstratt.kirra.Operation
-
- All Implemented Interfaces:
NameScope
,ParameterScope
,Serializable
,Comparable<NamedElement<BehaviorScope>>
public class Operation extends TypedElement<BehaviorScope> implements ParameterScope
Represents behavioral elements such as Actions and Queries.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Operation.OperationKind
An operation can of many kinds.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
enabled
protected boolean
instanceOperation
protected Operation.OperationKind
kind
protected List<Parameter>
parameters
protected List<ParameterSet>
parameterSets
-
Fields inherited from class com.abstratt.kirra.TypedElement
enumerationLiterals, hasDefault, multiple, required, typeRef
-
Fields inherited from class com.abstratt.kirra.SubElement
definer, inherited, owner
-
Fields inherited from class com.abstratt.kirra.NamedElement
description, label, name, symbol, userVisible
-
-
Constructor Summary
Constructors Constructor Description Operation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Operation.OperationKind
getKind()
Parameter
getParameter(String parameterName)
List<Parameter>
getParameters()
ParameterSet
getParameterSet(String parameterName)
List<ParameterSet>
getParameterSets()
TypeRef.TypeKind
getTypeKind()
int
hashCode()
boolean
isEnabled()
boolean
isInstanceOperation()
void
setEnabled(boolean enabled)
void
setInstanceOperation(boolean instanceOperation)
void
setKind(Operation.OperationKind kind)
void
setParameters(List<Parameter> parameters)
void
setParameterSets(List<ParameterSet> parameterSets)
-
Methods inherited from class com.abstratt.kirra.TypedElement
findElement, getEnumerationLiterals, getType, getTypeRef, isHasDefault, isMultiple, isRequired, setEnumerationLiterals, setEnumerationLiterals, setHasDefault, setMultiple, setRequired, setTypeRef
-
Methods inherited from class com.abstratt.kirra.SubElement
getDefiner, getOwner, isInherited, setDefiner, setInherited, setOwner, setOwner
-
Methods inherited from class com.abstratt.kirra.NamedElement
compareTo, getDescription, getLabel, getName, getSymbol, 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
-
-
-
-
Field Detail
-
enabled
protected boolean enabled
-
instanceOperation
protected boolean instanceOperation
-
kind
protected Operation.OperationKind kind
-
parameterSets
protected List<ParameterSet> parameterSets
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classTypedElement<BehaviorScope>
-
getKind
public Operation.OperationKind getKind()
-
getParameter
public Parameter getParameter(String parameterName)
- Specified by:
getParameter
in interfaceParameterScope
-
getParameterSet
public ParameterSet getParameterSet(String parameterName)
-
getParameters
public List<Parameter> getParameters()
- Specified by:
getParameters
in interfaceParameterScope
-
getParameterSets
public List<ParameterSet> getParameterSets()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTypedElement<BehaviorScope>
-
isEnabled
public boolean isEnabled()
-
isInstanceOperation
public boolean isInstanceOperation()
-
setEnabled
public void setEnabled(boolean enabled)
-
setInstanceOperation
public void setInstanceOperation(boolean instanceOperation)
-
setKind
public void setKind(Operation.OperationKind kind)
-
getTypeKind
public TypeRef.TypeKind getTypeKind()
- Specified by:
getTypeKind
in interfaceNameScope
-
setParameterSets
public void setParameterSets(List<ParameterSet> parameterSets)
-
-