com.objsys.asn1j.runtime
Class Asn1PerBitFieldList

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1PerBitFieldList

public class Asn1PerBitFieldList
extends java.lang.Object

This class is used to map all of the bit fields in a PER message. After encoding or decoding is complete, this object can be used to provide a formatted printout of all of the message fields.


Constructor Summary
Asn1PerBitFieldList()
           
 
Method Summary
 void addElemName(java.lang.String name, int arrayx)
          This method adds an element name to the current fully qualified name.
 Asn1PerBitField getCurrBitField()
          This method returns a reference to the current bit field object (i.e. the one that was last created).
 java.util.Iterator iterator()
          This method returns an iterator to the encapsulated bit field linked list object.
 Asn1PerBitField newBitField(java.lang.String nameSuffix, int bitOffset, int bitCount)
          This method creates a new bit field object with the given properties and appends it to the bit field list.
 void removeLastElemName()
          This method removes the last element name in the current fully qualified name string.
 void reset()
          This method resets the object.
 void setBitOffset(int bitOffset)
          This method is used to change the bit offset in the current bit field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1PerBitFieldList

public Asn1PerBitFieldList()
Method Detail

addElemName

public void addElemName(java.lang.String name,
                        int arrayx)
This method adds an element name to the current fully qualified name. The fully qualified name is a string of name components separated by dots (ex. a.b.c).

Parameters:
name - Name component to append to string
arrayx - Array index if named item is an element in an array (set to -1 otherwise)

getCurrBitField

public Asn1PerBitField getCurrBitField()
This method returns a reference to the current bit field object (i.e. the one that was last created).


iterator

public java.util.Iterator iterator()
This method returns an iterator to the encapsulated bit field linked list object.


newBitField

public Asn1PerBitField newBitField(java.lang.String nameSuffix,
                                   int bitOffset,
                                   int bitCount)
This method creates a new bit field object with the given properties and appends it to the bit field list.

Parameters:
nameSuffix - Suffix to add to fully qualified name for this field (for example, 'length')
bitOffset - Offset to the start of this field in bits from the beginning of the encode buffer.
bitCount - Number of bits in the field.

removeLastElemName

public void removeLastElemName()
This method removes the last element name in the current fully qualified name string. For example, if the current string is 'a.b.c', it will be 'a.b' after calling this method.


reset

public void reset()
This method resets the object.


setBitOffset

public void setBitOffset(int bitOffset)
This method is used to change the bit offset in the current bit field.