Package com.sun.xml.rpc.encoding.literal
Class LiteralArraySerializer
- java.lang.Object
-
- com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
-
- com.sun.xml.rpc.encoding.literal.LiteralArraySerializer
-
- All Implemented Interfaces:
CombinedSerializer,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
public class LiteralArraySerializer extends LiteralObjectSerializerBase
- Author:
- JAX-RPC Development Team
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JAXRPCDeserializercomponentDeserializerprotected JAXRPCSerializercomponentSerializerprotected ClasscomponentTypeprotected ClassjavaTypeprotected InternalTypeMappingRegistrytypeRegistry-
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 LiteralArraySerializer(QName type, boolean isNullable, String encodingStyle, boolean encodeType, Class javaType, JAXRPCSerializer componentSerializer, Class componentType)LiteralArraySerializer(QName type, boolean isNullable, String encodingStyle, Class javaType, JAXRPCSerializer componentSerializer, Class componentType)
-
Method Summary
-
Methods inherited from class com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
deserialize
-
-
-
-
Field Detail
-
javaType
protected Class javaType
-
componentType
protected Class componentType
-
typeRegistry
protected InternalTypeMappingRegistry typeRegistry
-
componentSerializer
protected JAXRPCSerializer componentSerializer
-
componentDeserializer
protected JAXRPCDeserializer componentDeserializer
-
-
Constructor Detail
-
LiteralArraySerializer
public LiteralArraySerializer(QName type, boolean isNullable, String encodingStyle, Class javaType, JAXRPCSerializer componentSerializer, Class componentType)
-
LiteralArraySerializer
public LiteralArraySerializer(QName type, boolean isNullable, String encodingStyle, boolean encodeType, Class javaType, JAXRPCSerializer componentSerializer, Class componentType)
-
-
Method Detail
-
getXmlType
public QName getXmlType()
Description copied from interface:CombinedSerializerReturns the XML schema type processed by this serializer.- Specified by:
getXmlTypein interfaceCombinedSerializer- Overrides:
getXmlTypein classLiteralObjectSerializerBase- Returns:
- Returns the XML schema type processed by this serializer.
-
getEncodeType
public boolean getEncodeType()
Description copied from interface:CombinedSerializerReturns whether xsi:type information will be encoded- Specified by:
getEncodeTypein interfaceCombinedSerializer- Overrides:
getEncodeTypein classLiteralObjectSerializerBase- Returns:
- Returns whether xsi:type information will be encoded
-
getInnermostSerializer
public CombinedSerializer getInnermostSerializer()
Description copied from interface:CombinedSerializerReturns the serializer that actually does the serialization- Specified by:
getInnermostSerializerin interfaceCombinedSerializer- Overrides:
getInnermostSerializerin classLiteralObjectSerializerBase- Returns:
- Returns the serializer that actually does the serialization
-
isNullable
public boolean isNullable()
Description copied from interface:CombinedSerializerReturns whether serializer allows null values- Specified by:
isNullablein interfaceCombinedSerializer- Overrides:
isNullablein classLiteralObjectSerializerBase- Returns:
- Returns whether serializer allows null values
-
getEncodingStyle
public String getEncodingStyle()
Description copied from interface:CombinedSerializerReturns the encodingStyle of this serializer- Specified by:
getEncodingStylein interfaceCombinedSerializer- Overrides:
getEncodingStylein classLiteralObjectSerializerBase- Returns:
- Returns the encodingStyle of this serializer
-
serialize
public void serialize(Object value, QName name, SerializerCallback callback, XMLWriter writer, SOAPSerializationContext context)
- Specified by:
serializein interfaceJAXRPCSerializer- Overrides:
serializein classLiteralObjectSerializerBase
-
deserialize
public Object deserialize(QName name, XMLReader reader, SOAPDeserializationContext context)
- Specified by:
deserializein interfaceJAXRPCDeserializer- Overrides:
deserializein classLiteralObjectSerializerBase
-
internalSerialize
protected void internalSerialize(Object obj, QName name, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Overrides:
internalSerializein classLiteralObjectSerializerBase- Throws:
Exception
-
internalDeserialize
protected Object internalDeserialize(QName name, XMLReader reader, SOAPDeserializationContext context) throws Exception
- Overrides:
internalDeserializein classLiteralObjectSerializerBase- Throws:
Exception
-
doDeserialize
protected Object doDeserialize(XMLReader reader, SOAPDeserializationContext context) throws Exception
- Specified by:
doDeserializein classLiteralObjectSerializerBase- Throws:
Exception
-
verifyType
protected void verifyType(XMLReader reader) throws Exception
- Overrides:
verifyTypein classLiteralObjectSerializerBase- Throws:
Exception
-
isAcceptableType
protected boolean isAcceptableType(QName actualType)
- Overrides:
isAcceptableTypein classLiteralObjectSerializerBase
-
writeAdditionalNamespaceDeclarations
protected void writeAdditionalNamespaceDeclarations(Object obj, XMLWriter writer) throws Exception
- Overrides:
writeAdditionalNamespaceDeclarationsin classLiteralObjectSerializerBase- Throws:
Exception
-
doSerialize
protected void doSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Specified by:
doSerializein classLiteralObjectSerializerBase- Throws:
Exception
-
doSerializeInstance
protected void doSerializeInstance(Object instance, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
doSerializeAttributes
protected void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Specified by:
doSerializeAttributesin classLiteralObjectSerializerBase- Throws:
Exception
-
getMechanismType
public String getMechanismType()
- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Deserializer- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Serializer- Overrides:
getMechanismTypein classLiteralObjectSerializerBase
-
getParameterSerializer
protected JAXRPCSerializer getParameterSerializer(int index, Object parameter) throws Exception
- Throws:
Exception
-
getParameterDeserializer
protected JAXRPCDeserializer getParameterDeserializer(int index, XMLReader reader) throws Exception
- Throws:
Exception
-
registerWithMemberState
public static SOAPDeserializationState registerWithMemberState(Object instance, SOAPDeserializationState state, Object member, int memberIndex, SOAPInstanceBuilder builder)
-
initialize
public void initialize(InternalTypeMappingRegistry registry) throws Exception
- Throws:
Exception
-
-