Package com.sun.xml.rpc.encoding.literal
Class GenericLiteralObjectSerializer
- java.lang.Object
-
- com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
-
- com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer
-
- All Implemented Interfaces:
CombinedSerializer,Initializable,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
- Direct Known Subclasses:
LiteralRequestSerializer,ValueTypeLiteralSerializer
public class GenericLiteralObjectSerializer extends LiteralObjectSerializerBase implements Initializable
A data-driven (de)serializer.- Author:
- JAX-RPC RI Development Team
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGenericLiteralObjectSerializer.GetterMethodstatic classGenericLiteralObjectSerializer.MemberInfostatic interfaceGenericLiteralObjectSerializer.SetterMethodprotected classGenericLiteralObjectSerializer.SOAPGenericObjectInstanceBuilder
-
Field Summary
Fields Modifier and Type Field Description protected MapjavaToXmlTypeprotected CollectionmemberOrderprotected Listmembersprotected InternalTypeMappingRegistryregistryprotected ClasstargetClassprotected MapxmlToJavaType-
Fields inherited from class com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
encodeType, encodingStyle, isNullable, type
-
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 GenericLiteralObjectSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle)GenericLiteralObjectSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle, SOAPVersion ver)
-
Method Summary
-
Methods inherited from class com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
deserialize, deserialize, getEncodeType, getEncodingStyle, getInnermostSerializer, getMechanismType, getType, getXmlType, internalDeserialize, internalSerialize, isAcceptableType, isNullable, registerWithMemberState, serialize, writeAdditionalNamespaceDeclarations
-
-
-
-
Field Detail
-
targetClass
protected Class targetClass
-
members
protected List members
-
xmlToJavaType
protected Map xmlToJavaType
-
javaToXmlType
protected Map javaToXmlType
-
registry
protected InternalTypeMappingRegistry registry
-
memberOrder
protected Collection memberOrder
-
-
Constructor Detail
-
GenericLiteralObjectSerializer
public GenericLiteralObjectSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle)
-
GenericLiteralObjectSerializer
public GenericLiteralObjectSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle, SOAPVersion ver)
-
-
Method Detail
-
setTargetClass
public void setTargetClass(Class targetClass)
-
doSetTargetClass
protected void doSetTargetClass(Class targetClass)
-
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
-
clearMembers
public void clearMembers()
-
addMember
public void addMember(GenericLiteralObjectSerializer.MemberInfo member) throws Exception
- Throws:
Exception
-
doSerialize
protected void doSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Specified by:
doSerializein classLiteralObjectSerializerBase- Throws:
Exception
-
doSerializeAttributes
protected void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Specified by:
doSerializeAttributesin classLiteralObjectSerializerBase- Throws:
Exception
-
doDeserialize
protected Object doDeserialize(XMLReader reader, SOAPDeserializationContext context) throws Exception
- Specified by:
doDeserializein classLiteralObjectSerializerBase- Throws:
Exception
-
doSerializeInstance
protected void doSerializeInstance(Object instance, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
doDeserialize
protected Object doDeserialize(SOAPDeserializationState state, XMLReader reader, SOAPDeserializationContext context) throws Exception
- Throws:
Exception
-
verifyType
protected void verifyType(XMLReader reader) throws Exception
- Overrides:
verifyTypein classLiteralObjectSerializerBase- Throws:
Exception
-
-