org.asnlab.asndt.runtime.conv
Class ListConverter

java.lang.Object
  extended by org.asnlab.asndt.runtime.conv.AsnConverter
      extended by org.asnlab.asndt.runtime.conv.ListConverter

public class ListConverter
extends AsnConverter

The ListConverter can convert SEQUENCE OF/SET OF value object to/from Vector This class is intent to be extended.


Nested Class Summary
protected static class ListConverter.ListConverterConverter
           
 
Constructor Summary
ListConverter()
           
ListConverter(AsnConverter componentConverter)
           
 
Method Summary
 void addComponentObject(java.lang.Object object, java.lang.Object componentObject)
          Add component object to the SEQUENCE OF/SET OF value object
 java.lang.Object createObject(int size)
          Given the size, create a SEQUENCE OF/SET OF value object
 AsnConverter getComponentConverter()
          Returns this ListConverter component converter.
 java.lang.Object getComponentObject(java.lang.Object object, int index)
          Answer the component object of the SEQUENCE OF/SET OF value object
 int getSize(java.lang.Object object)
          Answer the size of the SEQUENCE OF/SET OF value object
 void setComponentConverter(AsnConverter componentConverter)
          Sets this ListConverter component converter
 
Methods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
convert, convert, convert, convert, createAsnConverterConverter, createAsnConverterType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListConverter

public ListConverter()

ListConverter

public ListConverter(AsnConverter componentConverter)
Method Detail

setComponentConverter

public void setComponentConverter(AsnConverter componentConverter)
Sets this ListConverter component converter

Parameters:
componentConverter - The component converter

getComponentConverter

public AsnConverter getComponentConverter()
Returns this ListConverter component converter.

Returns:
The component converter of this ListConverter

getSize

public int getSize(java.lang.Object object)
Answer the size of the SEQUENCE OF/SET OF value object

Parameters:
object - The SEQUENCE OF/SET OF value object
Returns:
The size of the SEQUENCE OF/SET OF value object

getComponentObject

public java.lang.Object getComponentObject(java.lang.Object object,
                                           int index)
Answer the component object of the SEQUENCE OF/SET OF value object

Parameters:
object - The SEQUENCE OF/SET OF value object
index - The index of the component object
Returns:
The component object of the SEQUENCE OF/SET OF value object

createObject

public java.lang.Object createObject(int size)
Given the size, create a SEQUENCE OF/SET OF value object

Parameters:
size - The size of the SEQUENCE OF/SET OF value object
Returns:
The SEQUENCE OF/SET OF value object

addComponentObject

public void addComponentObject(java.lang.Object object,
                               java.lang.Object componentObject)
Add component object to the SEQUENCE OF/SET OF value object

Parameters:
object - The SEQUENCE OF/SET OF value object
componentObject - The component object


Copyright �2009-2012 ASN Lab