Package org.asnlab.asndt.runtime.conv
Class ArrayListConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ListConverter
org.asnlab.asndt.runtime.conv.ArrayListConverter
The
ArrayListConverter can convert
SEQUENCE OF/SET OF value object to/from ArrayList
This class not is intent to be extended.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentObject(Object object, Object componentObject) Add component object to the SEQUENCE OF/SET OF value objectcreateObject(int size) Given the size, create a (temporary) SEQUENCE OF/SET OF value objectgetComponentObject(Object object, int index) Answer the component object of the SEQUENCE OF/SET OF value objectintAnswer the size of the SEQUENCE OF/SET OF value objectReturn the final SEQUENCE OF/SET OF value object for the given temporary objectMethods inherited from class org.asnlab.asndt.runtime.conv.ListConverter
getComponentConverter, setComponentConverterMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Constructor Details
-
ArrayListConverter
public ArrayListConverter() -
ArrayListConverter
-
-
Method Details
-
getSize
Answer the size of the SEQUENCE OF/SET OF value object- Specified by:
getSizein classListConverter- 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- Specified by:
getComponentObjectin classListConverter- 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- Specified by:
createObjectin classListConverter- 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- Specified by:
addComponentObjectin classListConverter- 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- Specified by:
toObjectin classListConverter- Parameters:
object- The list object- Returns:
- The SEQUENCE OF/SET OF value object
-