public final class TcapOperation extends ImmutableDataObject
| Modifier and Type | Class and Description |
|---|---|
static class |
TcapOperation.OperationClass
Enum for TCAP Class of Operation, as defined in ITU Q.773.
|
| Constructor and Description |
|---|
TcapOperation(TcapOperation parent,
String fieldName,
String protocolName,
String moduleName,
String valuerefName,
String apiName,
Code code,
TcapOperation.OperationClass classOfOperation,
String argTypeName,
boolean argOptional,
String resultTypeName,
boolean resultOptional,
TcapError[] errors,
TcapOperation[] linkedOperations,
EventTypeID invokeEventTypeID,
String invokeEventClassName,
EventTypeID resultEventTypeID,
String resultEventClassName)
Constructs a new TcapOperation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAPIName()
Get the name used in this API for this operation.
|
Class<?> |
getArgumentType(ClassLoader loader)
Get the Java Class used to carry the argument of this operation.
|
String |
getArgumentTypeName()
Get the name of the Java class used to carry the argument of this operation.
|
String |
getASN1Module()
Get the name of the ASN.1 module containing the definition of this operation
|
String |
getASN1Name()
Get the ASN.1 value reference name defining this operation
|
TcapOperation |
getBaseOperation()
Get the base operation of this operation.
|
TcapError[] |
getErrors()
Get the set of allowable User Errors returned by this operation.
|
String |
getFieldName()
Get the field name of this operation.
|
Class<?> |
getInvokeEventClass(ClassLoader loader)
Get the event class to use for this operation's invoke events
|
String |
getInvokeEventClassName()
Get the name of the event class to use for this operation's invoke events
|
EventTypeID |
getInvokeEventTypeID()
Get the event type to use for this operation's invoke events
|
TcapOperation[] |
getLinkedOperations()
Get the set of allowable linked operations associated with this operation.
|
TcapOperation.OperationClass |
getOperationClass()
Get the TCAP class of operation of this operation.
|
Code |
getOperationCode()
Get the operation code of this operation.
|
TcapOperation |
getParentOperation()
Get the parent operation of this operation.
|
String |
getProtocolName()
Get the name of the operation's protocol.
|
Class<?> |
getResultEventClass(ClassLoader loader)
Get the event class to use for this operation's result events
|
String |
getResultEventClassName()
Get the event class name to use for this operation's result events
|
EventTypeID |
getResultEventTypeID()
Get the event type to use for this operation's result events
|
Class<?> |
getResultType(ClassLoader loader)
Get the Java Class used to carry the result of this operation.
|
String |
getResultTypeName()
Get the name of the Java class used to carry the result of this operation.
|
int |
hashCode() |
boolean |
isA(TcapOperation other)
Test if this is a suboperation of another operation
|
boolean |
isArgumentOptional()
Check if the argument to this operation is optional.
|
boolean |
isResultOptional()
Check if the result data for this operation is optional.
|
String |
toString() |
clone, isReadOnly, setReadOnlypublic TcapOperation(TcapOperation parent, String fieldName, String protocolName, String moduleName, String valuerefName, String apiName, Code code, TcapOperation.OperationClass classOfOperation, String argTypeName, boolean argOptional, String resultTypeName, boolean resultOptional, TcapError[] errors, TcapOperation[] linkedOperations, EventTypeID invokeEventTypeID, String invokeEventClassName, EventTypeID resultEventTypeID, String resultEventClassName)
parent - the parent operation to extend, or null if this operation does not extend a parent operation.fieldName - the full field name defining this operationprotocolName - the name of this operation's protocolmoduleName - the name of the ASN.1 module defining this operationvaluerefName - the valueref name within the ASN.1 module for this operation definitionapiName - the short name used within the API for this operationcode - the operation code of the operationclassOfOperation - the class of operationargTypeName - the name of the Java class used to carry the argument of this operation, or null if the operation has no argumentargOptional - true iff the operation argument is optionalresultTypeName - the name of the Java class used to carry the result of this operation, or null if the operation has no resultresultOptional - true iff the operation result is optionalerrors - an array of possible user errors returned by this operation, or null if the operation allows no user errorslinkedOperations - an array of possible linked operations for this operation, or null if the operation allows no linked operationsinvokeEventTypeID - an EventTypeID instance indicating the type of event this operation's invokes will be fired as.invokeEventClassName - the name of the Java class this operation's invokes will be fired as.resultEventTypeID - an EventTypeID instance indicating the type of event this operation's results will be fired as, or null if this
operation does not fire result eventsresultEventClassName - the name of the Java class this operation's results will be fired as.NullPointerException - if a required parameter is nullIllegalArgumentException - if the provided class of operation is inconsistent with the argument/result/error description providedpublic String getFieldName()
public String getProtocolName()
public String getASN1Name()
public String getASN1Module()
public String getAPIName()
public Code getOperationCode()
public TcapOperation.OperationClass getOperationClass()
public Class<?> getArgumentType(ClassLoader loader)
loader - the classloader to use to load the classnull if the operation has no argument type definedTypeNotPresentException - if the class cannot be loadedpublic String getArgumentTypeName()
null if the operation has no argument type definedpublic boolean isArgumentOptional()
public Class<?> getResultType(ClassLoader loader)
loader - the classloader to use to load the classnull if the operation has no result type defined or the operation does not returns successTypeNotPresentException - if the class cannot be loadedpublic String getResultTypeName()
null if the operation has no result type defined or the operation does not returns successpublic boolean isResultOptional()
public TcapError[] getErrors()
public TcapOperation[] getLinkedOperations()
public EventTypeID getInvokeEventTypeID()
public Class<?> getInvokeEventClass(ClassLoader loader)
loader - the classloader to use to load the classTypeNotPresentException - if the class cannot be loadedpublic String getInvokeEventClassName()
public EventTypeID getResultEventTypeID()
public Class<?> getResultEventClass(ClassLoader loader)
loader - the classloader to use to load the classTypeNotPresentException - if the class cannot be loadedpublic String getResultEventClassName()
public TcapOperation getParentOperation()
null if this operation has no parent.public TcapOperation getBaseOperation()
this if this operation has no parent.public boolean isA(TcapOperation other)
other - the other operation to test againstother is a transitive parent of this operation