Package org.asnlab.asndt.runtime.conv
Class ArrayConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ListConverter
org.asnlab.asndt.runtime.conv.ArrayConverter
The
ArrayConverter
can convert
SEQUENCE OF/SET OF value object to/from arrays
This class is not intent to be extended.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponentObject
(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 objectint
Answer 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, setComponentConverter
Methods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Constructor Details
-
ArrayConverter
public ArrayConverter() -
ArrayConverter
-
-
Method Details
-
getSize
Answer the size of the SEQUENCE OF/SET OF value object- Specified by:
getSize
in 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:
getComponentObject
in 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:
createObject
in 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:
addComponentObject
in 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:
toObject
in classListConverter
- Parameters:
object
- The list object- Returns:
- The SEQUENCE OF/SET OF value object
-