public abstract class SerializerBase extends Object implements CombinedSerializer, SerializerConstants
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
encodeType |
protected String |
encodingStyle |
protected boolean |
isNullable |
protected QName |
type |
DONT_ENCODE_TYPE, DONT_SERIALIZE_AS_REF, ENCODE_TYPE, NOT_NULLABLE, NOT_REFERENCEABLE, NULLABLE, REFERENCEABLE, REFERENCED_INSTANCE, SERIALIZE_AS_REF, UNREFERENCED_INSTANCE| Modifier | Constructor and Description |
|---|---|
protected |
SerializerBase(QName xmlType,
boolean encodeType,
boolean isNullable,
String encodingStyle) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
decodeBoolean(String str) |
Object |
deserialize(DataHandler dataHandler,
SOAPDeserializationContext context) |
boolean |
getEncodeType()
Returns whether xsi:type information will be encoded
|
String |
getEncodingStyle()
Returns the encodingStyle of this serializer
|
protected String |
getID(XMLReader reader) |
CombinedSerializer |
getInnermostSerializer()
Returns the serializer that actually does the serialization
|
String |
getMechanismType() |
protected QName |
getName(XMLReader reader) |
static boolean |
getNullStatus(XMLReader reader) |
static QName |
getType(XMLReader reader) |
QName |
getXmlType()
Returns the XML schema type processed by this serializer.
|
protected boolean |
isAcceptableType(QName actualType) |
boolean |
isNullable()
Returns whether serializer allows null values
|
protected void |
skipEmptyContent(XMLReader reader) |
protected boolean |
typeIsEmpty() |
protected void |
verifyName(XMLReader reader,
QName expectedName) |
protected void |
verifyType(XMLReader reader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializedeserializeprotected QName type
protected boolean encodeType
protected boolean isNullable
protected String encodingStyle
public QName getXmlType()
CombinedSerializergetXmlType in interface CombinedSerializerpublic boolean getEncodeType()
CombinedSerializergetEncodeType in interface CombinedSerializerpublic boolean isNullable()
CombinedSerializerisNullable in interface CombinedSerializerpublic String getEncodingStyle()
CombinedSerializergetEncodingStyle in interface CombinedSerializerpublic CombinedSerializer getInnermostSerializer()
CombinedSerializergetInnermostSerializer in interface CombinedSerializerpublic Object deserialize(DataHandler dataHandler, SOAPDeserializationContext context)
deserialize in interface JAXRPCDeserializerpublic static boolean getNullStatus(XMLReader reader) throws Exception
Exceptionprotected void verifyName(XMLReader reader, QName expectedName) throws Exception
Exceptionprotected boolean isAcceptableType(QName actualType)
protected void skipEmptyContent(XMLReader reader) throws Exception
Exceptionpublic String getMechanismType()
getMechanismType in interface javax.xml.rpc.encoding.DeserializergetMechanismType in interface javax.xml.rpc.encoding.Serializerprotected boolean typeIsEmpty()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.