*/
super.transitions[CancelStatesEnum.START_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] =
new GrammarTransition<CancelContainer>( CancelStatesEnum.START_STATE,
CancelStatesEnum.CANCEL_SEQUENCE_STATE,
UniversalTag.SEQUENCE.getValue(),
new GrammarAction( "Init Cancel" )
{
public void action( Asn1Container container )
{
CancelContainer cancelContainer = ( CancelContainer ) container;
Cancel cancel = new Cancel();
cancelContainer.setCancel( cancel );
}
} );
/**
* Transition from cancel SEQ to cancelId
*
* cancelRequestValue ::= SEQUENCE {
* cancelId MessageID
* }
*
* Set the cancelId value into the Cancel object.
*/
super.transitions[CancelStatesEnum.CANCEL_SEQUENCE_STATE.ordinal()][UniversalTag.INTEGER.getValue()] =
new GrammarTransition<CancelContainer>( CancelStatesEnum.CANCEL_SEQUENCE_STATE,
CancelStatesEnum.CANCEL_ID_STATE,
UniversalTag.INTEGER.getValue(),
new GrammarAction( "Stores CancelId" )
{
public void action( Asn1Container container ) throws DecoderException
{
CancelContainer cancelContainer = ( CancelContainer ) container;
BerValue value = cancelContainer.getCurrentTLV().getValue();