Package org.asnlab.asndt.runtime.conv
Class CompositeConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.CompositeConverter
- Direct Known Subclasses:
AbstractCompositeConverter
,ChoiceValue.ChoiceValueConverter.ChoiceValueConverterConverter
,CompositeConverter.CompositeConverterConverter
,CompositeValue.CompositeValueConverter
,EnumeratedValue.EnumeratedValueConverter
The
CompositeConverter
can convert
composite value. This class is intent to be extended.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
Create an empty composite value object.getComponentConverter
(int index) Returns this CompositeConverter's component converters.abstract Object
getComponentObject
(Object object, int index) Given the composite value object, and the component index, return the component value object.int
void
setComponentConverters
(AsnConverter[] componentConverters) Sets this CompositeConverter's component convertersabstract void
setComponentObject
(Object object, int index, Object componentObject) Set the component value object of the composite value objectMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Field Details
-
componentConverters
The component converters
-
-
Constructor Details
-
CompositeConverter
public CompositeConverter() -
CompositeConverter
-
-
Method Details
-
setComponentConverters
Sets this CompositeConverter's component converters- Parameters:
componentConverters
- The component converters
-
getComponentsSize
public int getComponentsSize() -
getComponentConverter
Returns this CompositeConverter's component converters.- Parameters:
index
- The index of component- Returns:
- The component converters of this CompositeConverter
-
createObject
Create an empty composite value object.- Returns:
- The new composite value object
-
getComponentObject
Given the composite value object, and the component index, return the component value object.- Parameters:
object
- The composite value objectindex
- The component index- Returns:
- The component value object
-
setComponentObject
Set the component value object of the composite value object- Parameters:
object
- The composite value objectindex
- The component indexcomponentObject
- The component value object
-