Package com.sun.xml.rpc.encoding.soap
Class CollectionSerializer
- java.lang.Object
-
- com.sun.xml.rpc.encoding.SerializerBase
-
- com.sun.xml.rpc.encoding.soap.CollectionSerializerBase
-
- com.sun.xml.rpc.encoding.soap.CollectionSerializer
-
- All Implemented Interfaces:
CombinedSerializer,Initializable,InternalEncodingConstants,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
public class CollectionSerializer extends CollectionSerializerBase implements Initializable
- Author:
- JAX-RPC Development Team
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ClasscollClassprotected JAXRPCDeserializerelemDeserprotected JAXRPCSerializerelemSer-
Fields inherited from class com.sun.xml.rpc.encoding.soap.CollectionSerializerBase
dims, elemClass, elemName, elemType, null_dims, rank
-
Fields inherited from class com.sun.xml.rpc.encoding.SerializerBase
encodeType, encodingStyle, isNullable, type
-
Fields inherited from interface com.sun.xml.rpc.encoding.InternalEncodingConstants
ARRAY_ELEMENT_NAME, COLLECTION_ELEMENT_NAME, JAX_RPC_MAP_ENTRY_KEY_NAME, JAX_RPC_MAP_ENTRY_VALUE_NAME, JAXRPC_URI, QNAME_TYPE_ARRAY_LIST, QNAME_TYPE_COLLECTION, QNAME_TYPE_DATA_HANDLER, QNAME_TYPE_HASH_MAP, QNAME_TYPE_HASH_SET, QNAME_TYPE_HASHTABLE, QNAME_TYPE_IMAGE, QNAME_TYPE_JAX_RPC_MAP_ENTRY, QNAME_TYPE_LINKED_LIST, QNAME_TYPE_LIST, QNAME_TYPE_MAP, QNAME_TYPE_MIME_MULTIPART, QNAME_TYPE_PROPERTIES, QNAME_TYPE_SET, QNAME_TYPE_SOURCE, QNAME_TYPE_STACK, QNAME_TYPE_TREE_MAP, QNAME_TYPE_TREE_SET, QNAME_TYPE_VECTOR
-
Fields inherited from interface com.sun.xml.rpc.encoding.SerializerConstants
DONT_ENCODE_TYPE, DONT_SERIALIZE_AS_REF, ENCODE_TYPE, NOT_NULLABLE, NOT_REFERENCEABLE, NULLABLE, REFERENCEABLE, REFERENCED_INSTANCE, SERIALIZE_AS_REF, UNREFERENCED_INSTANCE
-
-
Constructor Summary
Constructors Constructor Description CollectionSerializer(QName type, Class collClass, boolean encodeType, boolean isNullable, String encodingStyle, QName elemName, QName elemType, Class elemClass)CollectionSerializer(QName type, Class collClass, boolean encodeType, boolean isNullable, String encodingStyle, QName elemName, QName elemType, Class elemClass, SOAPVersion version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionarrayToCollection(Collection collInstance, Object[] arrInstance)arrayToCollectionprotected Object[]convertToArray(Object obj)protected ObjectdeserializeArrayInstance(XMLReader reader, SOAPDeserializationContext context, int[] dims)voidinitialize(InternalTypeMappingRegistry registry)Allows the implementors to retrieve and cache serializers during system intializationprotected voidserializeArrayElements(Object[] arr, int level, int[] dims, XMLWriter writer, SOAPSerializationContext context)protected voidserializeArrayInstance(Object obj, int[] dims, XMLWriter writer, SOAPSerializationContext context)static voidsetElement(Object[] value, int[] position, Object elem)-
Methods inherited from class com.sun.xml.rpc.encoding.soap.CollectionSerializerBase
decodeArrayDimensions, deserialize, encodeArrayDimensions, getArrayDimensions, getArrayDimensions, getArrayDimensions, getArrayElementPosition, getArrayElementPosition, getArrayElementType, getArrayOffset, getArrayOffset, getArrayRank, getDimensionOffsets, incrementPosition, indexFromPosition, isEmptyDimensions, isPositionWithinBounds, positionFromIndex, serialize, serializeNull, verifyArrayDimensions, verifyArrayElementType, verifyArrayType
-
Methods inherited from class com.sun.xml.rpc.encoding.SerializerBase
decodeBoolean, deserialize, getEncodeType, getEncodingStyle, getID, getInnermostSerializer, getMechanismType, getName, getNullStatus, getType, getXmlType, isAcceptableType, isNullable, skipEmptyContent, typeIsEmpty, verifyName, verifyType
-
-
-
-
Field Detail
-
collClass
protected Class collClass
-
elemSer
protected JAXRPCSerializer elemSer
-
elemDeser
protected JAXRPCDeserializer elemDeser
-
-
Method Detail
-
initialize
public void initialize(InternalTypeMappingRegistry registry) throws Exception
Description copied from interface:InitializableAllows the implementors to retrieve and cache serializers during system intialization- Specified by:
initializein interfaceInitializable- Throws:
Exception- This exception may be thrown if there is a problem initializing
-
convertToArray
protected Object[] convertToArray(Object obj) throws Exception
- Specified by:
convertToArrayin classCollectionSerializerBase- Throws:
Exception
-
serializeArrayInstance
protected void serializeArrayInstance(Object obj, int[] dims, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Specified by:
serializeArrayInstancein classCollectionSerializerBase- Throws:
Exception
-
serializeArrayElements
protected void serializeArrayElements(Object[] arr, int level, int[] dims, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
deserializeArrayInstance
protected Object deserializeArrayInstance(XMLReader reader, SOAPDeserializationContext context, int[] dims) throws Exception
- Specified by:
deserializeArrayInstancein classCollectionSerializerBase- Throws:
Exception
-
arrayToCollection
public static Collection arrayToCollection(Collection collInstance, Object[] arrInstance)
arrayToCollection
-
-