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,
java.lang.String fieldName,
java.lang.String protocolName,
java.lang.String moduleName,
java.lang.String valuerefName,
java.lang.String apiName,
Code code,
TcapOperation.OperationClass classOfOperation,
java.lang.String argTypeName,
boolean argOptional,
java.lang.String resultTypeName,
boolean resultOptional,
TcapError[] errors,
TcapOperation[] linkedOperations,
EventTypeID invokeEventTypeID,
java.lang.String invokeEventClassName,
EventTypeID resultEventTypeID,
java.lang.String resultEventClassName)
Constructs a new TcapOperation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAPIName()
Get the name used in this API for this operation.
|
java.lang.Class<?> |
getArgumentType(java.lang.ClassLoader loader)
Get the Java Class used to carry the argument of this operation.
|
java.lang.String |
getArgumentTypeName()
Get the name of the Java class used to carry the argument of this operation.
|
java.lang.String |
getASN1Module()
Get the name of the ASN.1 module containing the definition of this operation
|
java.lang.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.
|
java.lang.String |
getFieldName()
Get the field name of this operation.
|
java.lang.Class<?> |
getInvokeEventClass(java.lang.ClassLoader loader)
Get the event class to use for this operation's invoke events
|
java.lang.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.
|
java.lang.String |
getProtocolName()
Get the name of the operation's protocol.
|
java.lang.Class<?> |
getResultEventClass(java.lang.ClassLoader loader)
Get the event class to use for this operation's result events
|
java.lang.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
|
java.lang.Class<?> |
getResultType(java.lang.ClassLoader loader)
Get the Java Class used to carry the result of this operation.
|
java.lang.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.
|
java.lang.String |
toString() |
clone, isReadOnly, setReadOnlypublic TcapOperation(TcapOperation parent, java.lang.String fieldName, java.lang.String protocolName, java.lang.String moduleName, java.lang.String valuerefName, java.lang.String apiName, Code code, TcapOperation.OperationClass classOfOperation, java.lang.String argTypeName, boolean argOptional, java.lang.String resultTypeName, boolean resultOptional, TcapError[] errors, TcapOperation[] linkedOperations, EventTypeID invokeEventTypeID, java.lang.String invokeEventClassName, EventTypeID resultEventTypeID, java.lang.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.java.lang.NullPointerException - if a required parameter is nulljava.lang.IllegalArgumentException - if the provided class of operation is inconsistent with the argument/result/error description providedpublic java.lang.String getFieldName()
public java.lang.String getProtocolName()
public java.lang.String getASN1Name()
public java.lang.String getASN1Module()
public java.lang.String getAPIName()
public Code getOperationCode()
public TcapOperation.OperationClass getOperationClass()
public java.lang.Class<?> getArgumentType(java.lang.ClassLoader loader)
loader - the classloader to use to load the classnull if the operation has no argument type definedjava.lang.TypeNotPresentException - if the class cannot be loadedpublic java.lang.String getArgumentTypeName()
null if the operation has no argument type definedpublic boolean isArgumentOptional()
public java.lang.Class<?> getResultType(java.lang.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 successjava.lang.TypeNotPresentException - if the class cannot be loadedpublic java.lang.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 java.lang.Class<?> getInvokeEventClass(java.lang.ClassLoader loader)
loader - the classloader to use to load the classjava.lang.TypeNotPresentException - if the class cannot be loadedpublic java.lang.String getInvokeEventClassName()
public EventTypeID getResultEventTypeID()
public java.lang.Class<?> getResultEventClass(java.lang.ClassLoader loader)
loader - the classloader to use to load the classjava.lang.TypeNotPresentException - if the class cannot be loadedpublic java.lang.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 operationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object