Package org.asnlab.asndt.runtime.conv
Class ListConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ListConverter
- Direct Known Subclasses:
ArrayConverter,ArrayListConverter,LinkedListConverter,VectorConverter
The
ListConverter can convert
SEQUENCE OF/SET OF value object to/from List
This class is intent to be extended.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddComponentObject(Object object, Object componentObject) Add component object to the SEQUENCE OF/SET OF value objectabstract ObjectcreateObject(int size) Given the size, create a (temporary) SEQUENCE OF/SET OF value objectReturns this ListConverter component converter.abstract ObjectgetComponentObject(Object object, int index) Answer the component object of the SEQUENCE OF/SET OF value objectabstract intAnswer the size of the SEQUENCE OF/SET OF value objectvoidsetComponentConverter(AsnConverter componentConverter) Sets this ListConverter component converterabstract ObjectReturn the final SEQUENCE OF/SET OF value object for the given temporary objectMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Constructor Details
-
ListConverter
public ListConverter() -
ListConverter
-
-
Method Details
-
setComponentConverter
Sets this ListConverter component converter- Parameters:
componentConverter- The component converter
-
getComponentConverter
Returns this ListConverter component converter.- Returns:
- The component converter of this ListConverter
-
getSize
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
Answer the component object of the SEQUENCE OF/SET OF value object- Parameters:
object- The SEQUENCE OF/SET OF value objectindex- The index of the component object- Returns:
- The component object of the SEQUENCE OF/SET OF value object
-
createObject
Given the size, create a (temporary) 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
Add component object to the SEQUENCE OF/SET OF value object- Parameters:
object- The SEQUENCE OF/SET OF value objectcomponentObject- The component object
-
toObject
Return the final SEQUENCE OF/SET OF value object for the given temporary object- Parameters:
object- The list object- Returns:
- The SEQUENCE OF/SET OF value object
-