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
- Author:
- JAX-RPC Development Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JAXRPCDeserializerprotected JAXRPCSerializerprotected Classprotected Classprotected InternalTypeMappingRegistryFields inherited from class com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
encodeType, encodingStyle, isNullable, typeFields 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
ConstructorsConstructorDescriptionLiteralArraySerializer(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
Modifier and TypeMethodDescriptiondeserialize(QName name, XMLReader reader, SOAPDeserializationContext context) protected ObjectdoDeserialize(XMLReader reader, SOAPDeserializationContext context) protected voiddoSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) protected voiddoSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) protected voiddoSerializeInstance(Object instance, XMLWriter writer, SOAPSerializationContext context) booleanReturns whether xsi:type information will be encodedReturns the encodingStyle of this serializerReturns the serializer that actually does the serializationprotected JAXRPCDeserializergetParameterDeserializer(int index, XMLReader reader) protected JAXRPCSerializergetParameterSerializer(int index, Object parameter) static QNameReturns the XML schema type processed by this serializer.voidinitialize(InternalTypeMappingRegistry registry) protected ObjectinternalDeserialize(QName name, XMLReader reader, SOAPDeserializationContext context) protected voidinternalSerialize(Object obj, QName name, XMLWriter writer, SOAPSerializationContext context) protected booleanisAcceptableType(QName actualType) booleanReturns whether serializer allows null valuesstatic SOAPDeserializationStateregisterWithMemberState(Object instance, SOAPDeserializationState state, Object member, int memberIndex, SOAPInstanceBuilder builder) voidserialize(Object value, QName name, SerializerCallback callback, XMLWriter writer, SOAPSerializationContext context) protected voidverifyType(XMLReader reader) protected voidwriteAdditionalNamespaceDeclarations(Object obj, XMLWriter writer) Methods inherited from class com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
deserialize
-
Field Details
-
javaType
-
componentType
-
typeRegistry
-
componentSerializer
-
componentDeserializer
-
-
Constructor Details
-
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 Details
-
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
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
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
- 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
- Overrides:
verifyTypein classLiteralObjectSerializerBase- Throws:
Exception
-
isAcceptableType
- Overrides:
isAcceptableTypein classLiteralObjectSerializerBase
-
writeAdditionalNamespaceDeclarations
- 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
- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Deserializer- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Serializer- Overrides:
getMechanismTypein classLiteralObjectSerializerBase
-
getType
- Throws:
Exception
-
getParameterSerializer
- Throws:
Exception
-
getParameterDeserializer
- Throws:
Exception
-
registerWithMemberState
public static SOAPDeserializationState registerWithMemberState(Object instance, SOAPDeserializationState state, Object member, int memberIndex, SOAPInstanceBuilder builder) -
initialize
- Throws:
Exception
-