Package com.sun.xml.rpc.encoding
Class SerializerBase
- java.lang.Object
-
- com.sun.xml.rpc.encoding.SerializerBase
-
- All Implemented Interfaces:
CombinedSerializer,JAXRPCDeserializer,JAXRPCSerializer,SerializerConstants,Serializable,javax.xml.rpc.encoding.Deserializer,javax.xml.rpc.encoding.Serializer
- Direct Known Subclasses:
ArraySerializerBase,CollectionSerializerBase,DynamicSerializer,InterfaceSerializerBase,LiteralSimpleTypeSerializer,ObjectSerializerBase,PolymorphicArraySerializer,ReferenceableSerializerImpl,SimpleTypeSerializer
public abstract class SerializerBase extends Object implements CombinedSerializer, SerializerConstants
- 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 protectedSerializerBase(QName xmlType, boolean encodeType, boolean isNullable, String encodingStyle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleandecodeBoolean(String str)Objectdeserialize(javax.activation.DataHandler dataHandler, SOAPDeserializationContext context)booleangetEncodeType()Returns whether xsi:type information will be encodedStringgetEncodingStyle()Returns the encodingStyle of this serializerprotected StringgetID(XMLReader reader)CombinedSerializergetInnermostSerializer()Returns the serializer that actually does the serializationStringgetMechanismType()protected QNamegetName(XMLReader reader)static booleangetNullStatus(XMLReader reader)static QNamegetType(XMLReader reader)QNamegetXmlType()Returns the XML schema type processed by this serializer.protected booleanisAcceptableType(QName actualType)booleanisNullable()Returns whether serializer allows null valuesprotected voidskipEmptyContent(XMLReader reader)protected booleantypeIsEmpty()protected voidverifyName(XMLReader reader, QName expectedName)protected voidverifyType(XMLReader reader)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.rpc.encoding.JAXRPCDeserializer
deserialize
-
Methods inherited from interface com.sun.xml.rpc.encoding.JAXRPCSerializer
serialize
-
-
-
-
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
-
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
-
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
-
deserialize
public Object deserialize(javax.activation.DataHandler dataHandler, SOAPDeserializationContext context)
- Specified by:
deserializein interfaceJAXRPCDeserializer
-
getNullStatus
public static boolean getNullStatus(XMLReader reader) throws Exception
- Throws:
Exception
-
verifyName
protected void verifyName(XMLReader reader, QName expectedName) throws Exception
- Throws:
Exception
-
isAcceptableType
protected boolean isAcceptableType(QName actualType)
-
skipEmptyContent
protected void skipEmptyContent(XMLReader reader) throws Exception
- Throws:
Exception
-
getMechanismType
public String getMechanismType()
- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Deserializer- Specified by:
getMechanismTypein interfacejavax.xml.rpc.encoding.Serializer
-
typeIsEmpty
protected boolean typeIsEmpty()
-
-