Package com.sun.xml.rpc.encoding.literal
Class LiteralObjectSerializerBase
- java.lang.Object
-
- com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase
-
- All Implemented Interfaces:
CombinedSerializer,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
- Direct Known Subclasses:
DetailFragmentDeserializer,GenericLiteralObjectSerializer,LiteralArraySerializer,LiteralFragmentSerializer,LiteralObjectArraySerializer
public abstract class LiteralObjectSerializerBase extends Object implements SerializerConstants, CombinedSerializer
- Author:
- JAX-RPC Development Team
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanencodeTypeprotected StringencodingStyleprotected booleanisNullableprotected QNametype-
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 Modifier Constructor Description protectedLiteralObjectSerializerBase(QName type, boolean isNullable, String encodingStyle)protectedLiteralObjectSerializerBase(QName type, boolean isNullable, String encodingStyle, boolean encodeType)
-
Method Summary
-
-
-
Method Detail
-
getXmlType
public QName getXmlType()
Description copied from interface:CombinedSerializerReturns the XML schema type processed by this serializer.- Specified by:
getXmlTypein interfaceCombinedSerializer- 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- 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- 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- 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- 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
-
deserialize
public Object deserialize(QName name, XMLReader reader, SOAPDeserializationContext context)
- Specified by:
deserializein interfaceJAXRPCDeserializer
-
deserialize
public Object deserialize(DataHandler dataHandler, SOAPDeserializationContext context) throws DeserializationException, UnsupportedOperationException
- Specified by:
deserializein interfaceJAXRPCDeserializer- Throws:
DeserializationExceptionUnsupportedOperationException
-
internalSerialize
protected void internalSerialize(Object obj, QName name, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
internalDeserialize
protected Object internalDeserialize(QName name, XMLReader reader, SOAPDeserializationContext context) throws Exception
- Throws:
Exception
-
isAcceptableType
protected boolean isAcceptableType(QName actualType)
-
writeAdditionalNamespaceDeclarations
protected void writeAdditionalNamespaceDeclarations(Object obj, XMLWriter writer) throws Exception
- Throws:
Exception
-
doSerialize
protected abstract void doSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
doSerializeAttributes
protected abstract void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
- Throws:
Exception
-
doDeserialize
protected abstract Object doDeserialize(XMLReader reader, SOAPDeserializationContext context) throws Exception
- Throws:
Exception
-
getMechanismType
public String getMechanismType()
- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Deserializer- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Serializer
-
registerWithMemberState
public static SOAPDeserializationState registerWithMemberState(Object instance, SOAPDeserializationState state, Object member, int memberIndex, SOAPInstanceBuilder builder)
-
-