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 TCOperationInvokeTcapComponentasTcOperationInvoke()TCOperationProviderErrorTcapComponentasTcOperationProviderError()TCOperationResultTcapComponentasTcOperationResult()TCOperationUserErrorTcapComponent<?>asTcOperationUserError()booleanequals(java.lang.Object o)intgetInvokeId()com.opencloud.slee.resources.cgin.TcapOperationgetOperation()TcapComponent.TypegetType()inthashCode()booleanisType(TcapComponent.Type toCheck)voidsetInvokeId(int invokeId)voidtoStream(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.IOExceptionSerialize the state of this object to a stream.- Specified by:
toStreamin 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:
getOperationin 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:
getTypein interfaceTcapComponent- Returns:
- the type of this tcap component
-
isType
public final boolean isType(TcapComponent.Type toCheck)
- Specified by:
isTypein 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:
asTcOperationInvokein interfaceTcapComponent
-
asTcOperationResult
public final TCOperationResultTcapComponent asTcOperationResult()
- Specified by:
asTcOperationResultin interfaceTcapComponent
-
asTcOperationProviderError
public final TCOperationProviderErrorTcapComponent asTcOperationProviderError()
- Specified by:
asTcOperationProviderErrorin interfaceTcapComponent
-
asTcOperationUserError
public final TCOperationUserErrorTcapComponent<?> asTcOperationUserError()
- Specified by:
asTcOperationUserErrorin interfaceTcapComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-