XCMS Toolkit

schemajic.encoder
Class CompositeValue

java.lang.Object
  extended by schemajic.encoder.TLV
      extended by schemajic.encoder.CompositeValue
Direct Known Subclasses:
ChoiceValue, SequenceValue

public class CompositeValue
extends TLV

Encodes a composite value of an ASN.1 type.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Field Summary
 
Fields inherited from class schemajic.encoder.TLV
_lengthEncoder, _pc, _tagEncoder, _tagLength, _tags, _type
 
Constructor Summary
CompositeValue(Type type, TagList tags, int pc, TagEncoder tagEncoder, LengthEncoder lengthEncoder)
          Constructor for CompositeValue with parameters.
 
Method Summary
 void add(TLV v)
          Adds a given Tag-Length-Value (TLV) element to the current values.
 int getValueLength()
          Returns the current value length.
 void incrementValueLength(int i)
          Updates the current value length by the provided amount.
 
Methods inherited from class schemajic.encoder.TLV
encode, encodeLength, encodeTags, getEncodedLength, getEncodedTags, getTagLength, getTags, getTotalLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeValue

public CompositeValue(Type type,
                      TagList tags,
                      int pc,
                      TagEncoder tagEncoder,
                      LengthEncoder lengthEncoder)
Constructor for CompositeValue with parameters.

Parameters:
type - an ASN.1 type
tags - context specific tags
pc - counter
tagEncoder - ASN.1 tag encoder
lengthEncoder - encoding length encoder
Method Detail

add

public void add(TLV v)
Adds a given Tag-Length-Value (TLV) element to the current values.

Parameters:
v - TLV value to be added to the current values

incrementValueLength

public void incrementValueLength(int i)
Updates the current value length by the provided amount.

Parameters:
i - integer increment amount

getValueLength

public int getValueLength()
Returns the current value length.

Specified by:
getValueLength in class TLV

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.