TOC PREV NEXT INDEX


SEQUENCE OF Value Specification



A SEQUENCE OF value specification causes a Java array constant to be generated.

ASN.1 production:

	<name> <SequenceOfType> ::= <value>
 

Generated Java constants:

public static final <SequenceOfType> <name> =
new <SequenceOfType>[] {
new <ElemType> (<elem1value>),
new <ElemType> (<elem2value>),
... };

For example, consider the following declaration:

	SeqOfType ::=  SEQUENCE OF INTEGER
 

 
	value SeqOfType ::= { 1, 2 }
 
 
 
This would result in the following Java constant being generated for value:

	public static final SeqOfType value = new SeqOfType[] {
 
		new Asn1Integer(1),
 
		new Asn1Integer(2)
 
	};
 



Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com
TOC PREV NEXT INDEX

Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.


This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.