org.asnlab.asndt.runtime.conv
Class CompositeConverter

java.lang.Object
  extended by org.asnlab.asndt.runtime.conv.AsnConverter
      extended by org.asnlab.asndt.runtime.conv.CompositeConverter
Direct Known Subclasses:
ChoiceValue.ChoiceValueConverter.ChoiceValueConverterConverter, CompositeConverter.CompositeConverterConverter, CompositeValue.CompositeValueConverter, EnumeratedValue.EnumeratedValueConverter, ListConverter.ListConverterConverter, OpenValueConverter.OpenValueConverterConverter

public abstract class CompositeConverter
extends AsnConverter

The CompositeConverter can convert composite value. This class is intent to be extended.


Nested Class Summary
protected static class CompositeConverter.CompositeConverterConverter
           
 
Field Summary
protected  AsnConverter[] componentConverters
          The component converters
 
Constructor Summary
CompositeConverter()
           
CompositeConverter(AsnConverter[] componentConverters)
           
 
Method Summary
abstract  java.lang.Object createObject()
          Create the empty composite value object.
 AsnConverter getComponentConverter(int index)
          Returns this CompositeConverter's component converters.
abstract  java.lang.Object getComponentObject(java.lang.Object object, int index)
          Given the composite value object, and the component index, return the component value object.
 void setComponentConverters(AsnConverter[] componentConverters)
          Sets this CompositeConverter's component converters
abstract  void setComponentObject(java.lang.Object object, int index, java.lang.Object componentObject)
          Set the component value object of the composite value object
 
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
 

Field Detail

componentConverters

protected AsnConverter[] componentConverters
The component converters

Constructor Detail

CompositeConverter

public CompositeConverter()

CompositeConverter

public CompositeConverter(AsnConverter[] componentConverters)
Method Detail

setComponentConverters

public void setComponentConverters(AsnConverter[] componentConverters)
Sets this CompositeConverter's component converters

Parameters:
componentConverters - The component converters

getComponentConverter

public AsnConverter getComponentConverter(int index)
Returns this CompositeConverter's component converters.

Returns:
The component converters of this CompositeConverter

createObject

public abstract java.lang.Object createObject()
Create the empty composite value object.

Returns:
The new composite value object

getComponentObject

public abstract java.lang.Object getComponentObject(java.lang.Object object,
                                                    int index)
Given the composite value object, and the component index, return the component value object.

Parameters:
object - The composite value object
index - The component index
Returns:
The component value object

setComponentObject

public abstract void setComponentObject(java.lang.Object object,
                                        int index,
                                        java.lang.Object componentObject)
Set the component value object of the composite value object

Parameters:
object - The composite value object
index - The component index
componentObject - The component value object


Copyright �2009-2012 ASN Lab