function TypeMapping(code) {
    switch (code) {
        case ActionCode.CodeAssetDefinition:
            return new AssetDefinition();
        case ActionCode.CodeAssetCreation:
            return new AssetCreation();
        case ActionCode.CodeAssetModification:
            return new AssetModification();
        case ActionCode.CodeContractOffer:
            return new ContractOffer();
        case ActionCode.CodeContractFormation:
            return new ContractFormation();
        case ActionCode.CodeContractAmendment:
            return new ContractAmendment();
        case ActionCode.CodeStaticContractFormation:
            return new StaticContractFormation();
        case ActionCode.CodeContractAddressChange:
            return new ContractAddressChange();
        case ActionCode.CodeOrder:
            return new Order();
        case ActionCode.CodeFreeze:
            return new Freeze();
        case ActionCode.CodeThaw:
            return new Thaw();
        case ActionCode.CodeConfiscation:
            return new Confiscation();
        case ActionCode.CodeReconciliation:
            return new Reconciliation();
        case ActionCode.CodeProposal:
            return new Proposal();
        case ActionCode.CodeVote:
            return new Vote();
        case ActionCode.CodeBallotCast:
            return new BallotCast();
        case ActionCode.CodeBallotCounted:
            return new BallotCounted();
        case ActionCode.CodeResult:
            return new Result();
        case ActionCode.CodeMessage:
            return new Message();
        case ActionCode.CodeRejection:
            return new Rejection();
        case ActionCode.CodeEstablishment:
            return new Establishment();
        case ActionCode.CodeAddition:
            return new Addition();
        case ActionCode.CodeAlteration:
            return new Alteration();
        case ActionCode.CodeRemoval:
            return new Removal();
        case ActionCode.CodeTransfer:
            return new Transfer();
        case ActionCode.CodeSettlement:
            return new Settlement();
        default:
            return null;
    }
}
// TypeMapping holds a mapping of action codes to action types.
TypeMapping holds a mapping of action codes to action types.
TypeMapping holds a mapping of action codes to action types .
function TypeMapping(code) {
    switch (code) {
        case ActionCode.CodeAssetDefinition:
            return new AssetDefinition();
        case ActionCode.CodeAssetCreation:
            return new AssetCreation();
        case ActionCode.CodeAssetModification:
            return new AssetModification();
        case ActionCode.CodeContractOffer:
            return new ContractOffer();
        case ActionCode.CodeContractFormation:
            return new ContractFormation();
        case ActionCode.CodeContractAmendment:
            return new ContractAmendment();
        case ActionCode.CodeStaticContractFormation:
            return new StaticContractFormation();
        case ActionCode.CodeContractAddressChange:
            return new ContractAddressChange();
        case ActionCode.CodeOrder:
            return new Order();
        case ActionCode.CodeFreeze:
            return new Freeze();
        case ActionCode.CodeThaw:
            return new Thaw();
        case ActionCode.CodeConfiscation:
            return new Confiscation();
        case ActionCode.CodeReconciliation:
            return new Reconciliation();
        case ActionCode.CodeProposal:
            return new Proposal();
        case ActionCode.CodeVote:
            return new Vote();
        case ActionCode.CodeBallotCast:
            return new BallotCast();
        case ActionCode.CodeBallotCounted:
            return new BallotCounted();
        case ActionCode.CodeResult:
            return new Result();
        case ActionCode.CodeMessage:
            return new Message();
        case ActionCode.CodeRejection:
            return new Rejection();
        case ActionCode.CodeEstablishment:
            return new Establishment();
        case ActionCode.CodeAddition:
            return new Addition();
        case ActionCode.CodeAlteration:
            return new Alteration();
        case ActionCode.CodeRemoval:
            return new Removal();
        case ActionCode.CodeTransfer:
            return new Transfer();
        case ActionCode.CodeSettlement:
            return new Settlement();
        default:
            return null;
    }
}
function TypeMapping ( code ) { switch ( code ) { case ActionCode . CodeAssetDefinition : return new AssetDefinition ( ) ; case ActionCode . CodeAssetCreation : return new AssetCreation ( ) ; case ActionCode . CodeAssetModification : return new AssetModification ( ) ; case ActionCode . CodeContractOffer : return new ContractOffer ( ) ; case ActionCode . CodeContractFormation : return new ContractFormation ( ) ; case ActionCode . CodeContractAmendment : return new ContractAmendment ( ) ; case ActionCode . CodeStaticContractFormation : return new StaticContractFormation ( ) ; case ActionCode . CodeContractAddressChange : return new ContractAddressChange ( ) ; case ActionCode . CodeOrder : return new Order ( ) ; case ActionCode . CodeFreeze : return new Freeze ( ) ; case ActionCode . CodeThaw : return new Thaw ( ) ; case ActionCode . CodeConfiscation : return new Confiscation ( ) ; case ActionCode . CodeReconciliation : return new Reconciliation ( ) ; case ActionCode . CodeProposal : return new Proposal ( ) ; case ActionCode . CodeVote : return new Vote ( ) ; case ActionCode . CodeBallotCast : return new BallotCast ( ) ; case ActionCode . CodeBallotCounted : return new BallotCounted ( ) ; case ActionCode . CodeResult : return new Result ( ) ; case ActionCode . CodeMessage : return new Message ( ) ; case ActionCode . CodeRejection : return new Rejection ( ) ; case ActionCode . CodeEstablishment : return new Establishment ( ) ; case ActionCode . CodeAddition : return new Addition ( ) ; case ActionCode . CodeAlteration : return new Alteration ( ) ; case ActionCode . CodeRemoval : return new Removal ( ) ; case ActionCode . CodeTransfer : return new Transfer ( ) ; case ActionCode . CodeSettlement : return new Settlement ( ) ; default : return null ; } }
TypeMapping holds a mapping of action codes to action types.
TypeMapping holds a mapping of action codes to action types .