TOC PREV NEXT INDEX


SEQUENCE Value Specification



A SEQUENCE value specification causes a final static instance of the Java class generated for the SEQUENCE to be generated.

ASN.1 production:

	<name> <SequenceType> ::= <value>
 

Generated Java constants:

public static final <SequenceType> <name> =
new <SequenceType> ( new <Elem1Type> (<elem1value>),
new <Elem2Type> (<elem2value>),
... );

For example, consider the following declaration:

	SeqType ::=  SEQUENCE {
 
   	   oid		OBJECT IDENTIFIER,
 
   	   id		INTEGER 
 
	}
 

	value SeqType ::= { oid { 0 1 1 }, id 12 }
 

This would result in the following Java constant being generated for value:

	public static final SeqType value = new SeqType (
 
	   new Asn1ObjectIdentifier( new int[]{0, 1, 1}),
 
	   new Asn1Integer(12)
 
	);
 



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.