Class TCOperationTcapComponent
- java.lang.Object
-
- com.opencloud.sentinel.ipsmgw.eventmanager.tcapmessage.TCOperationTcapComponent
-
- All Implemented Interfaces:
TcapComponent
,com.opencloud.util.FastSerializable
,java.io.Serializable
- Direct Known Subclasses:
TCOperationInvokeTcapComponent
,TCOperationProviderErrorTcapComponent
,TCOperationResultTcapComponent
,TCOperationUserErrorTcapComponent
public abstract class TCOperationTcapComponent extends java.lang.Object implements TcapComponent, java.io.Serializable, com.opencloud.util.FastSerializable
Base class for all classes that represent a component- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.opencloud.sentinel.ipsmgw.eventmanager.tcapmessage.TcapComponent
TcapComponent.Type
-
-
Constructor Summary
Constructors Constructor Description TCOperationTcapComponent(TcapComponent.Type type, com.opencloud.slee.resources.cgin.TcapOperation operation, int invokeId)
TCOperationTcapComponent(java.io.DataInput ip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TCOperationInvokeTcapComponent
asTcOperationInvoke()
TCOperationProviderErrorTcapComponent
asTcOperationProviderError()
TCOperationResultTcapComponent
asTcOperationResult()
TCOperationUserErrorTcapComponent<?>
asTcOperationUserError()
boolean
equals(java.lang.Object o)
int
getInvokeId()
com.opencloud.slee.resources.cgin.TcapOperation
getOperation()
TcapComponent.Type
getType()
int
hashCode()
boolean
isType(TcapComponent.Type toCheck)
void
setInvokeId(int invokeId)
void
toStream(java.io.DataOutput op)
Serialize the state of this object to a stream.
-
-
-
Constructor Detail
-
TCOperationTcapComponent
public TCOperationTcapComponent(java.io.DataInput ip) throws java.io.IOException
- Throws:
java.io.IOException
-
TCOperationTcapComponent
public TCOperationTcapComponent(TcapComponent.Type type, com.opencloud.slee.resources.cgin.TcapOperation operation, int invokeId)
-
-
Method Detail
-
toStream
public void toStream(java.io.DataOutput op) throws java.io.IOException
Serialize the state of this object to a stream.- Specified by:
toStream
in interfacecom.opencloud.util.FastSerializable
- Parameters:
op
- the stream to serialize to.- Throws:
java.io.IOException
- if an error occurs during serialization
-
getOperation
public com.opencloud.slee.resources.cgin.TcapOperation getOperation()
- Specified by:
getOperation
in interfaceTcapComponent
- Returns:
- the TCAP operation this component is related to
-
getInvokeId
public int getInvokeId()
-
setInvokeId
public void setInvokeId(int invokeId)
-
getType
public final TcapComponent.Type getType()
- Specified by:
getType
in interfaceTcapComponent
- Returns:
- the type of this tcap component
-
isType
public final boolean isType(TcapComponent.Type toCheck)
- Specified by:
isType
in interfaceTcapComponent
- Parameters:
toCheck
- the type to compare the type of this tcap component to- Returns:
- true, if the type if this tcap component is the same as
toCheck
-
asTcOperationInvoke
public final TCOperationInvokeTcapComponent asTcOperationInvoke()
- Specified by:
asTcOperationInvoke
in interfaceTcapComponent
-
asTcOperationResult
public final TCOperationResultTcapComponent asTcOperationResult()
- Specified by:
asTcOperationResult
in interfaceTcapComponent
-
asTcOperationProviderError
public final TCOperationProviderErrorTcapComponent asTcOperationProviderError()
- Specified by:
asTcOperationProviderError
in interfaceTcapComponent
-
asTcOperationUserError
public final TCOperationUserErrorTcapComponent<?> asTcOperationUserError()
- Specified by:
asTcOperationUserError
in interfaceTcapComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-