Package com.sun.xml.rpc.encoding.soap
Class MapSerializer
java.lang.Object
com.sun.xml.rpc.encoding.SerializerBase
com.sun.xml.rpc.encoding.soap.CollectionSerializerBase
com.sun.xml.rpc.encoding.soap.MapSerializer
- All Implemented Interfaces:
CombinedSerializer,Initializable,InternalEncodingConstants,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
- Author:
- JAX-RPC Development Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JAXRPCDeserializerprotected JAXRPCSerializerprotected ClassFields inherited from class com.sun.xml.rpc.encoding.soap.CollectionSerializerBase
dims, elemClass, elemName, elemType, null_dims, rankFields inherited from class com.sun.xml.rpc.encoding.SerializerBase
encodeType, encodingStyle, isNullable, typeFields 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_VECTORFields 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
ConstructorsConstructorDescriptionMapSerializer(QName type, Class mapClass, boolean encodeType, boolean isNullable, String encodingStyle) MapSerializer(QName type, Class mapClass, boolean encodeType, boolean isNullable, String encodingStyle, SOAPVersion version) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, verifyArrayTypeMethods 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 Details
-
mapClass
-
elemSer
-
elemDeser
-
-
Constructor Details
-
MapSerializer
-
MapSerializer
public MapSerializer(QName type, Class mapClass, boolean encodeType, boolean isNullable, String encodingStyle, SOAPVersion version)
-
-
Method Details
-
initialize
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
- 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
-
setElement
-